This is the mail archive of the 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: Bootstrap failure on Darwin 6.0

On Tuesday, August 20, 2002, at 08:06 PM, Timothy J. Wood wrote:
Checked out from the mainline (of FSF repository, not Darwin's):

export CC='cc -no-cpp-precomp'
./configure --prefix=/Users/Shared/$USER/gcc3-vanilla --enable-languages="objc c++"
make bootstrap

stage1/xgcc -Bstage1/ -B/Users/Shared/bungi/gcc3-vanilla/powerpc-apple-darwin6.0/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I. -I./. -I./config -I./../include \
./gengtype-lex.c -o gengtype-lex.o
xgcc: Internal error: Illegal instruction (program cc1)

/* APPLE LOCAL setrlimit */
/* Get rid of any avoidable limit on stack size. */
struct rlimit rlim;

/* Set the stack limit huge. (Compiles normally work within
a megabyte of stack, but the normal limit on OSX is 512K for
some reason.) */
getrlimit (RLIMIT_STACK, &rlim);
rlim.rlim_cur = rlim.rlim_max;
setrlimit (RLIMIT_STACK, &rlim);
#endif /* RLIMIT_STACK defined */

at the end of general_init in toplev.c. If someone wants to clean this up and test it, and do it if the stack size is <8MB, that would be great.

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