This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Failed 3.2 bootstrap on mac os x 10.2


Jason Parsons wrote:
Attempting to compile 3.2 on powerpc-apple-darwin6.0.

jparsons@darwin:~...powerpc-apple-darwin6.0% ../gcc-3.2/configure --host=powerpc-apple-darwin6.0 --enable-shared --enable-languages=c,c++,f77,objc

Make bootstrap first fails at:

In file included from ../../../gcc-3.2/gcc/intl/dcigettext.c:58:
../include/stdlib.h:84: syntax error before "rune_t"
make[3]: *** [dcigettext.o] Error 1
make[2]: *** [intl.all] Error 1
make[1]: *** [stage2_build] Error 2
make: *** [bootstrap] Error 2
Here the patch to add to stddef.h, this is already included in the trunk.

--- gcc-04072002/gcc/ginclude/stddef.h  Wed Jan  9 13:28:06 2002
+++ gccsrc/gcc/gcc/ginclude/stddef.h    Thu Jul  4 18:37:27 2002
@@ -242,6 +242,7 @@
 #ifndef _WCHAR_T_
 #ifndef _BSD_WCHAR_T_
 #ifndef _BSD_WCHAR_T_DEFINED_    /* Darwin */
+#ifndef _BSD_RUNE_T_DEFINED_     /* Darwin */
 #ifndef _WCHAR_T_DEFINED_
 #ifndef _WCHAR_T_DEFINED
 #ifndef _WCHAR_T_H
@@ -278,6 +279,7 @@
 #ifdef _BSD_RUNE_T_
 #if !defined (_ANSI_SOURCE) && !defined (_POSIX_SOURCE)
 typedef _BSD_RUNE_T_ rune_t;
+#define _BSD_RUNE_T_DEFINED_
 #define _BSD_WCHAR_T_DEFINED_
 #if defined (__FreeBSD__)
 /* Why is this file so hard to maintain properly?  In constrast to
@@ -295,6 +297,7 @@
 #endif
 #ifndef __cplusplus
 typedef __WCHAR_TYPE__ wchar_t;
+#endif
 #endif
 #endif
 #endif


Adding "#include <runetype.h>" to gcc/include/stdlib.h gets me past this point. I'm not sure if that's a valid solution, but it seemed to make the compilation continue.

Compilation finishes, but make fails at the bootstrap comparison:
Modifying includes during bootstrap will result with the differing. You'll have to restart the bootstrap from scratch.

On the otherside, you could try the trunk. There gcc should bootstrap out of the box on darwin 5.5 and 6.0

Regards,

Andreas




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]