------- Comment #6 from rob1weld at aol dot com  2009-02-19 06:17 -------
The "reverse" is broken in "trunk revision 144266" on OpenSolaris 
2009.06. Previously the 'reverse of this Bug' worked, regression.


With "trunk revision 144266" installed and ./configured with: 
"--without-gnu-ld --with-ld=/usr/bin/ld" (Sun linker) trying to 
build "trunk revision 144279" ./configured with: 
"--with-gnu-ld  --with-ld=/usr/local/bin/ld" (GNU Linker) fails 
to build; but used to work with revisions from last month.


Installed Compiler:
# gcc -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with: ../gcc_trunk/configure --build=i386-pc-solaris2.11
--enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --enable-shared
--disable-static --enable-multilib --enable-decimal-float
--with-long-double-128 --with-included-gettext --enable-stage1-checking
--enable-checking=release --with-tune=k8 --with-cpu=k8 --with-arch=k8
--with-gnu-as --with-as=/usr/local/bin/as --without-gnu-ld
--with-ld=/usr/bin/ld --with-gmp=/usr/local --with-mpfr=/usr/local
--without-ppl
Thread model: posix
gcc version 4.4.0 20090218 (experimental) [trunk revision 144266] (GCC) 


Building this:
# gcc/xgcc -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with: ../gcc_trunk/configure --prefix=/usr/local/gcc4
--enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --enable-shared
--disable-static --enable-multilib --enable-decimal-float
--with-long-double-128 --with-included-gettext --enable-stage1-checking
--enable-checking=release --with-tune=k8 --with-cpu=k8 --with-arch=k8
--with-gnu-as --with-as=/usr/local/bin/as --with-gnu-ld
--with-ld=/usr/local/bin/ld --with-gmp=/usr/local --with-mpfr=/usr/local
--without-ppl
Thread model: posix
gcc version 4.4.0 20090218 (experimental) [trunk revision 144279] (GCC) 


FAILS during the confused build. The Sun Linker is kept (wrong) and the
script / Makefiles send GNU Linker compatible commands (correct) to the
Sun Linker (oops).


The 'workaround' is to ./configure with a different "--prefix=" and
use "--enable-languages=ada,c" (as a minimum). Get at least the "C"
and "Ada" Languages build. Install the Compiler. Alter your PATH to
the _NEW_ Compiler (that uses GNU ld). Redo the ./configure and then
re-build gcc. This time there can be no cross-linker-Bootstrap confusion.

Rob


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39111

Reply via email to