Re: [Mingw-w64-public] MinGW-w64 (64-bit/POSIX/SEH) Based on GCC 4.8.0 Regression with -O3 flag (Spotted on QtCore 4.8.5)
2013/7/3 Alexey Pavlov alex...@gmail.com This is known problem. See https://bugreports.qt-project.org/browse/QTBUG-29099. It for Qt5 but for Qt4 is the same. You can't now use -O3 with mingw toolchains based on gcc-4.7.3+. That issue seems unrelated. And it might be fixable by linking the 32-bit GCC compiler executables with -Wl,--enable-large-address-aware. Regards, Alexey. 2013/7/3 Haroogan haroo...@gmail.com: Hello, The problem is as follows. Building Qt 4.8.5 with x64-4.8.0-release-posix-seh-rev2 (from the MinGW-builds project) distribution and supplying -O3 optimization flag results in QtCore4.dll crashing very frequently (almost always). Rebuilding QtCore4.dll with -O2 optimization flag immediately solves the issue. Of course the debug variant QtCored4.dll works just fine (as only -g is supplied). Please, look into it. In particular, does the issue show up for the newest 4.8.1 releases? If not, then I guess we shouldn't worry much as it is fixed, otherwise it should definitely be investigated. Currently, I haven't time to try 4.8.1 out myself. Why do I consider it as regression? Obviously because it was not the case with MinGW-w64 based on GCC 4.7.1. The only slightly sensible way to fix this is either hunt down a commit in GCC that caused the issue, or try to compile with -O3 -g3, although the resulting backtrace is most likely very hard to interpret. Ruben Kind regards, Haroogan -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] MinGW-w64 (64-bit/POSIX/SEH) Based on GCC 4.8.0 Regression with -O3 flag (Spotted on QtCore 4.8.5)
2013/7/3 Ruben Van Boxem: That issue seems unrelated. And it might be fixable by linking the 32-bit GCC compiler executables with -Wl,--enable-large-address-aware. or binutils executables? -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] MinGW-w64 (64-bit/POSIX/SEH) Based on GCC 4.8.0 Regression with -O3 flag (Spotted on QtCore 4.8.5)
2013/7/3 niXman i.nix...@gmail.com: 2013/7/3 Ruben Van Boxem: That issue seems unrelated. And it might be fixable by linking the 32-bit GCC compiler executables with -Wl,--enable-large-address-aware. or binutils executables? Mingw-builds binutils already built with this flags. -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] MinGW-w64 (64-bit/POSIX/SEH) Based on GCC 4.8.0 Regression with -O3 flag (Spotted on QtCore 4.8.5)
2013/7/3 Alexey Pavlov: Mingw-builds binutils already built with this flags. I know. I wanted to make sure that Ruben confused nothing. -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] MinGW-w64 (64-bit/POSIX/SEH) Based on GCC 4.8.0 Regression with -O3 flag (Spotted on QtCore 4.8.5)
2013/7/3 niXman: 2013/7/3 Alexey Pavlov: Mingw-builds binutils already built with this flags. I know. I wanted to make sure that Ruben confused nothing. Can anybody say with certainty whether this flag is needed to build GCC? -- Regards, niXman ___ Dual-target(32 64-bit) MinGW compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingwbuilds/ ___ Another online IDE: http://liveworkspace.org/ -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] MinGW-w64 (64-bit/POSIX/SEH) Based on GCC 4.8.0 Regression with -O3 flag (Spotted on QtCore 4.8.5)
2013/7/3 niXman i.nix...@gmail.com 2013/7/3 Alexey Pavlov: Mingw-builds binutils already built with this flags. I know. I wanted to make sure that Ruben confused nothing. The bug report clearly shows it is not ld.exe that is running out of memory, but cc1plus.exe: cc1plus.exe: out of memory allocating 279536 bytes So linking the GCC compiler executables with that flag might give it enough address space. Nonetheless, there must be some huge inefficiency in GCC leading to this problem in the first place. Ruben -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] MinGW-w64 (64-bit/POSIX/SEH) Based on GCC 4.8.0 Regression with -O3 flag (Spotted on QtCore 4.8.5)
2013/7/3 niXman i.nix...@gmail.com 2013/7/3 niXman: 2013/7/3 Alexey Pavlov: Mingw-builds binutils already built with this flags. I know. I wanted to make sure that Ruben confused nothing. Can anybody say with certainty whether this flag is needed to build GCC? It is not needed per se, but it helps with out of memory problems. Note this will increase virtual address space to 3GB on a 32-bit OS if it is started with that boot flag thingie for larger address space is enabled. On 64-bit OSes (which should really be the default on all current PCs, and which can be run on all PCs that are 10 years or younger), it results in 4GB of virtual address space. http://msdn.microsoft.com/en-us/library/windows/desktop/bb613473%28v=vs.85%29.aspx I stand by the fact that this really is GCC's problem (it just uses too much memory), but as this is not likely something that will be fixed, linking it as large address aware works around the limitation, and hopefully that extra GB or two will be enough to link real-world applications for at least some time. Ruben -- Regards, niXman ___ Dual-target(32 64-bit) MinGW compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingwbuilds/ ___ Another online IDE: http://liveworkspace.org/ -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] MinGW-w64 (64-bit/POSIX/SEH) Based on GCC 4.8.0 Regression with -O3 flag (Spotted on QtCore 4.8.5)
2013/7/3 Ruben Van Boxem: The bug report clearly shows it is not ld.exe that is running out of memory, but cc1plus.exe: cc1plus.exe: out of memory allocating 279536 bytes Yes, you right. So linking the GCC compiler executables with that flag might give it enough address space. Alexey, we will try to add this flag to our build scripts? -- Regards, niXman ___ Dual-target(32 64-bit) MinGW compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingwbuilds/ ___ Another online IDE: http://liveworkspace.org/ -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] MinGW-w64 (64-bit/POSIX/SEH) Based on GCC 4.8.0 Regression with -O3 flag (Spotted on QtCore 4.8.5)
03.07.2013, в 12:23, niXman i.nix...@gmail.com написал(а): 2013/7/3 Ruben Van Boxem: The bug report clearly shows it is not ld.exe that is running out of memory, but cc1plus.exe: cc1plus.exe: out of memory allocating 279536 bytes Yes, you right. So linking the GCC compiler executables with that flag might give it enough address space. Alexey, we will try to add this flag to our build scripts? Yes. I try it today. I finish my Ada toolchains with dirty hack. Need to create bug report. -- Regards, niXman ___ Dual-target(32 64-bit) MinGW compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingwbuilds/ ___ Another online IDE: http://liveworkspace.org/ -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] MinGW-w64 (64-bit/POSIX/SEH) Based on GCC 4.8.0 Regression with -O3 flag (Spotted on QtCore 4.8.5)
This is known problem. See https://bugreports.qt-project.org/browse/QTBUG-29099. It for Qt5 but for Qt4 is the same. You can't now use -O3 with mingw toolchains based on gcc-4.7.3+. I think you got me wrong there. I have no problems building the whole Qt (including QtCore) with -O3 flag. It builds just fine, and cc1plus.exe is not crashing. I'm saying that rather applications based on the resulting QtCore.dll are crashing, and the trace shows that this is because of QtCore.dll itself. Once again, rebuilding QtCore.dll with -O2 solves the issue: it stops crashing. Regards, Haroogan -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] MinGW-w64 (64-bit/POSIX/SEH) Based on GCC 4.8.0 Regression with -O3 flag (Spotted on QtCore 4.8.5)
Please do as much as you can to aid the debugging process. Can you provide these traces? Also, can you try to bisect down to the first GCC that breaks this for you? There have been a lot of GCCs between 4.7.1 and 4.8.0 (can you try with 4.8.1 now?) On Wed, Jul 3, 2013 at 1:33 PM, Haroogan haroo...@gmail.com wrote: This is known problem. See https://bugreports.qt-project.org/browse/QTBUG-29099. It for Qt5 but for Qt4 is the same. You can't now use -O3 with mingw toolchains based on gcc-4.7.3+. I think you got me wrong there. I have no problems building the whole Qt (including QtCore) with -O3 flag. It builds just fine, and cc1plus.exe is not crashing. I'm saying that rather applications based on the resulting QtCore.dll are crashing, and the trace shows that this is because of QtCore.dll itself. Once again, rebuilding QtCore.dll with -O2 solves the issue: it stops crashing. Regards, Haroogan -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
[Mingw-w64-public] MinGW-w64 (64-bit/POSIX/SEH) Based on GCC 4.8.0 Regression with -O3 flag (Spotted on QtCore 4.8.5)
Hello, The problem is as follows. Building Qt 4.8.5 with x64-4.8.0-release-posix-seh-rev2 http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.8.0/64-bit/threads-posix/seh/x64-4.8.0-release-posix-seh-rev2.7z/download (from the MinGW-builds project) distribution and supplying -O3 optimization flag results in QtCore4.dll crashing very frequently (almost always). Rebuilding QtCore4.dll with -O2 optimization flag immediately solves the issue. Of course the debug variant QtCored4.dll works just fine (as only -g is supplied). Please, look into it. In particular, does the issue show up for the newest 4.8.1 releases? If not, then I guess we shouldn't worry much as it is fixed, otherwise it should definitely be investigated. Currently, I haven't time to try 4.8.1 out myself. Why do I consider it as regression? Obviously because it was not the case with MinGW-w64 based on GCC 4.7.1. Kind regards, Haroogan -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] MinGW-w64 (64-bit/POSIX/SEH) Based on GCC 4.8.0 Regression with -O3 flag (Spotted on QtCore 4.8.5)
This is known problem. See https://bugreports.qt-project.org/browse/QTBUG-29099. It for Qt5 but for Qt4 is the same. You can't now use -O3 with mingw toolchains based on gcc-4.7.3+. Regards, Alexey. 2013/7/3 Haroogan haroo...@gmail.com: Hello, The problem is as follows. Building Qt 4.8.5 with x64-4.8.0-release-posix-seh-rev2 (from the MinGW-builds project) distribution and supplying -O3 optimization flag results in QtCore4.dll crashing very frequently (almost always). Rebuilding QtCore4.dll with -O2 optimization flag immediately solves the issue. Of course the debug variant QtCored4.dll works just fine (as only -g is supplied). Please, look into it. In particular, does the issue show up for the newest 4.8.1 releases? If not, then I guess we shouldn't worry much as it is fixed, otherwise it should definitely be investigated. Currently, I haven't time to try 4.8.1 out myself. Why do I consider it as regression? Obviously because it was not the case with MinGW-w64 based on GCC 4.7.1. Kind regards, Haroogan -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public