User forums > Help

compile problems in debug target for wxWidgets project

(1/2) > >>

wobien:
My wxWidgets project compiles in the default target (with some warnings).
When run the main screen apears as expected, but when I choose a menu option, I don't get the right result.
Therefore I tried to build the debug target.
Then I get this message:

--- Quote ----------------- Build: Debug in wxVertaal ---------------

Precompiling header: wx_pch.h
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
cc1plus.exe: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
--- End quote ---
Before I send a bug report to the mingw builders:
does anybody have an idea what happens here?
As far as I know the only difference between the default and the debug target is the production of debugging symbols.

TDragon:
The MinGW builders will only be able to help you if you include the command line that caused the crash (as well as the preprocessed source). The same goes for us. Enable full command-line logging in the build log (it's in the global compiler settings).

wobien:
Trying to find out what causes the crash I started a new wxWidgets project, and imediately (without changing anything in the code) did a debug build. This crashes also.
After setting Full command line compiler logging this is the Build log:

--- Quote ----------------- Build: Debug in test ---------------

mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE  -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall  -g -D__WXDEBUG__    -II:\wxWidgets-2.8.7\include -II:\wxWidgets-2.8.7\contrib\include -II:\wxWidgets-2.8.7\lib\gcc_dll\mswud  -c "C:\Documenten Wobien\code_blocks\wxWidgets\test\wx_pch.h" -o wx_pch.h.gch\Debug_wx_pch_h_gch
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
cc1plus.exe: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
--- End quote ---

I then tried it again, making another new project, this time unchecking "Create and use precompiled headers" when creating the project.
This time the debug build works fine, and I can run a debug session, set breakpoints etc.

Questions:
1. What is the preprocessed source, and where do I find it?

2. Are precompiles headers incompatible with a debug build?

3. How can I remove the precompiling of headers from my existing project?

TDragon:

--- Quote from: wobien on December 18, 2007, 09:38:24 pm ---1. What is the preprocessed source, and where do I find it?

--- End quote ---
You would add -save-temps to the compile command (Project build options->Compiler settings->Other options). This should generate a file named something like wx_pch.h.ii (among others). This won't be useful to us at the Code::Blocks forums, but if you submit a bug to the MinGW project they may request it.


--- Quote ---2. Are precompiles headers incompatible with a debug build?

--- End quote ---
No. This normally works just fine. I personally am unable to duplicate the problem you're experiencing. You may want to try reinstalling MinGW and wxWidgets. Also, you should make sure you're using the latest stable versions of all the MinGW packages (but don't use binutils-2.17.50-20070119 -- it has a bug which makes it fail to build wxWidgets; use 2.17.50-20060824).


--- Quote ---3. How can I remove the precompiling of headers from my existing project?

--- End quote ---
In your project's Management window, find the header that is being precompiled (wx_pch.h), right-click it and select Properties. Select the build tab, uncheck "Compile file", and move the Priority weight slider back to 50. Better yet, remove the file from the project altogether and remove any #includes referencing it (you'll then have to #include the specific wxWidgets headers individually).

kkez:

--- Code: ----II:\wxWidgets-2.8.7\contrib\include
--- End code ---

Maybe this is confusing mingw: try to move wxwidgets to another hard disk

Navigation

[0] Message Index

[#] Next page

Go to full version