From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] gnu: luajit: Add -fPIC into CFLAGS. Date: Wed, 07 Jan 2015 21:14:46 +0100 Message-ID: <87ppaqz6tl.fsf@gnu.org> References: <1418683961-28525-1-git-send-email-sleep_walker@suse.cz> <87sigf7cat.fsf@gnu.org> <87zjanwg1p.wl%sleep_walker@suse.cz> <87zjanpaku.fsf@gnu.org> <87wq5rw9tn.wl%tcech@suse.cz> <87vblbp7g1.fsf@gnu.org> <87oaqpwazx.wl%sleep_walker@suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8x0F-0002GT-D4 for guix-devel@gnu.org; Wed, 07 Jan 2015 15:14:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8x0C-0001in-8K for guix-devel@gnu.org; Wed, 07 Jan 2015 15:14:51 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:59678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8x0C-0001ig-1L for guix-devel@gnu.org; Wed, 07 Jan 2015 15:14:48 -0500 In-Reply-To: <87oaqpwazx.wl%sleep_walker@suse.cz> (Tomas Cech's message of "Sat, 27 Dec 2014 13:08:50 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Tomas Cech Cc: guix-devel@gnu.org, enlightenment-devel@lists.sourceforge.net Tomas Cech skribis: > /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bi= n/ld: /gnu/store/ij22m0lalbagkm4fflnxc9691ax4bpvk-luajit-2.0.3/lib/libluaji= t-5.1.a(lj_err.o): relocation R_X86_64_32S against `.rodata' can not be use= d 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=E2=80=99re using the link= er 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=E2=80=99m guessing this is in your own environment, right? In that case, please make sure to run: guix package -i gcc-toolchain to get the =E2=80=9Cright=E2=80=9D compiler, linker, etc. HTH, Ludo=E2=80=99.