[Bug bootstrap/28404] New: ICE in stage 1 bootstrap

ghfbsd at gly dot bris dot ac dot uk gcc-bugzilla@gcc.gnu.org
Mon Jul 17 08:39:00 GMT 2006


Configured with: ../gcc-3.4.6/configure --enable-altivec
--enable-languages=c,f77

./xgcc -B./ -B/usr/local/i686-apple-darwin8.5.3/bin/ -isystem
/usr/local/i686-apple-darwin8.5.3/include -isystem
/usr/local/i686-apple-darwin8.5.3/sys-include
-L/usr/local/src/gcc-3.4.6-darwin/gcc/../ld -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -isystem ./include  -I. -I. -I../../gcc-3.4.6/gcc -I../../gcc-3.4.6/gcc/.
-I../../gcc-3.4.6/gcc/../include -I../intl  \
  -c ../../gcc-3.4.6/gcc/config/darwin-crt2.c -o crt2.o
../../gcc-3.4.6/gcc/config/darwin-crt2.c: In function
`__darwin_gcc3_preregister_frame_info':
../../gcc-3.4.6/gcc/config/darwin-crt2.c:156: error: unrecognizable insn:
(insn 9 41 10 0 (set (reg/f:SI 58)
        (plus:SI (reg:SI 3 bx)
            (const:SI (minus:SI (symbol_ref:SI
("&L___keymgr_global$non_lazy_ptr"))
                    (symbol_ref:SI ("<pic base>")))))) -1 (nil)
    (nil))
../../gcc-3.4.6/gcc/config/darwin-crt2.c:156: internal compiler error: in
extract_insn, at recog.c:2083
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [crt2.o] Error 1
make[1]: *** [stage1_build] Error 2
make: *** [bootstrap] Error 2

Patches applied to allow i686 build (otherwise, fails earlier in build):

--- gcc-3.4.6/gcc/config/darwin-crt2.c~ Thu Nov  7 06:00:05 2002
+++ gcc-3.4.6/gcc/config/darwin-crt2.c  Sun Jun 18 06:30:32 2006
@@ -47,7 +47,12 @@
 extern void __darwin_gcc3_preregister_frame_info (void);

 /* These are from "keymgr.h".  */
+#if defined(__ppc__)
 extern void _init_keymgr (void);
+#endif
+#if defined(__i386__)
+#define _init_keymgr(a) /* NULL */
+#endif
 extern void *_keymgr_get_and_lock_processwide_ptr (unsigned key);
 extern void _keymgr_set_and_unlock_processwide_ptr (unsigned key, void *ptr);

--- gcc-3.4.6/gcc/ChangeLog~    Mon Apr 19 02:58:10 2004
+++ gcc-3.4.6/gcc/ChangeLog     Sun Jun 18 13:27:12 2006
@@ -1,3 +1,8 @@
+2006-06-17  George Helffrich <ghfbsd@gly.bris.ac.uk>
+
+        * config/darwin-crt2.c:  Handle i386 builds; _init_keymgr not
+       defined in ABI and call not needed on i386 arch.
+
 2006-03-05  Release Manager

        * GCC 3.4.6 released.
--- gcc-3.4.6/gcc/config/i386/darwin.h.orig     2006-07-17 09:12:28.000000000
+0100
+++ gcc-3.4.6/gcc/config/i386/darwin.h  2006-07-17 09:12:51.000000000 +0100
@@ -43,7 +43,7 @@

 /* Use the following macro for any Darwin/x86-specific command-line option
    translation.  */
-#define SUBTARGET_OPTION_TRANSLATE_TABLE
+#define SUBTARGET_OPTION_TRANSLATE_TABLE {"",""}

 #define ASM_SPEC "-arch i386 \
   %{Zforce_cpusubtype_ALL:-force_cpusubtype_ALL} \


-- 
           Summary: ICE in stage 1 bootstrap
           Product: gcc
           Version: 3.4.6
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ghfbsd at gly dot bris dot ac dot uk
 GCC build triplet: i686-apple-darwin8.5.3
  GCC host triplet: i686-apple-darwin8.5.3
GCC target triplet: i686-apple-darwin8.5.3


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



More information about the Gcc-bugs mailing list