PATCH: 4.3 bootstrap broken when configured as i386-linux

H. J. Lu hjl@lucon.org
Mon Mar 26 17:08:00 GMT 2007


On Mon, Mar 26, 2007 at 05:00:04PM +0100, Martin Michlmayr wrote:
> * Matthias Klose <doko@cs.tu-berlin.de> [2007-03-26 12:39]:
> > I see another bootstrap failure with a compiler configured for
> > i486-linux-gnu.
> > 
> > ../../../src/libgcc/../libdecnumber/decLibrary.c:36: error: expected declaration specifiers or '...' before 'decimal32'
> 
> I found the reason for this yesterday; hopefully HJL or Michael will
> fix it soon.
> 
> See http://gcc.gnu.org/ml/gcc/2007-03/msg00941.html

This patch works for me.

[hjl@gnu-13 gcc]$ grep "^AC_CANONICAL_SYSTEM" lib*/configure.ac
libcpp/configure.ac:AC_CANONICAL_SYSTEM
libffi/configure.ac:AC_CANONICAL_SYSTEM
libgfortran/configure.ac:AC_CANONICAL_SYSTEM
libgomp/configure.ac:AC_CANONICAL_SYSTEM
libjava/configure.ac:AC_CANONICAL_SYSTEM
libmudflap/configure.ac:AC_CANONICAL_SYSTEM
libobjc/configure.ac:AC_CANONICAL_SYSTEM
libssp/configure.ac:AC_CANONICAL_SYSTEM
libstdc++-v3/configure.ac:AC_CANONICAL_SYSTEM

There is nothing wrong to use AC_CANONICAL_SYSTEM for target
library.


H.J.
----
libdecnumber/

2007-03-26  Martin Michlmayr  <tbm@cyrius.com>
	    H.J. Lu  <hongjiu.lu@intel.com>

	* configure.ac: Add AC_CANONICAL_TARGET.
	* configure: Regenerated.

libgcc/

2007-03-26  Martin Michlmayr  <tbm@cyrius.com>
	    H.J. Lu  <hongjiu.lu@intel.com>

	* configure.ac: Replace AC_CANONICAL_HOST with AC_CANONICAL_SYSTEM.
	* configure: Regenerated.

--- gcc/libdecnumber/configure.ac.can	2007-03-24 12:05:55.000000000 -0700
+++ gcc/libdecnumber/configure.ac	2007-03-26 09:03:48.000000000 -0700
@@ -71,6 +71,8 @@ else
 fi
 AC_SUBST(MAINT)
 
+AC_CANONICAL_TARGET
+
 # Default decimal format
 # If you change the defaults here, be sure to change them in the GCC directory also
 AC_MSG_CHECKING([for decimal floating point])
--- gcc/libgcc/configure.ac.can	2007-03-24 12:21:45.000000000 -0700
+++ gcc/libgcc/configure.ac	2007-03-26 09:38:08.000000000 -0700
@@ -85,7 +85,7 @@ case ${AWK} in
   "") AC_MSG_ERROR([can't build without awk, bailing out]) ;;
 esac
 
-AC_CANONICAL_HOST
+AC_CANONICAL_SYSTEM
 ACX_NONCANONICAL_HOST
 GCC_TOPLEV_SUBDIRS
 



More information about the Gcc-patches mailing list