It was that!<div><br></div><div>Thank you Matthew. I though I had tested that one, it seems I hadn't.</div><div><br></div><div>Cheers, </div><div><br></div><div>Miguel</div><br><div class="gmail_quote">On Mon, Sep 17, 2012 at 2:23 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, Sep 17, 2012 at 6:03 AM, Miguel Méndez <span dir="ltr"><<a href="mailto:mendez8@gmail.com" target="_blank">mendez8@gmail.com</a>></span> wrote:<br>
</div></div><div class="gmail_quote"><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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>
</blockquote><div><br></div></div></div><div>This comes from not building with -fPIC (or what ever the PIC flag is for your compiler). Find that source file, build</div><div>it with PIC, and archive it to libslepc.a. Of course, upgrading would make this automatic.</div>
<div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Thanks, </div><span><font color="#888888"><div><br></div>
<div>Miguel</div><span class="HOEnZb"><font color="#888888">
</font></span></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>
</font></span></blockquote></div><br>