Re: gcc 4.7.2 fails to bootstrap in stage 1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Then I tried to bootstap gcc again by using this gcc 4.7.2 and gas and was
> surprised to see the process fail in stage1 :
> [...]
> $
> $ which gas
> /usr/local/bin/gas
> $
> $ gas --version
> GNU assembler (GNU Binutils) 2.23.1
> Copyright 2012 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License version 3 or later.
> This program has absolutely no warranty.
> This assembler was configured for a target of `sparc64-sun-solaris2.10'.
> 
> $ gcc -v
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/local/gcc4/lib/gcc/sparc64-sun-solaris2.10/4.7.2/lt
> o-wrapper Target: sparc64-sun-solaris2.10
> Configured with: ../gcc-4.7.2/configure --prefix=/usr/local/gcc4
> --build=sparc64-sun-solaris2.10 --without-gnu-as --without-gnu-ld
> --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local
> --with-ld=/usr/ccs/bin/ld --disable-nls --enable-threads=posix
> --enable-shared --libdir=/usr/local/gcc4/lib
> --libexecdir=/usr/local/gcc4/lib --with-pkgversion='Blastwave.org Inc. Thu
> Nov 15 21:54:55 GMT 2012' --with-bugurl=http://www.blastwave.org/support
> --enable-languages=c,c++,objc,fortran,ada --enable-bootstrap Thread model:
> posix
> gcc version 4.7.2 (Blastwave.org Inc. Thu Nov 15 21:54:55 GMT 2012)
> 
> $ CC='gcc -m64' CXX='g++ -m64' ../gcc-4.7.2/configure \
> 
> > --build=sparc64-sun-solaris2.10 --prefix=/usr/local/gcc4 \
> > --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local \
> > --disable-nls --enable-threads=posix --enable-shared \
> > --libdir=/usr/local/gcc4/lib --with-local-prefix=/usr/local/gcc4 \
> > --without-gnu-ld --with-gnu-as=/usr/local/bin/gas \
> > --with-pkgversion=Blastwave.org\ Inc.\ Tue\ Nov\ 20\ 05\:29\:02\ GMT\
> > 2012 \ --enable-languages=c,c++,objc,fortran,ada --enable-bootstrap

--with-gnu-as and -with-gnu-ld don't take arguments.  When you need to specify 
assembler or linker, you need to use --with-as=[...] and --with-ld=[...] and, 
in this case, --with-gnu-as and -with-gnu-ld become superfluous since the 
configure script will autodetect.

If GNU as in your PATH, --with-gnu-as is sufficient; otherwise, you need to 
use --with-as=/usr/local/bin/gas (and --with-gnu-as is superfluous).

I suspect that GNU ld is in your PATH and conflicts with --without-gnu-ld, so 
you need to remove it from your PATH or use --with-ld=[...].

-- 
Eric Botcazou


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux