[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gnu: luajit: Add -fPIC into CFLAGS.
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] gnu: luajit: Add -fPIC into CFLAGS. |
Date: |
Wed, 07 Jan 2015 21:14:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Tomas Cech <address@hidden> skribis:
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld:
>
> /gnu/store/ij22m0lalbagkm4fflnxc9691ax4bpvk-luajit-2.0.3/lib/libluajit-5.1.a(lj_err.o):
> relocation R_X86_64_32S against `.rodata' can not be used when making a
> shared object; recompile with -fPIC
> /gnu/store/ij22m0lalbagkm4fflnxc9691ax4bpvk-luajit-2.0.3/lib/libluajit-5.1.a:
> error adding symbols: Bad value
> collect2: error: ld returned 1 exit status
It took me a while to notice it, but it seems you’re using the linker of
your host distro here and not that of Guix.
This problem cannot occur in builds run by the guix-daemon because it
sets up a chroot. So I’m guessing this is in your own environment,
right?
In that case, please make sure to run:
guix package -i gcc-toolchain
to get the “right” compiler, linker, etc.
HTH,
Ludo’.
- Re: [PATCH] gnu: luajit: Add -fPIC into CFLAGS.,
Ludovic Courtès <=