Subject: Discussion related to cado-nfs
List archive
- From: Emmanuel Thomé <Emmanuel.Thome@inria.fr>
- To: cado-nfs-discuss@lists.gforge.inria.fr
- Subject: Re: [Cado-nfs-discuss] build problems: relocation against .rodata fails
- Date: Fri, 10 May 2019 08:38:02 +0200
- List-archive: <http://lists.gforge.inria.fr/pipermail/cado-nfs-discuss/>
- List-id: A discussion list for Cado-NFS <cado-nfs-discuss.lists.gforge.inria.fr>
I did witness such errors occasionally, but that was always in a
situation where I could resonably imagine that incompatible tools were
used in different steps in the build chain (e.g. some version of gcc
versus some version of binutils). I never encountered this with the stock
toolchain on an a priori correctly configured and up to date system.
If it so happens that I can better understand the why the how, I'll try
to address this.
Just a random thought: what happens if you add -no-pie to CFLAGS and
CXXFLAGS in local.sh ?
E.
On Mon, May 06, 2019 at 11:15:24AM +0100, Paul Leyland wrote:
>
> Am I the only person to be getting errors like this from "make"? It's
> an up to date Gentoo box and I grabbed the latest cado-nfs from git
> earlier today.
>
> Still debugging (and if the problem is solved I'll post how it was
> done) so just wanted to flag the situation. If the problem is not
> solved I'll post detailed information as required but until then I'll
> not clog up subscribers' mailboxes.
>
> Paul
>
>
> [ 96%] Linking CXX executable lingen
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-
> gnu/bin/ld: /home/pcl/nums/cado-
> nfs/build/maat.home.brnikat.com/gf2x/.libs/libgf2x.a(libgf2x_la-gf2x-
> fake-fft.o): relocation R_X86_64_32 against `.rodata' can not be used
> when making a PIE object; recompile with -fPIC
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-
> gnu/bin/ld: /home/pcl/nums/cado-
> nfs/build/maat.home.brnikat.com/gf2x/.libs/libgf2x.a(libgf2x_la-gf2x-
> cantor-fft.o): relocation R_X86_64_32S against `.rodata' can not be
> used when making a PIE object; recompile with -fPIC
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-
> gnu/bin/ld: /home/pcl/nums/cado-
> nfs/build/maat.home.brnikat.com/gf2x/.libs/libgf2x.a(libgf2x_la-
> gf2x.o): relocation R_X86_64_32S against `.rodata' can not be used when
> making a PIE object; recompile with -fPIC
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-
> gnu/bin/ld: /home/pcl/nums/cado-
> nfs/build/maat.home.brnikat.com/gf2x/.libs/libgf2x.a(libgf2x_la-
> toom.o): relocation R_X86_64_32 against `.rodata' can not be used when
> making a PIE object; recompile with -fPIC
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-
> gnu/bin/ld: /home/pcl/nums/cado-
> nfs/build/maat.home.brnikat.com/gf2x/.libs/libgf2x.a(libgf2x_la-gf2x-
> ternary-fft.o): relocation R_X86_64_32 against `.rodata' can not be
> used when making a PIE object; recompile with -fPIC
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-
> gnu/bin/ld: /home/pcl/nums/cado-
> nfs/build/maat.home.brnikat.com/gf2x/.libs/libgf2x.a(libgf2x_la-gf2x-
> ternary-fft.o): warning: relocation against `memcpy@@GLIBC_2.14' in
> read-only section `.text'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-
> gnu/bin/ld: final link failed: nonrepresentable section on output
> collect2: error: ld returned 1 exit status
> make[2]: *** [linalg/bwc/CMakeFiles/lingen.dir/build.make:217:
> linalg/bwc/lingen] Error 1
> make[1]: *** [CMakeFiles/Makefile2:4588:
> linalg/bwc/CMakeFiles/lingen.dir/all] Error 2
> make: *** [Makefile:141: all] Error 2
> make: *** [Makefile:7: all] Error 2
>
>
> _______________________________________________
> Cado-nfs-discuss mailing list
> Cado-nfs-discuss@lists.gforge.inria.fr
> https://lists.gforge.inria.fr/mailman/listinfo/cado-nfs-discuss
- [Cado-nfs-discuss] build problems: relocation against .rodata fails, Paul Leyland, 05/06/2019
- Re: [Cado-nfs-discuss] build problems: relocation against .rodata fails, Dennis Clarke, 05/06/2019
- Re: [Cado-nfs-discuss] build problems: relocation against .rodata fails, Emmanuel Thomé, 05/10/2019
- Re: [Cado-nfs-discuss] build problems: relocation against .rodata fails, paul zimmermann, 05/13/2019
Archive powered by MHonArc 2.6.19+.