This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/11169] New: bootstrap failure after passing configure options
- From: "jeroen dot dobbelaere at acunia dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jun 2003 09:17:39 -0000
- Subject: [Bug bootstrap/11169] New: bootstrap failure after passing configure options
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11169
Summary: bootstrap failure after passing configure options
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: bootstrap
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jeroen.dobbelaere@acunia.com
CC: drow@mvista.com,gcc-bugs@gcc.gnu.org,rearnsha@arm.com
GCC build triplet: arm-unknown-linux-gnu
GCC host triplet: arm-unknown-linux-gnu
GCC target triplet: arm-unknown-linux-gnu
As of June 4, I have a problem of bootstrapping mainline gcc (probably) due to
these patches :
+2003-06-04 Daniel Jacobowitz <drow at mvista dot com>
+
+ * config.gcc: Reorganize --with-cpu logic. Set
+ configure_default_options according to the default CPU, --with-cpu,
+ --with-arch, --with-tune, --with-schedule, --with-abi, and
+ --with-float. Check for legal values of various options.
+ * configure.in: Define configure_default_options in configargs.h.
+ * configure: Regenerated.
+ * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
+ (TARGET_DEFAULT_FLOAT_P): New macros.
+ * gcc.c (do_option_spec): New function.
+ (struct default_spec, option_default_specs): New.
+ (main): Call do_option_spec.
+ * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
+ config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
+ config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
+
+ * doc/install.texi: Update --with-cpu documentation. Mention
+ --with-arch, --with-schedule, --with-tune, --with-abi, and
+ --with-float.
+ * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
+
As I'm bootstrapping on an arm-linux platform, with configuration option
'--with-cpu=xscale', from now on, the option '-mcpu=xscale' is specifically
passed to 'cc1' _and_ to 'as'.
This results in 'as' complaining about 'floating point instructions' not supported
by the selected processor.
Following the reasoning, I've added '--with-float=hard' to my bootstrap
configure, but
this option does not result in '-mfloat=fpa' being passed to the assembler,
resulting
in following error :
as -mcpu=xscale -o libgcc/./_floatdidf.o /tmp/ccPdVDj7.s
/tmp/ccPdVDj7.s: Assembler messages:
/tmp/ccPdVDj7.s:11: Error: selected processor does not support `ldfd f0,.L5'
/tmp/ccPdVDj7.s:12: Error: selected processor does not support `fltd f1,r3'
/tmp/ccPdVDj7.s:14: Error: selected processor does not support `mufd f1,f1,f0'
/tmp/ccPdVDj7.s:15: Error: selected processor does not support `mufd f1,f1,f0'
/tmp/ccPdVDj7.s:16: Error: selected processor does not support `fltd f2,r0'
/tmp/ccPdVDj7.s:17: Error: selected processor does not support `ldfltd f0,.L5+8'
/tmp/ccPdVDj7.s:21: Error: selected processor does not support `adfltd f2,f2,f0'
/tmp/ccPdVDj7.s:23: Error: selected processor does not support `adfd f0,f1,f2'
Passing '-mhard-float' directly to gcc results in the same problem.
Passing '-msoft-float' works (but is not wanted in this case)
Passing '-Wa,-mfpu=hard' does not work (arm has different kinds of hardware
floating point)
Passing '-Wa,-mfpu=fpa' works (and, in my opinion, should be passed by default).
My environment :
kernel : 2.4.16-rmk1-xng1
binutils-2.14.90.0.4
glibc-2.2.5 + arm patch
And how I configure :
../gcc/configure --prefix=/usr/local/gcc-3.4-cvs --with-cpu=xscale
--with-float=hard --enable-languages=c,c++,f77,objc --disable-werror