On Fri, 11 Feb 2011, Rafa Rodríguez Galván wrote:
I've tried to compile libmesh in a Linux cluster, at the university I
work. But I get next error:
---------
Linking
/home/mat/cucharro/software/libmesh/libmesh-0.7.0.4/lib/x86_64-unknown-linux-gnu_opt/libmesh.so
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
/opt/mpich/ch-p4/lib64/libpmpich++.a(intercepts.o): relocation
R_X86_64_32 against `__dso_handle' can not be used when making a shared
object; recompile with -fPIC
/opt/mpich/ch-p4/lib64/libpmpich++.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: ***
[/home/mat/cucharro/software/libmesh/libmesh-0.7.0.4/lib/x86_64-unknown-linux-gnu_opt/libmesh.so]
Error 1
----------
I suppose the problem is ./configure doesn't find any synamic library
(libmpich++.so or something like that, just libmpich++.a), isn't it? But
I can't find any libmpich.so in the cluster. Just next files:
ls /opt/mpich/ch-p4/lib64/
libfmpich.a libmpichf90.a libpmpich.a libtvmpich.so.1
liblmpe.a libmpichf90nc.a libpmpich++.a libtvmpich.so.1.0
libmpe.a libmpichfarg.a libtmpe.a mpe_prof.o
libmpich.a libmpichfsup.a libtvmpich.so shared
Please, can you help me?
Can't help you with getting a libmpich++.so built; that's up to your
cluster admins.
If they balk and you're stuck having to build a statically-linking
libmesh.a, then as a workaround try building libMesh with
"METHOD=prof". Someone correct me if I'm wrong, but I think that
should give you a static library, so you'll at least be able to link
applications against non-PositionIndependentCode dependencies.
If you want a static libMesh library with all the debugging bells and
whistles and/or without profiling code generated, we don't have
anything like that right now, but if there's actually demand for it
we'd be happy to accept a patch (to compiler.m4 and Make.common.in
should be sufficient) adding such options.
---
Roy
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users