This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
GCC 3.2 - Make Bootstrap fails on Solaris 2.6
- From: Rocha Iran-QIR001 <Iran dot Rocha at motorola dot com>
- To: "'gcc-help at gnu dot org'" <gcc-help at gnu dot org>
- Date: Wed, 21 Aug 2002 16:42:11 -0500
- Subject: GCC 3.2 - Make Bootstrap fails on Solaris 2.6
Hi,
I was able to successfully build GCC 3.2 on a Solaris 2.5.1 system but I am
running into a problem to build it on a Solaris 2.6 one. After aproximately
one hour, the build fails as follows:
checking how to run the C++ preprocessor... (cached)
/export/usr1/host/data/gcc/objdir/gcc/xgcc -shared-libgcc
-B/export/usr1/host/data/gcc/objdir/gcc/ -nostdinc++
-L/export/usr1/host/data/gcc/objdir/sparc-sun-solaris2.6/libstdc++-v3/src
-L/export/usr1/host/data/gcc/objdir/sparc-sun-solaris2.6/libstdc++-v3/src/.l
ibs -B/usr/misc/GNU/gcc_3.2/sparc-sun-solaris2.6/sparc-sun-solaris2.6/bin/
-B/usr/misc/GNU/gcc_3.2/sparc-sun-solaris2.6/sparc-sun-solaris2.6/lib/
-isystem
/usr/misc/GNU/gcc_3.2/sparc-sun-solaris2.6/sparc-sun-solaris2.6/include -E
updating cache ../config.cache
loading cache ../config.cache within ltconfig
checking whether -lc should be explicitly linked in... (cached) yes
checking for objdir... .libs
checking for /export/usr1/host/data/gcc/objdir/gcc/xgcc option to produce
PIC... -fPIC -DPIC
checking if /export/usr1/host/data/gcc/objdir/gcc/xgcc PIC flag -fPIC -DPIC
works... (cached) yes
checking if /export/usr1/host/data/gcc/objdir/gcc/xgcc static flag -static
works... (cached) yes
finding the maximum length of command line arguments... (cached) 393217
checking if /export/usr1/host/data/gcc/objdir/gcc/xgcc supports -c -o
file.o... (cached) yes
checking if /export/usr1/host/data/gcc/objdir/gcc/xgcc supports -fno-rtti
-fno-exceptions ... yes
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries...
yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... solaris2.6 ld.so
checking command to parse /usr/ccs/bin/nm output... failed
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
loading cache ../config.cache
loading cache ../config.cache within ltconfig
configure: error: libtool tag configuration failed
make[1]: *** [configure-target-boehm-gc] Error 1
make[1]: Leaving directory `/export/usr1/host/data/gcc/objdir'
make: *** [bootstrap] Error 2
This is what I've got from the config log:
> tail sparc-sun-solaris2.6/boehm-gc/config.log
ltconfig:887: checking if /export/usr1/host/data/gcc/objdir/gcc/xgcc
supports -fno-rtti -fno-exceptions
ltconfig:888: /export/usr1/host/data/gcc/objdir/gcc/xgcc
-B/export/usr1/host/data/gcc/objdir/gcc/
-B/usr/misc/GNU/gcc_3.2/sparc-sun-solaris2.6/sparc-sun-solaris2.6/bin/
-B/usr/misc/GNU/gcc_3.2/sparc-sun-solaris2.6/sparc-sun-solaris2.6/lib/
-isystem
/usr/misc/GNU/gcc_3.2/sparc-sun-solaris2.6/sparc-sun-solaris2.6/include -c
-g -O2 -fno-rtti -fno-exceptions -c conftest.c conftest.c 1>&5
ltconfig:1431: checking if global_symbol_pipe works
ltconfig:1432: /export/usr1/host/data/gcc/objdir/gcc/xgcc
-B/export/usr1/host/data/gcc/objdir/gcc/
-B/usr/misc/GNU/gcc_3.2/sparc-sun-solaris2.6/sparc-sun-solaris2.6/bin/
-B/usr/misc/GNU/gcc_3.2/sparc-sun-solaris2.6/sparc-sun-solaris2.6/lib/
-isystem
/usr/misc/GNU/gcc_3.2/sparc-sun-solaris2.6/sparc-sun-solaris2.6/include -c
-g -O2 conftest.c 1>&5
ltconfig:1435: eval "/usr/ccs/bin/nm conftest.o | sed -n -e 's/^.*[
]\([BDT][BDT]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3
\3/p' > conftest.nm"
cannot run sed -n -e 's/^.*[ ]\([BDT][BDT]*\)[ ][
]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p'
ltconfig:1431: checking if global_symbol_pipe works
ltconfig:1432: /export/usr1/host/data/gcc/objdir/gcc/xgcc
-B/export/usr1/host/data/gcc/objdir/gcc/
-B/usr/misc/GNU/gcc_3.2/sparc-sun-solaris2.6/sparc-sun-solaris2.6/bin/
-B/usr/misc/GNU/gcc_3.2/sparc-sun-solaris2.6/sparc-sun-solaris2.6/lib/
-isystem
/usr/misc/GNU/gcc_3.2/sparc-sun-solaris2.6/sparc-sun-solaris2.6/include -c
-g -O2 conftest.c 1>&5
ltconfig:1435: eval "/usr/ccs/bin/nm conftest.o | sed -n -e 's/^.*[
]\([BDT][BDT]*\)[ ][ ]*\(_\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3
\3/p' > conftest.nm"
cannot run sed -n -e 's/^.*[ ]\([BDT][BDT]*\)[ ][
]*\(_\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p'
I've already tried to remove /usr/ccs/bin from my path to force the build to
use the GNU Binutils nm but the build still looks for /usr/ccs/bin/nm
anyway. I've tried also to manually change the value of the NM variable in
the GCC Makefile as follows:
Original value found in the Makefile after I ran configure:
NM = nm
I manually changed it to:
NM = <path to GNU Binutils nm 2.13>/bin/nm
It did not work. I still got the very same problem and the config.log file
showed that the build still ran the test above against /usr/ccs/bin/nm
regardless of the change in the Makefile.
This is the version of /usr/ccs/bin/nm available in my Solaris 2.6 box.
> /usr/ccs/bin/nm -V
nm: Software Generation Utilities (SGU) Solaris-ELF (4.0)
In both the Solaris 2.5.1 and the 2.6 builds, my PATH is pointing to the
following sed:
> sed -V
GNU sed version 2.05
Since the build worked on Solaris 2.5.1, I am ruling out the possibility of
failure due to sed.
Any ideas on how to fix this issue?
Thanks,
Iran Rocha