Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Build C::B against wx3.02 with gcc 5.2 under Windows
ollydbg:
--- Quote from: stahta01 on September 28, 2015, 04:13:20 pm ---
--- Quote from: ollydbg on September 28, 2015, 03:47:15 pm ---I think I may meet a GCC issue which cause the crash I reported in this thread.
Now, I have just finishing building the wx3 library in debug mode with the command line:
After that, when testing the built C::B, I don't have any crash when disable or enable plugins. I even strip all the debug information(both the C::B related binaries and the wx3 library dll), it also works fine. So, I believe the crash bug comes from the mingw-build gcc 5.2.
Another issue I encountered is that after running the "update30.bat", I can't start codeblocks.exe from the output30 folder. I check the codeblocks.exe in output30 folder by dependency walker tool, it said the "dbghelp.dll" file is broken. How would that happen? (I think I use a wrong strip.exe?, because I put a strip.exe in a common folder, the strip.exe is quite old, the build time of the strip.exe was 2011-03-20, so maybe, I need to use the strip.exe come from the newer gcc suite), to solve the issue, I just copy the "dbghelp.dll" from the devel30 folder to output30 folder, and now, codeblocks.exe works fine. :)
--- End quote ---
I do NOT strip the DLLs put into output30 because no Compilers are in my path.
--- End quote ---
I also have no Compilers in my PATH, but I have put an old "strip.exe" in my PATH.
--- Quote ---Do you still want the Zipped Binary of my CB build?
I am uploading it right now. I am guessing 30 minutes to finish uploading.
Tim S.
--- End quote ---
Yes, I need that, I want to see whether your built binary crashes in my system. Thanks.
stahta01:
--- Quote from: ollydbg on September 28, 2015, 04:17:30 pm ---Yes, I need that, I want to see whether your built binary crashes in my system. Thanks.
--- End quote ---
PMed link to you.
Please confirm you received it; and it unzips good; I hope to delete that old location today.
Tim S.
scarphin:
--- Quote from: ollydbg on September 28, 2015, 03:47:15 pm ---EDIT:
When using the BUILD=debug option to build wxWidgets 3.0.2, it actually use the "-O0" option for the G++ compiler, while BUILD=release uses the "-O2" option instead, thus I believe the "-O2" cause the crash issue.
--- End quote ---
I use '-o3' for my x32 and x64 builds all the time and I don't have such a crash issue. My version for mingw-builds is 4.9.2 though. I used your method to overcome the pch issue to be able to compile 64-bit cb. Maybe you should try '-o3'.
ollydbg:
--- Quote from: stahta01 on September 28, 2015, 04:41:30 pm ---
--- Quote from: ollydbg on September 28, 2015, 04:17:30 pm ---Yes, I need that, I want to see whether your built binary crashes in my system. Thanks.
--- End quote ---
PMed link to you.
Please confirm you received it; and it unzips good; I hope to delete that old location today.
Tim S.
--- End quote ---
Hi, Tim, thanks.
I just tested your built version, and by enable and disable several plugins, I still see the crash. :(
Here is the codeblocks.RPT:
--- Code: ---codeblocks.exe caused an Access Violation at location 69E8C5E5 in module wxmsw30u_gcc_mingw_builds.dll Reading from location 00000010.
Registers:
eax=6abc9220 ebx=00000000 ecx=00000000 edx=00000000 esi=00000000 edi=00040be8
eip=69e8c5e5 esp=0022d684 ebp=0a365f18 iopl=0 nv up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010246
AddrPC Params
69E8C5E5 00040BE8 00000001 00000016 wxmsw30u_gcc_mingw_builds.dll!wxWindow::FindItemByHWND(HWND__*, bool) const
69E8DC28 0022D830 00000133 4E01187C wxmsw30u_gcc_mingw_builds.dll!wxWindow::HandleCtlColor(HBRUSH__**, HDC__*, HWND__*)
69E897A0 77F1E10B 0301112F 00000133 wxmsw30u_gcc_mingw_builds.dll!wxWindow::MSWWindowProc(unsigned int, unsigned int, long)
codeblocks.exe 13.12.0.0
ntdll.dll 5.1.2600.6055
kernel32.dll 5.1.2600.6532
COMCTL32.DLL 5.82.2900.6028
ADVAPI32.dll 5.1.2600.5755
RPCRT4.dll 5.1.2600.6477
Secur32.dll 5.1.2600.5834
GDI32.dll 5.1.2600.6460
USER32.dll 5.1.2600.5512
libgcc_s_dw2-1.dll
msvcrt.dll 7.0.2600.5512
libwinpthread-1.dll 1.0.0.0
SHELL32.dll 6.0.2900.6242
SHLWAPI.dll 6.0.2900.5912
SHFOLDER.DLL 6.0.2900.5512
libstdc++-6.dll
wxmsw30u_gcc_mingw_builds.dll 3.0.2.0
...
...
--- End code ---
Which is much similar like the crash report I see in my self built C::B.
Thanks.
stahta01:
New warning that looks like a real problem to me.
MSys2 32 bit MinGW GCC 5.2 compiler.
Tim S.
--- Code: ---src\plugins\contrib\wxSmith\wxwidgets\defitems\wxsfontpickerctrl.cpp|70|warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]|
--- End code ---
Line 70 to 72 below
--- Code: --- if(!sFnt.Len() > 0){
sFntName = wxT("wxNullFont");
}
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version