This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
configure failure on sparc-sun-solaris2.7
- To: gcc at gcc dot gnu dot org, zack at codesourcery dot com
- Subject: configure failure on sparc-sun-solaris2.7
- From: Wolfgang Bangerth <wolfgang dot bangerth at iwr dot uni-heidelberg dot de>
- Date: Tue, 30 Oct 2001 11:46:13 +0100 (MET)
What worked yesterday doesn't any more today on sparc-sun-solaris2.7:
../gcc/configure \
--prefix=/home/people/wolf/Config/sparc-sun-solaris2.7/gcc-3.1-ss
--with-gnu-ld --with-ld=/usr/local/bin/ld --with-gnu-as
--with-as=/usr/local/bin/as
fails now with
[...]
checking assembler leb128 support... ../../gcc/gcc/configure: test:
unknown operator assembler
Configure in /home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc failed, exiting.
This is certainly related to Zack's patch:
***************
*** 7207,7213 ****
# arbitrary sections are supported and try the test.
as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
if echo "$as_ver" | grep GNU > /dev/null; then
! as_ver=`echo $as_ver | sed -e 's/.* //'`
as_major=`echo $as_ver | sed 's/\..*//'`
as_minor=`echo $as_ver | sed
's/[^.]*\.\([0-9]*\).*/\1/'`
if test $as_major -eq 2 -a $as_minor -lt 11; then
--- 7207,7213 ----
# arbitrary sections are supported and try the test.
as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
if echo "$as_ver" | grep GNU > /dev/null; then
! as_ver=`echo $as_ver | sed -e 's/.* \([0-9.][0-9.]*\) .*/\1/'`
as_major=`echo $as_ver | sed 's/\..*//'`
as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
if test $as_major -eq 2 -a $as_minor -lt 11; then
Note the space in the changed regexp before the .*. Now, since
gcc3.1/sun-bin> echo "x`/usr/local/bin/as --version | head -1`x"
xGNU assembler 2.11.2x
this has to fail, since there is no space, so the regexp does not match
and therefore does not extract the version number.
The following patch should solve the problem.
Regards
Wolfgang
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.549
diff -c -r1.549 configure.in
*** configure.in 2001/10/30 04:57:40 1.549
--- configure.in 2001/10/30 10:43:38
***************
*** 1383,1389 ****
as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
if echo "$as_ver" | grep GNU > /dev/null; then
changequote(,)dnl
! as_ver=`echo $as_ver | sed -e 's/.* \([0-9.][0-9.]*\) .*/\1/'`
as_major=`echo $as_ver | sed 's/\..*//'`
as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
changequote([,])dnl
--- 1383,1389 ----
as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
if echo "$as_ver" | grep GNU > /dev/null; then
changequote(,)dnl
! as_ver=`echo $as_ver | sed -e 's/.* \([0-9.][0-9.]*\).*/\1/'`
as_major=`echo $as_ver | sed 's/\..*//'`
as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
changequote([,])dnl
-------------------------------------------------------------------------
Wolfgang Bangerth email: wolfgang.bangerth@iwr.uni-heidelberg.de
www: http://gaia.iwr.uni-heidelberg.de/~wolf