Note that -fPIC should really only be used for compiling shared libraries and not executables. This option should probably be set by CodeBlocks when compiling shared library projects too. More information here:
http://www.google.com/url?sa=U&start=2&q=http://gcc.fyxm.net/summit/2003/Porting%2520to%252064%2520bit.pdf&e=9707I have compiled codeblocks-1.0-finalbeta on my AMD64 gentoo machine and can reproduce the code completion freeze. Disabling the code completion plugin, i was able to compile a hello world progrm using Code::Blocks. However, when i changed a compile option (enabled compiling debug information under project options), Code::Blocks seg faults when i click the compile button.
Here is beginning of the backtrace:
#0 0x00002aaaabdb4076 in regcomp () from /lib/libc.so.6
#1 0x00002aaaaf181704 in headers1 ()
from /home/joaander/test-codeblocks/codeblocks-1.0-finalbeta/src/output/share/CodeBlocks/plugins/libcompilergcc.so
#2 0x00002aaaaf181945 in headers ()
from /home/joaander/test-codeblocks/codeblocks-1.0-finalbeta/src/output/share/CodeBlocks/plugins/libcompilergcc.so
#3 0x00002aaaaf180a00 in depsScanForHeaders ()
from /home/joaander/test-codeblocks/codeblocks-1.0-finalbeta/src/output/share/CodeBlocks/plugins/libcompilergcc.so
#4 0x00002aaaaf18a285 in DirectCommands::IsObjectOutdated ()
from /home/joaander/test-codeblocks/codeblocks-1.0-finalbeta/src/output/share/CodeBlocks/plugins/libcompilergcc.so
#5 0x00002aaaaf18845a in DirectCommands::GetTargetCompileCommands ()
from /home/joaander/test-codeblocks/codeblocks-1.0-finalbeta/src/output/share/CodeBlocks/plugins/libcompilergcc.so
#6 0x00002aaaaf18801e in DirectCommands::GetCompileCommands ()
from /home/joaander/test-codeblocks/codeblocks-1.0-finalbeta/src/output/share/CodeBlocks/plugins/libcompilergcc.so
#7 0x00002aaaaf16f1c2 in CompilerGCC::Compile ()
from /home/joaander/test-codeblocks/codeblocks-1.0-finalbeta/src/output/share/CodeBlocks/plugins/libcompilergcc.so
#8 0x00002aaaaf170479 in CompilerGCC::OnCompile ()