[petsc-users] [petsc-maint] :)

Karl Rupp rupp at mcs.anl.gov
Mon Oct 21 05:13:18 CDT 2013


Hi Meng,

please send the full error messages (configure.log, error.log). -fPIC is 
supposed to be set by default.

Best regards,
Karli


On 10/21/2013 10:53 AM, Meng Wu wrote:
>
> 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
>
>
> /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



More information about the petsc-users mailing list