From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25442 invoked by alias); 4 Sep 2009 19:03:32 -0000 Received: (qmail 25195 invoked by uid 22791); 4 Sep 2009 19:03:29 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f220.google.com (HELO mail-fx0-f220.google.com) (209.85.220.220) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Sep 2009 19:03:19 +0000 Received: by fxm20 with SMTP id 20so894879fxm.24 for ; Fri, 04 Sep 2009 12:03:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.138.18 with SMTP id n18mr1048905hbn.40.1252090996205; Fri, 04 Sep 2009 12:03:16 -0700 (PDT) In-Reply-To: <200909041707.02708.yann.morin.1998@anciens.enib.fr> References: <719dced30909032047j74b8ca79pdb8a9de31ea5ac7@mail.gmail.com> <200909041707.02708.yann.morin.1998@anciens.enib.fr> Date: Fri, 04 Sep 2009 19:03:00 -0000 Message-ID: <719dced30909041203tc20450esa7d8a2c9883f7f8c@mail.gmail.com> Subject: Re: ct-ng build fails with 'make[1]: *** [configure-binutils] Error 1' From: Godmar Back To: "Yann E. MORIN" Cc: crossgcc@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00007.txt.bz2 On Fri, Sep 4, 2009 at 11:07 AM, Yann E. MORIN wrote: Yann, thanks for your answer. > > On Friday 04 September 2009 05:47:13 Godmar Back wrote: >> When building ct-ng, it indicated that my automake and autoconf were >> out-of-date (that, by itself, triggered repressed memories...) >> So I downloaded and configured autoconf-2.64 and automake-1.10.2 with >> the same prefix into which I installed ct-ng. > > Yes, some of the components in the toolchain require those updated versions. > There has recently been discussions on this list whether it'd make sense > for crosstool-NG to build its own version, to alleviate the problem. > > I haven't had time to look into this, but it's on the tablets... To be clear: in this situation, I'm trying to build a cross compiler on a shared platform that I do not administer. So I can't put anything in, say /etc/ld.so.conf, /usr/bin, or /usr/lib, or even /usr/local. That's why I installed these versions of automake/autoconf in $prefix/bin where $prefix is the --prefix argument to ct-ng. I then prepend this directory to the path when running ct-ng. > > Tuples in the form arch-vendor-elf are for bare-metal. Are you sure > you want to run on bare-metal x86-64? Are did you forget to set the > "Target OS" to "linux"? I did not - setting x86_64 was the only change I made. I have now remedied that and made two changes: - target to x86_64 - OS to Linux. Now the build fails with: [INFO ] Installing shared core C compiler [ERROR] Build failed in step 'Installing shared core C compiler' [ERROR] Error happened in '/home/courses/cs3214/cross-x86_64/lib/ct-ng-1.4.2/scripts/functions' in function 'CT_DoExecLog' (line unknown, sorry) [ERROR] called from '/home/courses/cs3214/cross-x86_64/lib/ct-ng-1.4.2/scripts/build/cc/gcc.sh' at line # 213 in function 'do_cc_core' [ERROR] called from '/home/courses/cs3214/cross-x86_64/lib/ct-ng-1.4.2/scripts/build/cc/gcc.sh' at line # 69 in function 'do_cc_core_pass_2' [ERROR] called from '/home/courses/cs3214/cross-x86_64/lib/ct-ng-1.4.2/scripts/crosstool-NG.sh' at line # 497 in function 'main' [ERROR] Look at '/home/courses/cs3214/x-tools/x86_64-unknown-linux-gnu/build.log' for more info on this error. [ERROR] (elapsed: 25:00.40) [25:01] / make: *** [build] Error 2 build.log shows: [ALL ] make[1]: *** No rule to make target `../build-i386-build_redhat-linux-gnu/libiberty/libiberty.a', needed by `build/genmodes'. Stop. [ALL ] make[1]: Leaving directory `/home/courses/cs3214/software/crossbuild/targets/x86_64-unknown-linux-gnu/build/build-cc-core-shared/gcc' Full log is: http://courses.cs.vt.edu/~cs3214/crosstools-ng/build.log .config is: http://courses.cs.vt.edu/~cs3214/crosstools-ng/dot.config > > Hmm.. There is no "default" configuration for crosstool-NG. There are so > many possibilities, depending on so many factors, that deciding upon a > sane default is not easy. For the "Target OS", the default is "bare metal" > which alphabetically sorts before "linux" > > That's bad because the sorting can be different, depending on the locale > in use... But I consider this as being a minor issue (if at all), and > I didn't look at /fixing/ it. > All I am interested in is getting a compiler that emits x86_64 assembly code for some ISO-C code for instructional purposes. It doesn't need to run. It doesn't need a particular libc version. I'm not picky. Do you know of a configuration that is known to work? - Godmar -- For unsubscribe information see http://sourceware.org/lists.html#faq