[petsc-users] :)

Meng Wu meng.wu at inria.fr
Mon Oct 21 04:39:35 CDT 2013


Dear Sir or Madam, 
I met a problem during using PETSc. 
/usr/bin/ld: /user/mewu/home/PETSc/arch-linux2-c-debug/lib/libpetsc.a(pinit.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /user/mewu/home/PETSc/arch-linux2-c-debug/lib/libpetsc.a(pinit.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC 
/user/mewu/home/PETSc/arch-linux2-c-debug/lib/libpetsc.a: could not read symbols: Bad value 
collect2: ld returned 1 exit state 

I have recompiled PETSc with  --cppflags="-fPIC". 
However, the problem is still there. 

Could you give me some suggestions? 

Best, 

Meng 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131021/d29d5677/attachment.html>


More information about the petsc-users mailing list