User forums > Help
Crash Compiling Code::Blocks in Linux
oz:
it works well for me on GCC 4.1.1
Howard:
--- Code: ---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
--- End code ---
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.
--- Code: --- <Unit filename="sdk/cbthreadpool.cpp">
<Option compilerVar="CPP" />
<Option target="sdk" />
--- End code ---
Edit: Is there a way to get back the older threadpool.cpp?
polygon7:
--- Quote from: tplas on June 15, 2006, 12:04:03 am ---@Howard:
--- Quote from: tplas on May 30, 2006, 09:43:21 pm ---...
But I found an other solution: remove -ffast-math switch and replace -O2 by -O0 in src/sdk/Makefile CXXFLAGS.
--- End quote ---
--- End quote ---
You want to change CXXFLAGS for C::B?
Try this when you compiling C::B:
--- Quote ---./configure CXXFLAGS="-O0 -fno-fast-math"
--- End quote ---
tplas:
--- Quote from: polygon7 on June 15, 2006, 09:42:19 am ---You want to change CXXFLAGS for C::B?
--- End quote ---
No! if he wants just to compile it that was an option to make it. Of course you should never checkin this changes! But your configure option is better. I will delete the message above, just for security reason.
Navigation
[0] Message Index
[*] Previous page
Go to full version