This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ct-ng build fails with 'make[1]: *** [configure-binutils] Error 1'


Hi,

I am trying to build a cross-compiler for x86_64 that runs on a CentOS
5.3 installation. The last time I've build a cross-gcc was 10 years
ago (approximately), so I was hoping ct-ng could help.

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.

My attempt to build crosstools breaks with:

$ env PATH=/home/courses/cs3214/cross-x86_64/bin:$PATH ct-ng build
[INFO ]  Build started 20090903.234300
[INFO ]  Checking environment sanity
[INFO ]  Building environment variables
[WARN ]  You did not specify the build system. That's OK, I can guess...
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[INFO ]  Retrieving needed toolchain components' tarballs: done in
0.02s (at 00:02)
[INFO ]  =================================================================
[INFO ]  Extracting and patching toolchain components
[INFO ]  Extracting and patching toolchain components: done in 0.03s (at 00:02)
[INFO ]  =================================================================
[INFO ]  Installing binutils
[ERROR]    make[1]: *** [configure-binutils] Error 1
[ERROR]    checking for inttypes.h... make[1]: *** [configure-opcodes] Error 1
[ERROR]    Build failed in step 'Installing binutils'
[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/binutils.sh'
at line # 49 in function 'do_binutils'
[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-elf/build.log' for more
info on this error.
[ERROR]  (elapsed: 0:21.83)
[00:22] / make: *** [build] Error 2

Note that I have the correct automake/autoconf:
[cs3214@ghestal crossbuild]$ env
PATH=/home/courses/cs3214/cross-x86_64/bin:$PATH automake --version
automake (GNU automake) 1.10.2
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <tromey@redhat.com>
       and Alexandre Duret-Lutz <adl@gnu.org>.
[cs3214@ghestal crossbuild]$ env
PATH=/home/courses/cs3214/cross-x86_64/bin:$PATH autoconf --version
autoconf (GNU Autoconf) 2.64
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later
<http://gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

------------------

You can see my .config and build.log here:

http://courses.cs.vt.edu/~cs3214/crosstools-ng/build.log
http://courses.cs.vt.edu/~cs3214/crosstools-ng/dot.config

build.log contains:

[ALL  ]    *** BFD does not support target x86_64-unknown-elf.
[ALL  ]    *** Look in bfd/config.bfd for supported targets.
[ERROR]    make[1]: *** [configure-binutils] Error 1

What gives?  All I did was select 'x86_64' in menuconfig.

Thanks!

 - Godmar

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]