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 ? :)
How about a more full error trace? And what version are you trying to compile? are you using wxWidgets 2.6 ?
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]
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...
Have you given it a try with a little less aggressive compiler settings, as in none.
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 ?
It has compiled with any compiler settings, thanks.
But why does it not compile with the flags for my cpu, athlon-xp.