GCC 3.2 - Make Bootstrap fails on Solaris 2.6

Hugh Sasse Staff Elec Eng hgs@dmu.ac.uk
Fri Aug 23 03:10:00 GMT 2002


On Thu, 22 Aug 2002, Rocha Iran-QIR001 wrote:

> Thanks for the prompt reply Hugh.
>
> Sorry, I forgot to add my configure line. Here we go:
>
> configure --prefix=$prefix --with-local-prefix=$prefix --enable-shared
> --enable-threads=posix
>
> We were avoiding the usage of "--with-ld" and "--with-as" because the
> installation manual (http://gcc.gnu.org/install/configure.html) says:
>
> "Specify that the compiler should use the assembler pointed to by pathname,
> rather than the one found by the standard rules to find an assembler"
>
> We understand therefore that if we point the build to GNU Binutils using
> --with-ld and --with-as, GCC may not work properly with /usr/ccs/bin/as and
> /usr/ccs/bin/ld. This is not how we would like to configure it. We want it
> to be able to use either the GNU binutils or the /usr/ccs/bin assembler and
> linker.

My understanding is that they are not compatible, so can't be used
together.  I don't know in depth though, so that could be utter
rubbish.
>
> Nevertheless, I tried to build GCC 3.2 on Solaris 2.6 configuring it to use
> the GNU Binutils by passing the --with-ld and --with-as parameters. I wanted
> to know if the result would be any different. This was my configure line:
>
> configure --prefix=$prefix --with-local-prefix=$prefix --enable-shared
> --enable-threads=posix --with-ld=<path to GNU Binutils>/ld --with-as=<path
> to GNU Binutils>/as

I've not tried with /--enable-(shared|threads)/ so can't comment on
those, but this looks OK.
>
> I still got the very same error as follows:
        [...]
> /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/route66/data/gcc/temp/gcc/xgcc
> -B/export/usr1/route66/data/gcc/temp/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'
>
> Did you notice it? The build still performed this test against
> /usr/ccs/bin/nm!

Blast!  I'm sorry, I'm out of my depth here.  I plunged in quickly
because there have been a few posts of this sort, and when I've
replied privately I've been able to help most of the time, so I
risked replying publicly.
>
> This looks more like a bug to me. I think that there is something different
> about ....
>
> > /usr/ccs/bin/nm -V
> nm: Software Generation Utilities (SGU) Solaris-ELF (4.0)
>
> ... that is preventing it from passing this test but I think the problem is
> in the way the test is been performed not on /usr/ccs/bin/nm itself.
> Therefore, I am copying this mail thread to gnu-bugs as well.

I expect they'll have deeper knowledge as well.  Good luck.
>
> Thanks,
> Iran Rocha
>
        Hugh



More information about the Gcc-help mailing list