[CIG-LONG] Compile error of gale
Walter Landry
walter at geodynamics.org
Fri Apr 13 13:24:10 PDT 2012
John Yu <johnyu at usc.edu> wrote:
> this is what i get:
>
> [root at geosys hg]# mpicxx -o temp -O3 -Wall -Wwrite-strings
> -Wno-strict-aliasing -Wno-unknown-pragmas -O -DNDEBUG -DHAVE_LIBXML2
> -DHAVE_MPI -DHAVE_HDF5 -I/usr/include/libxml2
> -I/share/apps/petsc/3.2-p7/include -I/usr/include/mpich2-x86_64
> -Wl,-rpath=/share/apps/petsc/3.2-p7/lib temp.cxx
> -L/share/apps/petsc/3.2-p7/lib -lpetsc -lhdf5 -lxml2
> /usr/bin/ld: /share/apps/petsc/3.2-p7/lib/libpetsc.a(dlimpl.c.o):
> undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
> /usr/bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO
> /lib64/libdl.so.2 so try adding it to the linker command line
> /lib64/libdl.so.2: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
It seem that your petsc installation does not work. Does anything
else use it? Did you run "make test" after installing it?
Cheers,
Walter Landry
More information about the CIG-LONG
mailing list