[overture] Re: error compiling CG with undefined reference

  • From: Erik Wilson <wilsone@xxxxxx>
  • To: overture@xxxxxxxxxxxxx
  • Date: Mon, 23 Apr 2012 11:03:03 -0700


Hi David,

It might be worth trying to link with gfortran instead of g++.

Cheers,
 -Erik


On 04/23/2012 05:36 AM, David Sinden wrote:
sorry, should have included the line which breaks down, as it contains the linking of the source files etc

g++ -fPIC -g -w -I/home/dave/Code/Overture/cg.v24/common/src -I/home/dave/Code/Overture/cg.v24/common/shared -I/home/dave/Code/Overture/cg.v24/common/moving/src -I/home/dave/Code/Overture/cg.v24/common/multiComponent/src -I/home/dave/Code/Overture/cg.v24/common/chemistry -I/home/dave/Code/Overture/cg.v24/common/dataBase -I/home/dave/Code/Overture/cg.v24/src -I/home/dave/Code/Overture/Overture.v24/include -I/home/dave/Code/Overture/A++P++-0.8.0/A++/install/include -I/home/dave/Code/Overture/hdf5-1.6.5/include -I/home/dave/Code/Overture/Mesa-7.5.1/include -o /home/dave/Code/Overture/cg.v24/common/bin/checkCheckFiles /home/dave/Code/Overture/cg.v24/common/obj/checkCheckFiles.o -Wl,-rpath,/home/dave/Code/Overture/Overture.v24/lib -L/home/dave/Code/Overture/Overture.v24/lib -lOverture -lOverture_static -Wl,-rpath,/home/dave/Code/Overture/hdf5-1.6.5/lib -L/home/dave/Code/Overture/hdf5-1.6.5/lib -lhdf5 -ljpeg -lz -Wl,-rpath,/home/dave/Code/Overture/A++P++-0.8.0/A++/install/lib -L/home/dave/Code/Overture/A++P++-0.8.0/A++/install/lib -lApp -lApp_static -Wl,-rpath,/usr -L/usr -llapack -lblas -lgfortran -Wl,-rpath,/home/dave/Code/Overture/Mesa-7.5.1/lib -L/home/dave/Code/Overture/Mesa-7.5.1/lib -lGL -lGLU -lOSMesa -Wl,-rpath,/usr/lib -L/usr/lib -lXm -L/usr/lib -lXpm -lXp -lXt -lXmu -lXi -lXext -lX11 -Wl,-rpath,/usr/lib/perl/5.12/CORE -L/usr/lib/perl/5.12/CORE -lperl -ldl -lm -lpthread -lc -lcrypt


On 23 April 2012 13:26, David Sinden <david.sinden@xxxxxxxxx <mailto:david.sinden@xxxxxxxxx>> wrote:

    i have installed overture and it seems to work, at least the
    checks, tests and examples all work, with one exception

    Running: /home/dave/Code/Overture/Overture.v24/bin/ogen noplot
    nopause abortOnEnd
    /home/dave/Code/Overture/Overture.v24/sampleGrids/asmo.cmd >
    gridsFromCad.out...
    Segmentation fault
    ERROR running /home/dave/Code/Overture/Overture.v24/bin/ogen
    noplot nopause abortOnEnd
    /home/dave/Code/Overture/Overture.v24/sampleGrids/asmo.cmd >
    gridsFromCad.out. Check the logfile gridsFromCad.out
     
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    ERROR return rt=256

    the log file shows that there is no not sure how significant this
    is or what it indicates, but something is wrong as i can't make
    any of the files from cg as i get errors for a whole host of other
    undefined references such as

    /home/dave/Code/Overture/Overture.v24/lib/libOverture.so:
    undefined reference to `_gfortran_transfer_real_write'
    collect2: ld returned 1 exit status
    make[1]: ***
    [/home/dave/Code/Overture/cg.v24/common/bin/checkCheckFiles] Error 1
    make[1]: Leaving directory `/home/dave/Code/Overture/cg.v24/common'
    make: *** [libCommon] Error 2

    is this a problem from the compilation of overture or a problem in
    the linking of cg with overture? as cg uses the make.options
    settings from overture i doubt it. i have copied over the defenv
    file from overture and load that before compiling so that the
    environmental variables are the same, but could this be a problem.
    my set up is

    hdf5-1.6.5,
    mesa-7.5.1
    perl (v5.12.4)
    gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

    and i call the hdf5 and mesa directories directly. it looks
    similar to the error reported here:
    //www.freelists.org/post/overture/cg-error

    thanks, david



Other related posts: