[CIG-LONG] Compile error of gale

John Yu johnyu at usc.edu
Fri Apr 13 13:37:05 PDT 2012


I just did (after launching an mpd daemon):

[root at geosys petsc-3.2-p7]# make PETSC_DIR=/share/apps/petsc/3.2-p7 
PETSC_ARCH=arch-linux2-c-opt test
Running test examples to verify correct installation
Using PETSC_DIR=/share/apps/petsc/3.2-p7 and PETSC_ARCH=arch-linux2-c-opt
C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1 MPI 
process
C/C++ example src/snes/examples/tutorials/ex19 run successfully with 2 MPI 
processes
Completed test examples

I think this means petsc is running okay?

-John

  .......................................
    john yu
    information systems director
    southern california earthquake center
    department of earth sciences
    university of southern california
    213.740.5275 | 213.740.8801 (f)

On Fri, 13 Apr 2012, Walter Landry wrote:

> 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