News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Code::Blocks don't compile on Ubuntu

Started by juju67, November 11, 2006, 01:51:32 PM

Previous topic - Next topic

juju67

I try to compile Code::Blocks on my Ubuntu Edgy, but it doesn't compile.

/usr/bin/ld: .libs/codeblocks: hidden symbol `__stack_chk_fail_local' in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status


So why does it not compile?
Can someone help me, please  ? :)

Game_Ender

How about a more full error trace?  And what version are you trying to compile? are you using wxWidgets 2.6 ?

juju67

#2
I'm trying to compile the SVN version, and I'm using wxWidget 2.6.3.x

I've attached the the file with all the lines of the console.

[attachment deleted by admin]

thomas

I've found several references on the internet with the exact same error (but not with Code::Blocks). It seems to be a rather common problem.

People having that problem report that they first encountered it after updating to Ubuntu 6.10, but I have found no satisfying explanation.

One source suggests that it is a gcc 4.1 problem and advises to rebuild the program with -fno-stack-protector. I don't know if that solves it, but you might try...
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Game_Ender

Have you given it a try with a little less aggressive compiler settings, as in none.

afb

You should also be able to use the "compat" compiler instead of GCC 4.1...
CC=gcc-4.0 CXX=g++-4.0

Code::Blocks will probably get upgraded to cope with -fstack-protector eventually, but for now it's a bit like using wxWidgets 2.7 with Code::Blocks - that is: somewhat experimental ?

juju67

It has compiled with any compiler settings, thanks.

But why does it not compile with the flags for my cpu, athlon-xp.