guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnu: luajit: Add -fPIC into CFLAGS.


From: Tomas Cech
Subject: Re: [PATCH] gnu: luajit: Add -fPIC into CFLAGS.
Date: Wed, 28 Jan 2015 21:31:33 +0100
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/24.4 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

Sorry for late response, it's been very rush month.

At Wed, 07 Jan 2015 21:14:46 +0100,
Ludovic Courtès wrote:
> 
> 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.

Good catch - my linker indeed. But it is because I manually retried
`make V=1' when it failed to obtain the full command causing the error
message.

> 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?

The problem occurs when run by guix, not by me manually.

> In that case, please make sure to run:
> 
>   guix package -i gcc-toolchain
> 
> to get the “right” compiler, linker, etc.

I'm afraid that I got the same error even with this package installed.

See you on FOSDEM.

S_W

reply via email to

[Prev in Thread] Current Thread [Next in Thread]