From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5251 invoked by alias); 2 Mar 2013 09:18:59 -0000 Received: (qmail 5242 invoked by uid 22791); 2 Mar 2013 09:18:58 -0000 X-SWARE-Spam-Status: No, hits=-7.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_BF X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 02 Mar 2013 09:18:48 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r229Ihe4001628 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 2 Mar 2013 04:18:43 -0500 Received: from zebedee.pink (ovpn-113-116.phx2.redhat.com [10.3.113.116]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r229IfoH031608; Sat, 2 Mar 2013 04:18:42 -0500 Message-ID: <5131C3F0.9010008@redhat.com> Date: Sat, 02 Mar 2013 09:18:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Nikita Karetnikov CC: glasgow-haskell-users@haskell.org, libffi-discuss@sourceware.org Subject: Re: Libffi errors while cross-compiling GHC 7.6.2 (Stage 1) References: <87y5e6wyrb.fsf@karetnikov.org> In-Reply-To: <87y5e6wyrb.fsf@karetnikov.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org X-SW-Source: 2013/txt/msg00103.txt.bz2 On 03/01/2013 10:17 PM, Nikita Karetnikov wrote: > I'd like to cross-build GHC 7.6.2. I got stuck when I was trying to build a Stage 1 compiler [1]. Here's a bug report: [2,3]. > > I'm not sure that it's a bug; maybe I misunderstood the process. Could anyone advise? > > I have no experience with C. Though, I'll try to help out. I don't want to be cruel, but if you have no experience with C, why are you trying to do this? > Steps to reproduce: $ ./configure --target=mips64el-linux --with-gcc=/usr/bin/gcc \ --with-ld=/usr/bin/ld --with-nm=/usr/bin/nm > > Did I specify the wrong binaries? These are the same I used for Stage 0 and libs boot phases. Is /usr/bin/gcc a MIPS cross-compiler? If not, how do you expect it to work? Andrew