lgcc_s not found error

Ben Tay zonexo at gmail.com
Tue May 8 00:20:16 CDT 2007


Hi,

I've built static PETSc library with mpi/hypre w/o problems. The test e.g.
also worked.

When I tried to built my own a.out, using -static (fortran),  the error is
lgcc_s not found. removing it in the make file resulted in a lot of error
for mpich2.

btw, i do not have root access. the problem is that there's some servers in
my sch's requires the use of static library to run the a.out, therefore I
need to use the "-static" option

btw, the error msg are

/lsftmp/g0306332/petsc-2.3.2-p8/lib/atlas3-noshared/libpetsc.a(ghome.o)(.text+0x16):
In function `PetscGetHomeDirectory':
: warning: Using 'getpwuid' in statically linked applications requires at
runtime the shared libraries from the glibc version used for linking
/lsftmp/g0306332/petsc-2.3.2-p8/lib/atlas3-noshared/libpetsc.a(send.o)(.text+0xafc):
In function `SOCKCall_Private':
: warning: Using 'gethostbyname' in statically linked applications requires
at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/libstdc++.a(eh_alloc.o)(.text.__cxa_allocate_exception+0xc8):
In function `__cxa_allocate_exception':
: undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/libstdc++.a(eh_alloc.o)(.text.__cxa_allocate_exception+0xd6):
In function `__cxa_allocate_exception':
: undefined reference to `pthread_mutex_lock'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/libstdc++.a(eh_alloc.o)(.text.__cxa_free_exception+0x90):
In function `__cxa_free_exception':
: undefined reference to `pthread_mutex_lock'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/libstdc++.a(eh_alloc.o)(.text.__cxa_free_exception+0x6c):
In function `__cxa_free_exception':
: undefined reference to `pthread_mutex_unlock'
/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3-noshared/lib/libmpich.a(attr_delete.o)(.text+0x41):
In function `MPI_Attr_delete':
: undefined reference to `pthread_getspecific'
/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3-noshared/lib/libmpich.a(attr_delete.o)(.text+0x67):
In function `MPI_Attr_delete':
: undefined reference to `pthread_mutex_lock'
/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3-noshared/lib/libmpich.a(attr_delete.o)(.text+0x199):
In function `MPI_Attr_delete':
: undefined reference to `pthread_getspecific'
/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3-noshared/lib/libmpich.a(attr_delete.o)(.text+0x257):
In function `MPI_Attr_delete':
: undefined reference to `pthread_getspecific'
/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3-noshared/lib/libmpich.a(attr_delete.o)(.text+0x27d):
In function `MPI_Attr_delete':
: undefined reference to `pthread_mutex_unlock'
/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3-noshared/lib/libmpich.a(attr_delete.o)(.text+0x2b0):
In function `MPI_Attr_delete':
: undefined reference to `pthread_setspecific'
/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3-noshared/lib/libmpich.a(attr_delete.o)(.text+0x30e):
In function `MPI_Attr_delete':
: undefined reference to `pthread_setspecific'
/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3-noshared/lib/libmpich.a(attr_delete.o)(.text+0x337):
In function `MPI_Attr_delete':
: undefined reference to `pthread_setspecific'
/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3-noshared/lib/libmpich.a(attr_get.o)(.text+0x51):
In function `MPI_Attr_get':
: undefined reference to `pthread_getspecific'
/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3-noshared/lib/libmpich.a(attr_get.o)(.text+0x7b):
In function `MPI_Attr_get':
: undefined reference to `pthread_mutex_lock'
/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3-noshared/lib/libmpich.a(attr_get.o)(.text+0x1d3):
In function `MPI_Attr_get':
: undefined reference to `pthread_getspecific'
/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3-noshared/lib/libmpich.a(attr_get.o)(.text+0x2a6):
In function `MPI_Attr_get':
: undefined reference to `pthread_getspecific'
/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3-noshared/lib/libmpich.a(attr_get.o)(.text+0x2d3):
In function `MPI_Attr_get':
: undefined reference to `pthread_mutex_unlock'
/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3-noshared/lib/libmpich.a(attr_get.o)(.text+0x31a):
In function `MPI_Attr_get':

i wonder what can be done.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20070508/3239c6fc/attachment.htm>


More information about the petsc-users mailing list