public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* A not so stellar result on Solaris 10
@ 2012-11-17 22:02 Dennis Clarke
  2012-11-17 23:41 ` Eric Botcazou
  0 siblings, 1 reply; 7+ messages in thread
From: Dennis Clarke @ 2012-11-17 22:02 UTC (permalink / raw)
  To: gcc-help; +Cc: ebotcazou, ryan.johnson, iant, jwakely.gcc


Gentlemen : 

    So after a pile of noises made I was ableto finally posts ome sort of result : 

        http://gcc.gnu.org/ml/gcc-testresults/2012-11/msg01367.html

    Not exactly what I was hoping for but it seems to be a step in the right direction. Notice
that I gave up on the --disable-multilib option and did embrace the --disable-nls which allowed
stage 1 to complete. 

Not too sure what to make of all those failures with g++ or gcc for that matter. 
Everything else was flawless. 

My builds on old old Solaris 8 are still going .. no end in sight yet. 

Dennis

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: A not so stellar result on Solaris 10
  2012-11-17 22:02 A not so stellar result on Solaris 10 Dennis Clarke
@ 2012-11-17 23:41 ` Eric Botcazou
  2012-11-18  0:12   ` Dennis Clarke
  2012-11-20  6:07   ` gcc 4.7.2 fails to bootstrap in stage 1 Dennis Clarke
  0 siblings, 2 replies; 7+ messages in thread
From: Eric Botcazou @ 2012-11-17 23:41 UTC (permalink / raw)
  To: Dennis Clarke; +Cc: gcc-help, ryan.johnson, iant, jwakely.gcc

>     So after a pile of noises made I was ableto finally posts ome sort of
> result :
> 
>         http://gcc.gnu.org/ml/gcc-testresults/2012-11/msg01367.html
> 
>     Not exactly what I was hoping for but it seems to be a step in the right
> direction. Notice that I gave up on the --disable-multilib option and did
> embrace the --disable-nls which allowed stage 1 to complete.
> 
> Not too sure what to make of all those failures with g++ or gcc for that
> matter. Everything else was flawless.

I think that the visibility failures are expected - because of the antiquated 
assembler.  You need to use the GNU assembler if you want to have all the 
fancy C++ features, as well as other advanced features.

The gnat.dg/lto14.adb failure is also expected (it's adjusted on the branch).

The g++.dg/cpp0x/nullptr28.C and libgomp.c/sort-1.c failures aren't expected.

-- 
Eric Botcazou

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: A not so stellar result on Solaris 10
  2012-11-17 23:41 ` Eric Botcazou
@ 2012-11-18  0:12   ` Dennis Clarke
  2012-11-18  7:25     ` Eric Botcazou
  2012-11-20  6:07   ` gcc 4.7.2 fails to bootstrap in stage 1 Dennis Clarke
  1 sibling, 1 reply; 7+ messages in thread
From: Dennis Clarke @ 2012-11-18  0:12 UTC (permalink / raw)
  To: Eric Botcazou; +Cc: gcc-help, ryan.johnson, iant, jwakely.gcc



----- Original Message -----
From: Eric Botcazou <ebotcazou@adacore.com>
Date: Saturday, November 17, 2012 6:41 pm
Subject: Re: A not so stellar result on Solaris 10
To: Dennis Clarke <dclarke@blastwave.org>
Cc: gcc-help@gcc.gnu.org, ryan.johnson@cs.utoronto.ca, iant@google.com, jwakely.gcc@gmail.com


> >     So after a pile of noises made I was ableto finally posts ome 
> sort of
> > result :
> > 
> >         http://gcc.gnu.org/ml/gcc-testresults/2012-11/msg01367.html
> > 
> >     Not exactly what I was hoping for but it seems to be a step in 
> the right
> > direction. Notice that I gave up on the --disable-multilib option 
> and did
> > embrace the --disable-nls which allowed stage 1 to complete.
> > 
> > Not too sure what to make of all those failures with g++ or gcc for 
> that
> > matter. Everything else was flawless.
> 
> I think that the visibility failures are expected - because of the 
> antiquated 
> assembler.  You need to use the GNU assembler if you want to have all 
> the 
> fancy C++ features, as well as other advanced features.

Mostly I want a clean GCC compiler. So therefore I see binutils-2.23.1 was just
released last week. Perhaps I will give that a build ( with this GCC ) and then
ensure it has the "g" prefix and try a re-bootstrap of GCC again with gas as the
assembler. This may provide the cleaner results I am looking for. 

> The gnat.dg/lto14.adb failure is also expected (it's adjusted on the branch).

I guess that is fixed in 4.7.3 then .. no worries there. Maybe there is a simply patch
that can be applied at this time ? 

> The g++.dg/cpp0x/nullptr28.C and libgomp.c/sort-1.c failures aren't expected.

I have no idea where they are coming from however, no worries, could be a symptom
of not using gas and/or some other non-obvious factor in the GNU stack I have.  The plan
at some point is to have a single GNU stack in /usr/local which is 64-bit everywhere 
but with a GCC compiler in /usr/local/gcc4 that is happy to handle either 32-bit or 
64-bit tasks. 

Something I did notice was that the GCC 4.7.2 manual still refers to a -mcpu option of v7 
and also v8 as if they would result in different assembler output. Thus far I have tested 
this gcc 4.7.2 with -mcpu=v7 and v8 and checked the output assembly and seen no change. 
I would think v7 has long since been dropped as a supported processor. I don't think I have
seen one in years.  Not even in a junk pile. 

Dennis 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: A not so stellar result on Solaris 10
  2012-11-18  0:12   ` Dennis Clarke
@ 2012-11-18  7:25     ` Eric Botcazou
  0 siblings, 0 replies; 7+ messages in thread
From: Eric Botcazou @ 2012-11-18  7:25 UTC (permalink / raw)
  To: Dennis Clarke; +Cc: gcc-help, ryan.johnson, iant, jwakely.gcc

> Mostly I want a clean GCC compiler. So therefore I see binutils-2.23.1 was
> just released last week. Perhaps I will give that a build ( with this GCC )
> and then ensure it has the "g" prefix and try a re-bootstrap of GCC again
> with gas as the assembler. This may provide the cleaner results I am
> looking for.

The recommended (and tested) binutils version to be used in conjunction with 
GCC 4.7.x is 2.22.x.  That being said, 2.23.1 should work as well.

> I guess that is fixed in 4.7.3 then .. no worries there. Maybe there is a
> simply patch that can be applied at this time ?

http://gcc.gnu.org/ml/gcc-cvs/2012-10/msg01035.html

> Something I did notice was that the GCC 4.7.2 manual still refers to a -mcpu
> option of v7 and also v8 as if they would result in different assembler
> output. Thus far I have tested this gcc 4.7.2 with -mcpu=v7 and v8 and
> checked the output assembly and seen no change. I would think v7 has long
> since been dropped as a supported processor. I don't think I have seen one
> in years.  Not even in a junk pile.

No, they are still supported, but in 32-bit mode; 64-bit mode forces -mcpu=v9.

-- 
Eric Botcazou

^ permalink raw reply	[flat|nested] 7+ messages in thread

* gcc 4.7.2 fails to bootstrap in stage 1
  2012-11-17 23:41 ` Eric Botcazou
  2012-11-18  0:12   ` Dennis Clarke
@ 2012-11-20  6:07   ` Dennis Clarke
  2012-11-20  8:31     ` Eric Botcazou
  1 sibling, 1 reply; 7+ messages in thread
From: Dennis Clarke @ 2012-11-20  6:07 UTC (permalink / raw)
  To: Eric Botcazou; +Cc: gcc-help, ryan.johnson, iant, jwakely.gcc


> >     So after a pile of noises made I was ableto finally posts ome 
> sort of result :
> > 
> >         http://gcc.gnu.org/ml/gcc-testresults/2012-11/msg01367.html
> > 
> >     Not exactly what I was hoping for but it seems to be a step in 
> the right
> > direction. Notice that I gave up on the --disable-multilib option 
> and did
> > embrace the --disable-nls which allowed stage 1 to complete.
> > 
> > Not too sure what to make of all those failures with g++ or gcc for 
> that
> > matter. Everything else was flawless.
> 
> I think that the visibility failures are expected - because of the 
> antiquated 
> assembler.  You need to use the GNU assembler if you want to have all 
> the 
> fancy C++ features, as well as other advanced features.

I have built gas thus : 

$ 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'.

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 : 

$ cd gcc-4.7.2_sparc64-sun-solaris2.10.002/
$ env | sort 
AS=/usr/local/bin/gas
BUILD=/usr/local/build
CC=gcc
COLUMNS=124
CONFIG_SHELL=/bin/bash
CPPFLAGS=-I/usr/local/include -I/usr/local/gcc4/include
CXX=g++
EDITOR=/usr/xpg4/bin/vi
GREP=/usr/local/bin/grep
HOME=/export/home/dclarke
LANG=C
LC_ALL=C
LC_COLLATE=C
LC_CTYPE=C
LC_MESSAGES=C
LC_MONETARY=C
LC_NUMERIC=C
LC_TIME=C
LD=/usr/ccs/bin/ld
LD_OPTIONS=-R/usr/local/gcc4/lib/$ISALIST:/usr/local/gcc4/lib:/usr/local/lib -L/usr/local/gcc4/lib/$ISALIST:/usr/local/gcc4/lib:/usr/local/lib
LD_RUN_PATH=/usr/local/gcc4/lib/$ISALIST:/usr/local/gcc4/lib:/usr/local/lib
LIBTOOL=/usr/local/bin/libtool
LINES=43
LOGNAME=dclarke
M4=/usr/local/bin/gm4
MACHTYPE=sparc-sun-solaris
MAIL=/usr/mail/dclarke
MAKE=/usr/local/bin/gmake
MANPATH=/usr/local/man:/usr/local/share/man:/usr/share/man:/usr/X11/share/man
NM=/usr/ccs/bin/nm -p
OSTYPE=solaris
PAGER=/usr/xpg4/bin/more
PATH=/usr/local/bin:/usr/local/sbin:/usr/local/gcc4/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/sbin:/bin:/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/opt/schily/bin:/usr/local/texlive/2012/bin/sparc-solaris
PERL=/usr/local/bin/perl
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
PWD=/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002
SED=/usr/local/bin/gsed
SHELL=/bin/ksh
SRC=/usr/local/src
TERM=vt100
TZ=GMT0
USER=dclarke
VISUAL=/usr/xpg4/bin/vi
WINDOW=3
_=/usr/xpg4/bin/env
$ 
$ which gcc
/usr/local/gcc4/bin/gcc
$ gcc --version 
gcc (Blastwave.org Inc. Thu Nov 15 21:54:55 GMT 2012) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ 
$ 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/lto-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
checking build system type... sparc64-sun-solaris2.10
checking host system type... sparc64-sun-solaris2.10
checking target system type... sparc64-sun-solaris2.10
checking for a BSD-compatible install... ../gcc-4.7.2/install-sh -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/local/bin/gsed
checking for gawk... gawk
checking for libitm support... yes
checking for gcc... gcc -m64
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -m64 accepts -g... yes
checking for gcc -m64 option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether g++ -m64 accepts -g... yes
checking for gnatbind... gnatbind
checking for gnatmake... gnatmake
checking whether compiler driver understands Ada... yes
checking how to compare bootstrapped objects... cmp $$f1 $$f2 16 16
checking for objdir... .libs
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr/mpc libraries... yes
checking for PWL_handle_timeout in -lpwl... no
checking for version 0.11 (revision 0 or later) of PPL... no
The following languages will be built: c,ada,c++,fortran,lto,objc
*** This configuration is not supported in the following subdirectories:
     target-libmudflap target-libgo target-libffi target-zlib target-libjava target-boehm-gc
    (Any other directories should still work fine.)
checking for default BUILD_CONFIG... 
checking for bison... bison -y
checking for bison... bison
checking for gm4... /usr/local/bin/gm4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... expect
checking for runtest... runtest
checking for ar... ar
checking for as... (cached) /usr/local/bin/gas
checking for dlltool... no
checking for ld... (cached) /usr/ccs/bin/ld
checking for lipo... no
checking for nm... (cached) /usr/ccs/bin/nm -p
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... no
checking for objdump... no
checking for readelf... no
checking for cc... cc
checking for c++... c++
checking for gcc... gcc
checking for gcj... no
checking for gfortran... gfortran
checking for gccgo... no
checking for ar... no
checking for ar... ar
checking for as... no
checking for as... as
checking for dlltool... no
checking for dlltool... no
checking for ld... no
checking for ld... ld
checking for lipo... no
checking for lipo... no
checking for nm... no
checking for nm... nm
checking for objdump... no
checking for objdump... no
checking for ranlib... no
checking for ranlib... ranlib
checking for readelf... no
checking for readelf... no
checking for strip... no
checking for strip... strip
checking for windres... no
checking for windres... no
checking for windmc... no
checking for windmc... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gcj... host tool
checking where to find the target gfortran... just compiled
checking where to find the target gccgo... host tool
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target readelf... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile
$

I was hoping for a nice easy clean bootstrap .. but no : 

Well into stage 1 I see : 

.
.
.
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/xgcc -shared-libgcc -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc -nostdinc++ -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src/.libs -B/usr/local/gcc4/sparc64-sun-solaris2.10/bin/ -B/usr/local/gcc4/sparc64-sun-solaris2.10/lib/ -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/include -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/sys-include  -m32 -E
checking for ld used by /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/xgcc -shared-libgcc -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc -nostdinc++ -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src/.libs -B/usr/local/gcc4/sparc64-sun-solaris2.10/bin/ -B/usr/local/gcc4/sparc64-sun-solaris2.10/lib/ -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/include -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/sys-include  -m32... /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/collect-ld
checking if the linker (/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/collect-ld) is GNU ld... no
checking whether the /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/xgcc -shared-libgcc -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc -nostdinc++ -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src/.libs -B/usr/local/gcc4/sparc64-sun-solaris2.10/bin/ -B/usr/local/gcc4/sparc64-sun-solaris2.10/lib/ -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/include -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/sys-include  -m32 linker (/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/collect-ld) supports shared libraries... yes
checking for /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/xgcc -shared-libgcc -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc -nostdinc++ -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src/.libs -B/usr/local/gcc4/sparc64-sun-solaris2.10/bin/ -B/usr/local/gcc4/sparc64-sun-solaris2.10/lib/ -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/include -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/sys-include  -m32 option to produce PIC... -fPIC -DPIC
checking if /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/xgcc -shared-libgcc -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc -nostdinc++ -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src/.libs -B/usr/local/gcc4/sparc64-sun-solaris2.10/bin/ -B/usr/local/gcc4/sparc64-sun-solaris2.10/lib/ -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/include -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/sys-include  -m32 PIC flag -fPIC -DPIC works... yes
checking if /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/xgcc -shared-libgcc -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc -nostdinc++ -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src/.libs -B/usr/local/gcc4/sparc64-sun-solaris2.10/bin/ -B/usr/local/gcc4/sparc64-sun-solaris2.10/lib/ -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/include -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/sys-include  -m32 static flag -static works... no
checking if /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/xgcc -shared-libgcc -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc -nostdinc++ -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src/.libs -B/usr/local/gcc4/sparc64-sun-solaris2.10/bin/ -B/usr/local/gcc4/sparc64-sun-solaris2.10/lib/ -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/include -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/sys-include  -m32 supports -c -o file.o... yes
checking if /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/xgcc -shared-libgcc -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc -nostdinc++ -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src/.libs -B/usr/local/gcc4/sparc64-sun-solaris2.10/bin/ -B/usr/local/gcc4/sparc64-sun-solaris2.10/lib/ -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/include -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/sys-include  -m32 supports -c -o file.o... (cached) yes
checking whether the /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/xgcc -shared-libgcc -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc -nostdinc++ -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/src/.libs -B/usr/local/gcc4/sparc64-sun-solaris2.10/bin/ -B/usr/local/gcc4/sparc64-sun-solaris2.10/lib/ -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/include -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/sys-include  -m32 linker (/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/collect-ld) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking for exception model to use... call frame
checking for compiler with PCH support... yes
checking for enabled PCH... yes
checking for thread model used by GCC... posix
checking for atomic builtins for bool... yes
checking for atomic builtins for short... yes
checking for atomic builtins for int... yes
checking for atomic builtins for long long... yes
checking for ISO/IEC TR 24733 ... no
checking for __int128... no
checking for __float128... no
checking for g++ that supports -ffunction-sections -fdata-sections... yes
checking for underlying I/O to use... stdio
checking for C locale to use... generic
checking for std::allocator base class... new
configure: "C" header strategy set to c_global
checking for enabled long long specializations... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for mbstate_t... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for enabled wchar_t specializations... yes
checking for sin in -lm... yes
checking for ISO C99 support in <math.h>... yes
checking tgmath.h usability... yes
checking tgmath.h presence... yes
checking for tgmath.h... yes
checking complex.h usability... yes
checking complex.h presence... yes
checking for complex.h... yes
checking for ISO C99 support in <complex.h>... yes
checking for ISO C99 support in <stdio.h>... yes
checking for ISO C99 support in <stdlib.h>... yes
checking for ISO C99 support in <wchar.h>... yes
checking for fully enabled ISO C99 support... yes
configure: Debug build flags set to -gdwarf-4 -g3 -O0
checking for additional debug build... no
checking for parallel mode support... yes
checking for extra compiler flags for building... 
checking for extern template support... yes
checking for custom python install directory... no
checking for -Werror... yes
checking for float std::abs(float) overload... yes
checking for long std::abs(long) overload... yes
checking for gets declaration... yes
checking for EOWNERDEAD... yes
checking for ENOTRECOVERABLE... yes
checking for ENOLINK... yes
checking for EPROTO... yes
checking for ENODATA... yes
checking for ENOSR... yes
checking for ENOSTR... yes
checking for ETIME... yes
checking for EBADMSG... yes
checking for ECANCELED... yes
checking for EOVERFLOW... yes
checking for ENOTSUP... yes
checking for EIDRM... yes
checking for ETXTBSY... yes
checking for ECHILD... yes
checking for ENOSPC... yes
checking for EPERM... yes
checking for ETIMEDOUT... yes
checking for EWOULDBLOCK... yes
checking for int64_t... yes
checking for int64_t as long... checking for int64_t as long long... yes
checking for LFS support... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/filio.h usability... yes
checking sys/filio.h presence... yes
checking for sys/filio.h... yes
checking for poll... yes
checking for S_ISREG or S_IFREG... S_ISREG
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for writev... yes
checking for complex.h... (cached) yes
checking for ISO C99 support to TR1 in <complex.h>... yes
checking for ISO C99 support to TR1 in <ctype.h>... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking for ISO C99 support to TR1 in <fenv.h>... yes
checking for ISO C99 support to TR1 in <stdint.h>... yes
checking for ISO C99 support to TR1 in <math.h>... yes
checking for ISO C99 support to TR1 in <inttypes.h>... yes
checking for wchar_t ISO C99 support to TR1 in <inttypes.h>... yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking stdalign.h usability... yes
checking stdalign.h presence... yes
checking for stdalign.h... yes
checking for the value of EOF... -1
checking for the value of SEEK_CUR... 1
checking for the value of SEEK_END... 2
checking for gettimeofday... checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for gettimeofday... yes
checking for clock_gettime, nanosleep and sched_yield... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking sys/sysinfo.h usability... yes
checking sys/sysinfo.h presence... yes
checking for sys/sysinfo.h... yes
checking for get_nprocs... no
checking for unistd.h... (cached) yes
checking for _SC_NPROCESSORS_ONLN... yes
checking for _SC_NPROC_ONLN... no
checking for pthreads_num_processors_np... no
checking for hw.ncpu sysctl... no
checking endian.h usability... no
checking endian.h presence... no
checking for endian.h... no
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking fp.h usability... no
checking fp.h presence... no
checking for fp.h... no
checking ieeefp.h usability... yes
checking ieeefp.h presence... yes
checking for ieeefp.h... yes
checking for inttypes.h... (cached) yes
checking for locale.h... (cached) yes
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking machine/param.h usability... no
checking machine/param.h presence... no
checking for machine/param.h... no
checking nan.h usability... yes
checking nan.h presence... yes
checking for nan.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/isa_defs.h usability... yes
checking sys/isa_defs.h presence... yes
checking for sys/isa_defs.h... yes
checking sys/machine.h usability... no
checking sys/machine.h presence... no
checking for sys/machine.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for wchar.h... (cached) yes
checking for wctype.h... (cached) yes
checking for ld used by /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/xgcc -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/ -B/usr/local/gcc4/sparc64-sun-solaris2.10/bin/ -B/usr/local/gcc4/sparc64-sun-solaris2.10/lib/ -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/include -isystem /usr/local/gcc4/sparc64-sun-solaris2.10/sys-include  -m32... (cached) /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/collect-ld
checking if the linker (/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/collect-ld) is GNU ld... (cached) no
checking for sin in -lm... (cached) yes
checking for isinf declaration... no
checking for _isinf declaration... no
checking for isnan declaration... no
checking for _isnan declaration... no
checking for finite declaration... yes
checking for finite... yes
checking for sincos declaration... yes
checking for sincos... yes
checking for fpclass declaration... yes
checking for fpclass... yes
checking for qfpclass declaration... no
checking for _qfpclass declaration... no
checking for hypot declaration... yes
checking for hypot... yes
checking for float trig functions... yes
checking for acosf... yes
checking for asinf... yes
checking for atanf... yes
checking for cosf... yes
checking for sinf... yes
checking for tanf... yes
checking for coshf... yes
checking for sinhf... yes
checking for tanhf... yes
checking for float round functions... yes
checking for ceilf... yes
checking for floorf... yes
checking for expf declaration... yes
checking for expf... yes
checking for isnanf declaration... yes
checking for isnanf... yes
checking for isinff declaration... no
checking for _isinff declaration... no
checking for atan2f declaration... yes
checking for atan2f... yes
checking for fabsf declaration... yes
checking for fabsf... yes
checking for fmodf declaration... yes
checking for fmodf... yes
checking for frexpf declaration... yes
checking for frexpf... yes
checking for hypotf declaration... yes
checking for hypotf... yes
checking for ldexpf declaration... yes
checking for ldexpf... yes
checking for logf declaration... yes
checking for logf... yes
checking for log10f declaration... yes
checking for log10f... yes
checking for modff declaration... yes
checking for modff... yes
checking for modf declaration... no
checking for _modf declaration... no
checking for powf declaration... yes
checking for powf... yes
checking for sqrtf declaration... yes
checking for sqrtf... yes
checking for sincosf declaration... yes
checking for sincosf... yes
checking for finitef declaration... no
checking for _finitef declaration... no
checking for long double trig functions... yes
checking for acosl... yes
checking for asinl... yes
checking for atanl... yes
checking for cosl... yes
checking for sinl... yes
checking for tanl... yes
checking for coshl... yes
checking for sinhl... yes
checking for tanhl... yes
checking for long double round functions... yes
checking for ceill... yes
checking for floorl... yes
checking for isnanl declaration... yes
checking for isnanl... yes
checking for isinfl declaration... no
checking for _isinfl declaration... no
checking for atan2l declaration... yes
checking for atan2l... yes
checking for expl declaration... yes
checking for expl... yes
checking for fabsl declaration... yes
checking for fabsl... yes
checking for fmodl declaration... yes
checking for fmodl... yes
checking for frexpl declaration... yes
checking for frexpl... yes
checking for hypotl declaration... yes
checking for hypotl... yes
checking for ldexpl declaration... yes
checking for ldexpl... yes
checking for logl declaration... yes
checking for logl... yes
checking for log10l declaration... yes
checking for log10l... yes
checking for modfl declaration... yes
checking for modfl... yes
checking for powl declaration... yes
checking for powl... yes
checking for sqrtl declaration... yes
checking for sqrtl... yes
checking for sincosl declaration... yes
checking for sincosl... yes
checking for finitel declaration... no
checking for _finitel declaration... no
checking for strtold declaration... yes
checking for strtold... yes
checking for strtof declaration... yes
checking for strtof... yes
checking for "/dev/random" and "/dev/urandom" for TR1 random_device... yes
checking whether the target supports thread-local storage... yes
checking for ld used by GCC... /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/collect-ld
checking if the linker (/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/./gcc/collect-ld) is GNU ld... no
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, const char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
looking for a compliant stdint.h in stdint.h, checking for uintmax_t... yes
checking for uintptr_t... yes
checking for int_least32_t... yes
checking for int_fast32_t... yes
checking for uint64_t... yes
checking what to include in include/gstdint.h... stdint.h (already complete)
checking for GNU c++filt... /usr/local/bin/gc++filt
checking for shared libgcc... yes
checking whether the target supports .symver directive... yes
configure: versioning on shared library symbols is sun
checking for size_t as unsigned int... yes
checking for ptrdiff_t as int... yes
checking whether the target supports hidden visibility... yes
configure: visibility supported: yes
checking for unistd.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for RLIMIT_DATA... yes
checking for RLIMIT_RSS... no
checking for RLIMIT_VMEM... yes
checking for RLIMIT_AS... yes
checking for RLIMIT_FSIZE... yes
checking for testsuite resource limits support... yes
checking for setenv declaration... yes
checking for setenv... yes
checking whether it can be safely assumed that mutex_timedlock is available... yes
checking for gthreads library... yes
checking for makeinfo... makeinfo --split-size=5000000 --split-size=5000000
checking for modern makeinfo... yes
checking for doxygen... no
checking for dot... no
checking for xsltproc... yes
checking for xmllint... yes
checking for docbook stylesheets for documentation creation... no
checking for local stylesheet directory... no
checking for epub3 stylesheets for documentation creation... no
checking for dblatex... no
checking for pdflatex... yes
configure: updating cache ./config.cache
checking for gxx-include-dir... no
checking for --enable-version-specific-runtime-libs... no
checking for install location... ${prefix}/include/c++/${gcc_version}
configure: creating ./config.status
config.status: creating Makefile
config.status: creating scripts/testsuite_flags
config.status: creating scripts/extract_symvers
config.status: creating include/Makefile
Adding multilib support to include/Makefile in ../../../../gcc-4.7.2/libstdc++-v3
with_multisubdir=sparcv8plus
config.status: creating libsupc++/Makefile
Adding multilib support to libsupc++/Makefile in ../../../../gcc-4.7.2/libstdc++-v3
with_multisubdir=sparcv8plus
config.status: creating python/Makefile
Adding multilib support to python/Makefile in ../../../../gcc-4.7.2/libstdc++-v3
with_multisubdir=sparcv8plus
config.status: creating src/Makefile
Adding multilib support to src/Makefile in ../../../../gcc-4.7.2/libstdc++-v3
with_multisubdir=sparcv8plus
config.status: creating src/c++98/Makefile
Adding multilib support to src/c++98/Makefile in ../../../../gcc-4.7.2/libstdc++-v3
with_multisubdir=sparcv8plus
config.status: creating src/c++11/Makefile
Adding multilib support to src/c++11/Makefile in ../../../../gcc-4.7.2/libstdc++-v3
with_multisubdir=sparcv8plus
config.status: creating doc/Makefile
Adding multilib support to doc/Makefile in ../../../../gcc-4.7.2/libstdc++-v3
with_multisubdir=sparcv8plus
config.status: creating po/Makefile
Adding multilib support to po/Makefile in ../../../../gcc-4.7.2/libstdc++-v3
with_multisubdir=sparcv8plus
config.status: creating testsuite/Makefile
Adding multilib support to testsuite/Makefile in ../../../../gcc-4.7.2/libstdc++-v3
with_multisubdir=sparcv8plus
config.status: creating config.h
config.status: executing default-1 commands
Adding multilib support to Makefile in ../../../../gcc-4.7.2/libstdc++-v3
with_multisubdir=sparcv8plus
config.status: executing libtool commands
config.status: executing include/gstdint.h commands
config.status: executing generate-headers commands
gmake[3]: Entering directory `/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/include'
echo timestamp > stamp-pb
echo timestamp > stamp-host
echo 0 > stamp-namespace-version
echo 1 > stamp-visibility
echo 1 > stamp-extern-template
sed -e '/^#pragma/b' \
    -e '/^#/s/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*\)/_GLIBCXX_\1/g' \
    -e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \
    -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
    < /usr/local/build/gcc-4.7.2/libstdc++-v3/../libgcc/gthr.h > sparc64-sun-solaris2.10/bits/gthr.h
sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
    -e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCXX_\1/g' \
    < /usr/local/build/gcc-4.7.2/libstdc++-v3/../libgcc/gthr-single.h > sparc64-sun-solaris2.10/bits/gthr-single.h
sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
    -e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCXX_\1/g' \
    -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
    -e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*USE_WEAK\)/_GLIBCXX_\1/g' \
    < /usr/local/build/gcc-4.7.2/libstdc++-v3/../libgcc/gthr-posix.h > sparc64-sun-solaris2.10/bits/gthr-posix.h
sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
    -e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCXX_\1/g' \
    -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
    -e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*USE_WEAK\)/_GLIBCXX_\1/g' \
    -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
    < /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/../libgcc/gthr-default.h > sparc64-sun-solaris2.10/bits/gthr-default.h
gmake[3]: Leaving directory `/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/sparcv8plus/libstdc++-v3/include'
config.status: executing libtool commands
config.status: executing include/gstdint.h commands
config.status: executing generate-headers commands
gmake[3]: Entering directory `/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/libstdc++-v3/include'
echo timestamp > stamp-pb
echo timestamp > stamp-host
echo 0 > stamp-namespace-version
echo 1 > stamp-visibility
echo 1 > stamp-extern-template
sed -e '/^#pragma/b' \
    -e '/^#/s/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*\)/_GLIBCXX_\1/g' \
    -e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \
    -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
    < /usr/local/build/gcc-4.7.2/libstdc++-v3/../libgcc/gthr.h > sparc64-sun-solaris2.10/bits/gthr.h
sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
    -e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCXX_\1/g' \
    < /usr/local/build/gcc-4.7.2/libstdc++-v3/../libgcc/gthr-single.h > sparc64-sun-solaris2.10/bits/gthr-single.h
sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
    -e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCXX_\1/g' \
    -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
    -e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*USE_WEAK\)/_GLIBCXX_\1/g' \
    < /usr/local/build/gcc-4.7.2/libstdc++-v3/../libgcc/gthr-posix.h > sparc64-sun-solaris2.10/bits/gthr-posix.h
sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
    -e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCXX_\1/g' \
    -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
    -e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*USE_WEAK\)/_GLIBCXX_\1/g' \
    -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
    < /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/libstdc++-v3/../libgcc/gthr-default.h > sparc64-sun-solaris2.10/bits/gthr-default.h
gmake[3]: Leaving directory `/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002/sparc64-sun-solaris2.10/libstdc++-v3/include'
gmake[2]: Leaving directory `/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.002'
gmake: *** [all] Error 2

Not sure what to make of that. 

I will say that I used my gcc 4.7.2 result to build GNU binutils 2.23.1 with excellent test results and was really surprised to see this fail in stage 1. 
 
> The gnat.dg/lto14.adb failure is also expected (it's adjusted on the branch).

I'll work forwards on this one step at a time and just go with the golden source of 4.7.2 for now. 

> The g++.dg/cpp0x/nullptr28.C and libgomp.c/sort-1.c failures aren't expected.

hrmmm .. another mystery for later. 

dc

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: gcc 4.7.2 fails to bootstrap in stage 1
  2012-11-20  6:07   ` gcc 4.7.2 fails to bootstrap in stage 1 Dennis Clarke
@ 2012-11-20  8:31     ` Eric Botcazou
  2012-11-20 17:47       ` Dennis Clarke
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Botcazou @ 2012-11-20  8:31 UTC (permalink / raw)
  To: Dennis Clarke; +Cc: gcc-help, ryan.johnson, iant, jwakely.gcc

> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: gcc 4.7.2 fails to bootstrap in stage 1
  2012-11-20  8:31     ` Eric Botcazou
@ 2012-11-20 17:47       ` Dennis Clarke
  0 siblings, 0 replies; 7+ messages in thread
From: Dennis Clarke @ 2012-11-20 17:47 UTC (permalink / raw)
  To: Eric Botcazou; +Cc: gcc-help, ryan.johnson, iant, jwakely.gcc


> 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=[...].

ah ha .. well I want to use the Sun provided linker as there were long standing problems with GNU ld in the Solaris world. Not sure if I can dig up the bugs but /usr/ccs/bin/ld is supposed to work perfectly. The assembler however is another matter and I will try your changes. 

dc

ps: thank you once again 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-11-20 17:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-17 22:02 A not so stellar result on Solaris 10 Dennis Clarke
2012-11-17 23:41 ` Eric Botcazou
2012-11-18  0:12   ` Dennis Clarke
2012-11-18  7:25     ` Eric Botcazou
2012-11-20  6:07   ` gcc 4.7.2 fails to bootstrap in stage 1 Dennis Clarke
2012-11-20  8:31     ` Eric Botcazou
2012-11-20 17:47       ` Dennis Clarke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).