User forums > General (but related to Code::Blocks)

TDM-GCC 4.8 series (Latest: 4.8.1-tdm-2 - 2013-10-06)

<< < (6/9) > >>

MortenMacFly:
I've successfully compiled wx2.8.12, wx2.9.5 (32 and 64 bit) after adjusting some compiler options and patching the wx sources slightly. However, I am experiencing crashes of the compiler when compiling some C::B source files with wx2.9 (32 bit) only. It seem related to either the compiler options (i.e. if I leave some out some - but no specific ! - it works) or the PCH functionality... unfortunately I didn't figure out a good test case for reproduction.

My question is: Did anybody successfully compile C::B against wx2.9. with GCC 4.8.1 on Windows?

MortenMacFly:

--- Quote from: MortenMacFly on October 06, 2013, 07:01:48 pm ---unfortunately I didn't figure out a good test case for reproduction.

--- End quote ---
OK, I found a way to reproduce:
For me, it happens when I compile a simple file like configmanager-revision.cpp
What you need to do:
- compile wx 2.9.5 with GCC 4.8.1
- start compiling C::B with the related C::B "-wx29" project -> this will create the PCH file
- when it crashes, run at the command prompt:
- g++.exe -DwxUSE_WX_RESOURCES=0 -mthreads -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DEXPORT_LIB -DEXPORT_EVENTS -DWXMAKINGDLL_SCI -iquote.objs29\include -c sdk\configmanager-revision.cpp
--> It will crash for me. Removing ANY of the remaining option will make it work but also changes the handling of the PCH file.
So it really seems related to the handling of PCH file (and yes, I've completely cleaned everything in the first place, so the PCH file is generated with GCC 4.8.1, too).

Any idea of what going on here? Note that PCH works just fine for the older wx 2.8.12... ?!

stahta01:

--- Quote from: MortenMacFly on October 06, 2013, 07:01:48 pm ---I've successfully compiled wx2.8.12, wx2.9.5 (32 and 64 bit) after adjusting some compiler options and patching the wx sources slightly. However, I am experiencing crashes of the compiler when compiling some C::B source files with wx2.9 (32 bit) only. It seem related to either the compiler options (i.e. if I leave some out some - but no specific ! - it works) or the PCH functionality... unfortunately I didn't figure out a good test case for reproduction.

My question is: Did anybody successfully compile C::B against wx2.9. with GCC 4.8.1 on Windows?

--- End quote ---

I just experienced Compiler crash (In my cause it was the MinGW GCC run time error) today because of PCH files and wxWidgets trunk compiling.

Once I finish Compiling C::B against wxWidgets trunk using TDM 4.7.1 I will try 4.8.1 TDM.

Tim S.

MortenMacFly:

--- Quote from: MortenMacFly on October 06, 2013, 07:20:00 pm ---So it really seems related to the handling of PCH file.

--- End quote ---
Ok, I've cross-checked what happens if I don't use PCH when compiling C::B and wx2.9.5 -> then it works. So at least I got a work-around. Strange that my own projects that use PCH with wx2.9.5 and this compiler work. The only difference is that they have some other options, include other files (obviously) and the PCH files are smaller.

TDragon:
I've released new packages that should fix the drive-not-present errors, as well as the LTO error. No fix yet for the DW2 EXE-to-DLL exception bug.

For those of you experiencing PCH problems -- are you able to try with the MinGW.org 4.8.1 toolchain (unfortunately not available yet in the TDM-GCC installer) or one of the MinGW-builds toolchains? I don't have time to take a close look at it myself right now.

-John E. / TDM

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version