Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: juju67 on November 11, 2006, 01:51:32 pm

Title: Code::Blocks don't compile on Ubuntu
Post by: juju67 on November 11, 2006, 01:51:32 pm
I try to compile Code::Blocks on my Ubuntu Edgy, but it doesn't compile.

Code
/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  ? :)
Title: Re: Code::Blocks don't compile on Ubuntu
Post by: Game_Ender on November 11, 2006, 03:28:24 pm
How about a more full error trace?  And what version are you trying to compile? are you using wxWidgets 2.6 ?
Title: Re: Code::Blocks don't compile on Ubuntu
Post by: juju67 on November 11, 2006, 06:52:15 pm
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]
Title: Re: Code::Blocks don't compile on Ubuntu
Post by: thomas on November 11, 2006, 07:39:57 pm
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...
Title: Re: Code::Blocks don't compile on Ubuntu
Post by: Game_Ender on November 12, 2006, 01:45:45 am
Have you given it a try with a little less aggressive compiler settings, as in none.
Title: Re: Code::Blocks don't compile on Ubuntu
Post by: afb on November 12, 2006, 10:56:02 am
You should also be able to use the "compat" compiler instead of GCC 4.1...
Code
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 ?
Title: Re: Code::Blocks don't compile on Ubuntu
Post by: juju67 on November 12, 2006, 11:51:11 am
It has compiled with any compiler settings, thanks.

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