[mpich-discuss] relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC

Luís Miranda luistm at gmail.com
Mon Oct 19 08:40:11 CDT 2009


Well, thanks for the suggestion, but the problem is still happening.


Thanks

2009/10/19 Mário Costa <mario.silva.costa at gmail.com>

> Hi,
>
> The problem is that the irradiancecache.so library is dynamic, and you
> are using mpich static library version libpmpich++.a.
>
> Either you are compiling with -static with gnu, or you are specifying
> the static library libpmpich++.a.
>
> If that is the case remove the -static flag from gnu compiler in the
> byuild script, or use -lmpich++ instead of the library ...
>
> Hope this helps,
> Regards,
> Mário
>
> On Mon, Oct 19, 2009 at 11:56 AM, Luís Miranda <luistm at gmail.com> wrote:
> > Hi
> >
> > I'm having this problem, when i try to compile my software in a rocks4.2
> > cluster.
> >
> > /usr/bin/ld: /opt/mpich/myrinet/gnu/lib/libpmpich++.a(intercepts.o):
> > relocation R_X86_64_32S against `a local symbol' can not be used when
> making
> > a shared object; recompile with -fPIC
> > /opt/mpich/myrinet/gnu/lib/libpmpich++.a: could not read symbols: Bad
> value
> > collect2: ld returned 1 exit status
> > make: *** [bin/irradiancecache.so] Error 1
> >
> > A solution to the problem, isto to compile the mpich with CFLAGS=-fPIC,
> but
> > i can't do this, becouse i'm not the cluster's admin.
> > Anyone knows any other workaround to the problem?
> >
> > Thanks
> >
> > _______________________________________________
> > mpich-discuss mailing list
> > mpich-discuss at mcs.anl.gov
> > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
> >
> >
>
>
>
> --
> Mário Costa
>
> Laboratório Nacional de Engenharia Civil
> LNEC.CTI.NTIEC
> Avenida do Brasil 101
> 1700-066 Lisboa, Portugal
> Tel : ++351 21 844 3911
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20091019/960dd01b/attachment.htm>


More information about the mpich-discuss mailing list