I am trying to build gcc-4.2.2 using binutils 2.18. binutils seems to build
fine. gcc fails when it hits the gcc directory configuration step. It seems the
problem is that binutils as version string has changed from the past.
I am not sure if it is a gcc or binutils problem. I also wonder if it is more
wide spread in other configure scripts.
2.14: GNU assembler 2.14 20030612
2.18: GNU assembler (GNU Binutils) 2.18
There is a sed command in configure that fails because of this
+ /proj/wdtold/warrend/wdt_try7_tmp/gnu_sun5.8/gcc-4.2.2/bin/as --version
+ sed 1q
as_ver=GNU assembler (GNU Binutils) 2.18
+ echo GNU assembler (GNU Binutils) 2.18
+ grep GNU
+ echo GNU assembler (GNU Binutils) 2.18
+ sed -e s/GNU assembler \([0-9.][0-9.]*\).*/\1/
as_ver=GNU assembler (GNU Binutils) 2.18
+ echo GNU assembler (GNU Binutils) 2.18
+ sed s/\..*//
as_major=GNU assembler (GNU Binutils) 2
+ echo GNU assembler (GNU Binutils) 2.18
+ sed s/[^.]*\.\([0-9]*\).*/\1/
as_minor=18
+ test GNU assembler (GNU Binutils) 2 -eq 2
/proj/wdtold/warrend/gnusrc_new/000030-gcc-4.2.2/gcc-4.2.2/gcc/configure: test:
unknown operator assembler
This is right after the check for .sleb128 and .uleb128
I am going to change the sed command and try to proceed. If there is a good
reason to stop please let me know.
--
Summary: gcc directory fails to configure on solaris 8
Product: gcc
Version: 4.2.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: warren dot l dot dodge at tektronix dot com
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34165