why does gcc-20001218 insist on /usr/ccs/bin/as on solaris 2.7?

Marty Leisner mleisner@eng.mc.xerox.com
Thu Dec 21 14:33:00 GMT 2000


I'm having problem making systems with shared libraries on
solaris 2.7 (I read some of the notes...I don't seem to have
the flawed patch installed).

I decided to get a newer gcc (I was using 2.95.2).
I tried building it on 2.7.

For some reason, it wants to use /usr/ccs/bin/{ld,as}.
I used the --with-gnu-ld/--with-gnu-as and it still wants to.

Other times it wanted to use the as/ld gcc 2.95.2 was configured with.
(which isn't first on the path)

Here's my current configuration:
1 :mleisner@dariat; gcc --print-prog-name=as
/home/mleisner/gnu/sparc-sun-solaris2.6/bin/as
1 :mleisner@dariat; gcc --print-prog-name=ld
/home/mleisner/gnu/sparc-sun-solaris2.6/bin/ld
1 :mleisner@dariat; type -a ld
ld is /usr/local/binutils/bin/ld
ld is /home/mleisner/gnu/bin/ld
ld is /usr/ucb/ld
1 :mleisner@dariat; type -a as
as is /usr/local/binutils/bin/as
as is /home/mleisner/gnu/bin/as

Here's how gcc configured:
# /usr/local/src/gcc-20001218/gcc/configure  --host=sparc-sun-solaris2.7 --target=sparc-sun-solaris2.7 --prefix=/usr/loca
l/gcc-20001218 --srcdir=/usr/local/src/gcc-20001218/gcc --with-gcc-version-trigger=/usr/local/src/gcc-20001218/gcc/versio
n.c --with-gnu-as --with-gnu-ld --enable-languages=c++ --cache-file=../config.cache
#

After stage 1, I got:
1 :mleisner@dariat; ./xgcc --print-prog-name=ld
/usr/ccs/bin/ld
1 :mleisner@dariat; ./xgcc --print-prog-name=as
/usr/ccs/bin/as


I can't see how ccs got into there...its not on my path...



marty		mleisner@eng.mc.xerox.com   
Don't  confuse education with schooling.
	Milton Friedman to Yogi Berra


More information about the Gcc-bugs mailing list