Hi,
I was trying to compile blender 2.5.3-1 with c.b (with mingw) and I've run into this:
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: BFD (GNU Binutils)
2.19.1 internal error, aborting at ../../binutils-2.19.1/bfd/coffcode.h line 842 in handle_COMDAT
After some digging I've found out that it has been reported as a bug in binutils 2.18:
http://www.mail-archive.com/bug-binutils@gnu.org/msg06398.html...but c.b is shipped with binutils 2.19.1 so what has left for me to do was to substitute binutils for the most wanted ones 2.20 from official minGW source forge site.
It helped for now, but here comes my question. How should it be done right... I mean merging minGW shipped with c.b with binutils 2.20 (2.19.1->2.20). I've simply copy/paste the tree of folders from binutils archive to minGW folder, but I'm aware of the risk of incompatibility as face it before. When changing gcc from mingw installer to a newer one (3.5 -> 4.4) as I needed omp support - and got this:
[Linker error] undefined reference to `_Unwind_SjLj_Register'
[Linker error] undefined reference to `_Unwind_SjLj_Resume'
[Linker error] undefined reference to `_Unwind_SjLj_Unregister'
[Linker error] undefined reference to `_Unwind_SjLj_Register'
[Linker error] undefined reference to `_Unwind_SjLj_Resume'
[Linker error] undefined reference to `_Unwind_SjLj_Unregister'
[Linker error] undefined reference to `_Unwind_SjLj_Register'
[Linker error] undefined reference to `_Unwind_SjLj_Resume'
[Linker error] undefined reference to `_Unwind_SjLj_Unregister'
[Linker error] undefined reference to `_Unwind_SjLj_Register'
[Linker error] undefined reference to `_Unwind_SjLj_Resume'
[Linker error] undefined reference to `_Unwind_SjLj_Unregister'
Some people says that it's the matter of which tool has been used to compile minGW tools, for example gcc compiled with v3.5 and ld with v4.5.
However my suggestion is to ship codeblocks with binutils 2.20.
Or I'm not aware of something. ;p