Hello,
I'm using a (some what ugly) workaround to build PETSc with shared libs.
It works for petsc-2.3.1-p16 with the following configure options (for
optimized mode):
--download-mpich=yes --download-f-blas-lapack=yes --with-shared
--with-vendor-compilers=0 --with-debugging=no --with-pic=1
After configuring you have to open the "$(PETSC_DIR)/bmake/('your lib
name')/petscconf" file in a text editor and replace all -PIC with -fPIC.
Then make all test.
Perhaps that helps to solve your problem.
best regards
Ingo
Lorenzo Botti wrote:
> I have this problem compiling libmesh on fedora 7...
>
>
> Compiling C++ (in optimized mode) src/utils/xdr_cxx.C...
> Linking /home/joppe/libmesh/lib/x86_64-unknown-linux-gnu_opt/libmesh.so
> /usr/bin/ld: /usr/local/lib/libmpich.a(allreduce.o): relocation
> R_X86_64_32S against `MPIR_ThreadSingle' can not be used when making a
> shared object; recompile with -fPIC
> /usr/local/lib/libmpich.a: could not read symbols: Bad value
>
> Any ideas?
>
> Thanks Lorenzo
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Libmesh-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libmesh-users
>
--
Dipl.-Ing. Ingo Schmidt
Institute of Modelling and Computation
Hamburg University of Technology tel: +49/(0)40/42878-4483
Denickestr.17 fax: +49/(0)40/42878-4353
Building L/ room: 3032 e-mail: [EMAIL PROTECTED]
21075 Hamburg
http://www.mub.TU-Harburg.de
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users