User forums > General (but related to Code::Blocks)
TDM-GCC 4.8 series (Latest: 4.8.1-tdm-2 - 2013-10-06)
thomas:
Now you only need to explain to me why your binaries are smaller. ;D
Seriously, I switched to using MinGW-builds some months ago because Evil John wouldn't do a gcc-4.8 build, and building gcc is still something I'm not able to do successfully. I've had the impression that gcc-4.8 produces somewhat bigger executables than gcc-4.7. But alas, that's a possibility. Different compiler versions, different sizes.
Now I'm recompiling things built with the MinGW-builds 4.8.1 compiler using the TDM 4.8.1 compiler, same flags, same everything, and 731 kB becomes 710 kB.
TDragon:
I think you mean Lazy John. :)
At any rate that is certainly an unexpected bonus. I expected all TDM-GCC-compiled binaries to be larger due to statically linking winpthreads into every binary, but I've noticed the same phenomenon -- many binaries are actually smaller with this release.
-John E. / TDM
stahta01:
--- Quote from: MortenMacFly on October 06, 2013, 07:20:00 pm ---
--- 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... ?!
--- End quote ---
From CB thread http://forums.codeblocks.org/index.php/topic,18412.msg126028.html#msg126028
--- Quote ---Testing wxWidgets trunk SVN 70513 to see if problem exists; Did NOT see problem.
Testing wxWidgets trunk SVN 70514 to see if problem exists; Did see the problem.
Likely cause is "include/wx/generic/choicdgg.h"
--- End quote ---
ollydbg:
If cc1plus.exe has debug information in it, then I think when it crashed, we can at least get a call-stack under GDB. Otherwise, it is hard to find the cause and fix it.
ToApolytoXaos:
--- Quote from: ollydbg on September 30, 2013, 05:52:33 pm ---
--- Quote from: stahta01 on September 30, 2013, 04:33:45 pm ---To gd_on: I would just turn off the "-Wunused-local-typedefs" warning instead.
You way might be faster; but, that way is safer.
Tim S.
--- End quote ---
I built wx2.8.12 lib by the command
--- Code: ---cd wxWidgets-2.8.12\build\msw
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release CXXFLAGS="-fno-keep-inline-dllexport" >log.txt 2>&1
--- End code ---
Then I got a log.txt file which have 111460 lines. (mostly of the lines are the warning messages like: ...warning: typedef 'wxDummyCheckInt' locally defined but not used [-Wunused-local-typedefs].....)
So, maybe, I need to use:
--- Code: ---cd wxWidgets-2.8.12\build\msw
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release CXXFLAGS="-fno-keep-inline-dllexport -Wno-unused-local-typedefs" >log.txt 2>&1
--- End code ---
to reduce the warnings, right?
--- End quote ---
ollydbg, I have done this myself and many warning messages were logged in a file of mine, which reports far too many warning messages to list them here in a code tag ( I have tried, that's why I said "far too many"; I can't post it due to over excessive line usage lol).
Also, another serious issue is with existing wxMSW projects I have already created. I have tried to recompile them with the currently compiled files, and it seems there's an issue with .rc files:
--- Code: ---||=== Build: Debug in wxCartridgeStockTaking (compiler: GNU GCC Compiler) ===|
C:\Users\stefanos\GENERAL\Projects\WXPROJ~1\WXCART~1\resource.rc|3|fatal error: wx/msw/wx.rc: No such file or directory|
||can't open icon file `wx/msw/std.ico': No such file or directory|
||preprocessing failed.|
||=== Build failed: 3 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
--- End code ---
With tdm's gcc 4.7.1 (32-bit), I did not have such issue before. Anyone else had anything similar to this?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version