It crashes on Mac OS X 10.3 too, using GCC 3.3...
(it is not possible to upgrade the compiler there)
I got around it by using -O0 for this file (only),
as it won't compile (segfaults) with the usual -O2.
With the actual version from SVN the -O0 workaround does not work for my Mac (10.3.9, GCC 3.3).
But I found an other solution: remove -ffast-math switch and replace -O2 by -O0 in CXXFLAGS.
$ man g++
...
-ffast-math
...
This option should never be turned on by any -O option since it can
result in incorrect output for programs which depend on an exact
implementation of IEEE or ISO rules/specifications for math func-
tions.
Standard CXXFLAGS: -O2 -ffast-math
Maybe thats the reason for internal compiler error...
tplas
g++ -Wall -g `wx-config --cflags` -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -DcbDEBUG -DCB_PRECOMP -D__WXMAC__ -O0 -Isdk/wxscintilla/include -Isdk -Isdk/as/source -Isdk/as/include -Isdk/propgrid/include -Isdk/wxFlatNotebook -I/usr/include -Isdk -c sdk/cbthreadpool.cpp -o .objs/sdk/cbthreadpool.o
[address=45e500f4 pc=000e6b3c]
sdk/cbthreadpool.cpp: In member function `bool cbThreadPool::WaitingThread()':
sdk/cbthreadpool.cpp:151: internal compiler error: Segmentation Fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
Process terminated with status 1 (1 minutes, 25 seconds)
1 errors, 0 warnings
I cant get past this error. Even with -O0,
Here is the line from the .cbp. How do you put -O0 or turn off -ffast-math in it?
I can't find any -o2 or -ffast-math in the .cbp.
<Unit filename="sdk/cbthreadpool.cpp">
<Option compilerVar="CPP" />
<Option target="sdk" />
Edit: Is there a way to get back the older threadpool.cpp?