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: Thu, 28 Mar 2013 23:41:34 +0100 Message-ID: <87y5d7w3j5.fsf@gnu.org> References: <87txoxv7x9.fsf@gnu.org> <201303031726.08488.andreas@enge.fr> <8738wcyxs7.fsf@gnu.org> <87wqsrrho3.fsf@karetnikov.org> <878v57r6f4.fsf@gnu.org> <87boa38cj8.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]:43345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULLzc-0003nO-Am for bug-guix@gnu.org; Thu, 28 Mar 2013 19:12:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULLzb-00023z-6X for bug-guix@gnu.org; Thu, 28 Mar 2013 19:12:24 -0400 Received: from [2a01:e0b:1:123:ca0a:a9ff:fe03:271e] (port=39002 helo=xanadu.aquilenet.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULLzb-000222-05 for bug-guix@gnu.org; Thu, 28 Mar 2013 19:12:23 -0400 In-Reply-To: <87boa38cj8.fsf@karetnikov.org> (Nikita Karetnikov's message of "Fri, 29 Mar 2013 01:00:59 +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: >> Can you run =E2=80=98file=E2=80=99 on libgcc.a (or one of the .o files i= t contains)? >> Can you check in the glibc log whether a -mabi flag is passed? > > Oh, I forgot to add the -K option. There are no logs. -K has nothing to do with logs. :-) Logs are always kept, under /nix/var/log/nix/drvs by default (the directory and file name correspond to the .drv name.) >> You may need to explicitly add -mabi=3D64 for glibc. It should be >> possible to do it with something like: > >> #:configure-flags '("CFLAGS=3D-mabi=3D64 -g -O2") > > Which 'glibc' should be used? The cross one. > I tried to use > > ((#:configure-flags flags) > `(cons ,(string-append "CFLAGS=3D-mabi=3D64 -g -O2 " "--host=3D" = target) > ,flags)) > > in 'cross-libc' ('cross-base.scm'), but it failed: > > checking for suffix of object files... configure: error: in `/tmp/nix-bui= ld-glibc-cross-mips64el-linux-gnu-2.17.drv-3/build': > configure: error: cannot compute suffix of object files: cannot compile Can you check what config.log has to say? > I reread the quasiquote-related part of the manual, but I still fail to > understand how to add 'CFLAGS' properly. You did it right. :-) Ludo=E2=80=99.