From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Initial cross-compilation support Date: Fri, 24 May 2013 23:30:30 +0200 Message-ID: <87k3mo83rd.fsf@gnu.org> References: <87txoxv7x9.fsf@gnu.org> <201303031726.08488.andreas@enge.fr> <87txos2f03.fsf@karetnikov.org> <878v63iifr.fsf@gnu.org> <87obezp0i3.fsf@karetnikov.org> <87li9wew0t.fsf@karetnikov.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfzZX-0004O3-4M for bug-guix@gnu.org; Fri, 24 May 2013 17:30:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfzZS-0002lo-7B for bug-guix@gnu.org; Fri, 24 May 2013 17:30:46 -0400 Received: from [2a01:e0b:1:123:ca0a:a9ff:fe03:271e] (port=53344 helo=xanadu.aquilenet.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfzZS-0002k8-1C for bug-guix@gnu.org; Fri, 24 May 2013 17:30:42 -0400 In-Reply-To: <87li9wew0t.fsf@karetnikov.org> (Nikita Karetnikov's message of "Sat, 09 Mar 2013 13:56:50 +0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Nikita Karetnikov Cc: bug-guix@gnu.org Nikita Karetnikov skribis: > I was able to cross-compile a "hello world" program. > > First, I created the following symlinks: > > # ln -s /nix/store/mifp2p1zjlvb4ndslw1r8grkpglybqjf-glibc-cross-mips64el-= linux-gnu-2.17/lib/crti.o /nix/store/khdyz3i5aih56lxfk6hjvp3884apm7qb-gcc-c= ross-mips64el-linux-gnu-4.7.2/lib/gcc/mips64el-linux-gnu/4.7.2/crti.o > # ln -s /nix/store/mifp2p1zjlvb4ndslw1r8grkpglybqjf-glibc-cross-mips64el-= linux-gnu-2.17/lib/crt1.o /nix/store/khdyz3i5aih56lxfk6hjvp3884apm7qb-gcc-c= ross-mips64el-linux-gnu-4.7.2/lib/gcc/mips64el-linux-gnu/4.7.2/crt1.o > # ln -s /nix/store/mifp2p1zjlvb4ndslw1r8grkpglybqjf-glibc-cross-mips64el-= linux-gnu-2.17/lib/crtn.o /nix/store/khdyz3i5aih56lxfk6hjvp3884apm7qb-gcc-c= ross-mips64el-linux-gnu-4.7.2/lib/gcc/mips64el-linux-gnu/4.7.2/crtn.o > > These are needed because I haven't found a way to set the > CROSS_LIBRARY_PATH variable. (I'll show an example below.) The problem of =E2=80=98CROSS_LIBRARY_PATH=E2=80=99 being ignored is fixed = by commit 248d08e. Took me a bit of browsing to find out where that happens in GCC. Ludo=E2=80=99.