User forums > Help

Crash Compiling Code::Blocks in Linux

(1/2) > >>

Ryu:
Hey, everybody.

From a revisions to here i have very much problems for compiling a new version.
The last in the current revision 2484 is the most extrange.

When the project is compiling the cbthreadpool.cpp he give a
internal compiler error ???!!(segmentation fault) maybe this is rigth and i
must send the bug to the compiler manteiners.
but how is the first time in all the programs that i compiled and is happend
to this version where you add this file i think i must tell you first.
so please tell me if this happend to other person for verify and change my compiler
version or give me a fix if you can.

thank you  :D

PD: I have gcc(g++) version 3.3.6 ; slackware 10.2 ; wxWidgets 2.6.2.

Ceniza:
cbthreadpool.cpp has been there for quite a while now, even though I replaced it a few days ago, but that's no reason to produce an ICE (Internal Compiler Error).

I see your g++ version is a bit old. I'm pretty sure if you send a bug report it'll be marked as duplicated (which means it's already known).

Please try again with a newer version of gcc/g++ like 3.4.5 or 4.0.3. It should work just fine with any of those.

afb:
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.

tplas:

--- Quote from: afb on May 22, 2006, 11:54:21 pm ---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.


--- End quote ---

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.


--- Code: ---$ 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.

--- End code ---
Standard CXXFLAGS: -O2 -ffast-math
Maybe thats the reason for internal compiler error...

tplas

Evil Azrael:
I am using Slackware 10.2 and can confirm the problem. The removal of -ffast-math and -O2 does not work for me :(

Navigation

[0] Message Index

[#] Next page

Go to full version