Home » Developing U++ » U++ Developers corner » Problems compiling theide with mingw (help needed)
Problems compiling theide with mingw (help needed) [message #46251] |
Sat, 02 April 2016 14:54  |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
With C++11 transition, I am in process of switching nightly builds Win32 compiler to mingw (burrent builds are mingw produced already).
However, I have problems with theide inconsistently crashing. First I tried with TDM64, it was crashing for any optimization higher than -o1 level. Then tried tried latest mingw-w64, looked a bit better in the start, but still appears to be unstable.
Does anybody have the experience with building theide with mingw?
It is still possible that the bug is somewhere in the U++ code, OTOH, POSIX builds (with GCC) and MSC builds are 'stable' (I mean, there are sometimes bugs that have to be fixed, but nothing like mingw crashing in long proven routines - one time with TDM I have even analyzed the assembly and found apparent bug...)
Mirek
|
|
|
|
|
|
Re: Problems compiling theide with mingw (help needed) [message #46270 is a reply to message #46262] |
Wed, 06 April 2016 04:28  |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
mirek wrote on Sun, 03 April 2016 04:43
What is your -O setting? Are you using BLITZ?
Standard. Speed: -O3, size -Os. I'm using BLITZ only with Debug, which is fine.
mirek wrote on Sun, 03 April 2016 04:43
Have you tested long-term?
For about a year. I need gcc name demangling code.
mirek wrote on Sun, 03 April 2016 04:43
Working hypothesis is that the problem is automatic inlining of all function (which -O3 adds), perhaps linker is unable to cope with that... (naturally, I turned my attention to linker, as GCC itself should be the same as in Linux, where everything is rock stable...). Moreover, -O2 seems to be as fast as -O3.
Another difference between Linux and Windows versions is exception handling. It is always DWARF in Linux, and it is SJLJ in case of 32bit Windows apps, and SEH in case of 64bit Windows apps.
Another observation. I removed -msse2 option with 4.8.1 x86 and that fixed crashing with Optimal and Speed configurations. It looks like it is either a problem with gcc or with data alignment in Upp.
Hope this helps.
Regards,
Novo
[Updated on: Wed, 06 April 2016 04:39] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Apr 26 08:29:26 CEST 2025
Total time taken to generate the page: 0.02535 seconds
|