This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap failure on Darwin 6.0
- From: Mike Stump <mrs at apple dot com>
- To: "Timothy J. Wood" <tjw at omnigroup dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 21 Aug 2002 16:18:44 -0700
- Subject: 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)
Try:
/* APPLE LOCAL setrlimit */
#ifdef RLIMIT_STACK
/* 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.