Author Topic: Code::Blocks don't compile on Ubuntu  (Read 6072 times)

juju67

  • Guest
Code::Blocks don't compile on Ubuntu
« 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  ? :)

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Code::Blocks don't compile on Ubuntu
« Reply #1 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 ?

juju67

  • Guest
Re: Code::Blocks don't compile on Ubuntu
« Reply #2 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]
« Last Edit: November 11, 2006, 06:57:35 pm by juju67 »

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Code::Blocks don't compile on Ubuntu
« Reply #3 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...
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Code::Blocks don't compile on Ubuntu
« Reply #4 on: November 12, 2006, 01:45:45 am »
Have you given it a try with a little less aggressive compiler settings, as in none.

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: Code::Blocks don't compile on Ubuntu
« Reply #5 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 ?

juju67

  • Guest
Re: Code::Blocks don't compile on Ubuntu
« Reply #6 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.