Hi everybody, <div><br></div><div>I'm getting the infamous "relocation truncated to fit: R_X86_64_PC32" error when compiling a fortran program. I've tried many things, the last one of them being to recompile Petsc and Slepc libraries. This has solved all of the compile errors related to this relocation except for one:<br>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
/usr/local/software/slepc-3.0.0-p7-fpic/complex/build/lib/libslepc.a(cross.o): In function `ShellMatGetDiagonal_CROSS':<br>cross.c:(.text+0x3ca): relocation truncated to fit: R_X86_64_PC32 against symbol `MPIU_COMPLEX' defined in COMMON section in /usr/local/software/petsc-3.0.0-p12-fpic/complex/build/lib/libpetsc.a(init.o)</blockquote>
</blockquote><div><br></div></div><div>I don't even think I know where the error is, in Petsc or in Slepc? I've been trough Intel forums and done as they recommend: recompile the libraries with "--mcmodel=medium" and "shared-intel". I've tried too combinations with "-fpic", but I always end having the same error.</div>
<div><br></div><div>I've searched the logs for messages about "libpetsc.a" building, but there's nothing about it. Who and when builds this exact library? Why it seems that compile options I set are not applying in the building of this file?</div>
<div><br></div><div>Thanks, </div><div><br></div><div>Miguel</div>