MXE with Qt5.9.2 + GCC 7.2.0 build error

Stefan Fuchs sfuchs at gmx.de
Thu Oct 12 09:48:22 PDT 2017


Hi Lubomir,

Am 12.10.2017 um 12:34 schrieb Lubomir I. Ivanov:
> On 12 October 2017 at 09:24, Stefan Fuchs <sfuchs at gmx.de> wrote:
>> Hi All,
>>
>> when building MXE to update to Qt5.9.2 I this time selected the gcc 7 plugin
>> in MXE to use gcc 7.2.0 instead of 5x. Please don't ask me why - I just
>> wanted to try ;-)
>>
>>
>> Now I have this compile error:
>>
>> [ 59%] Building CXX object
>> desktop-widgets/CMakeFiles/subsurface_interface.dir/updatemanager.cpp.obj
>> In file included from
>> /home/stefan/Entwicklung/Subsurface/mxe-current-git/usr/lib/gcc/i686-w64-mingw32.shared/7.2.0/include/c++/bits/stl_algo.h:59:0,
>>                  from
>> /home/stefan/Entwicklung/Subsurface/mxe-current-git/usr/lib/gcc/i686-w64-mingw32.shared/7.2.0/include/c++/algorithm:62,
>>                  from
>> /home/stefan/Entwicklung/Subsurface/mxe-current-git/usr/i686-w64-mingw32.shared/qt5/include/QtCore/qglobal.h:109,
>>                  from
>> /home/stefan/Entwicklung/Subsurface/mxe-current-git/usr/i686-w64-mingw32.shared/qt5/include/QtCore/qnamespace.h:43,
>>                  from
>> /home/stefan/Entwicklung/Subsurface/mxe-current-git/usr/i686-w64-mingw32.shared/qt5/include/QtCore/qobjectdefs.h:48,
>>                  from
>> /home/stefan/Entwicklung/Subsurface/mxe-current-git/usr/i686-w64-mingw32.shared/qt5/include/QtCore/qobject.h:46,
>>                  from
>> /home/stefan/Entwicklung/Subsurface/mxe-current-git/usr/i686-w64-mingw32.shared/qt5/include/QtCore/QObject:1,
>>                  from
>> /home/stefan/Entwicklung/Subsurface/subsurface/./desktop-widgets/updatemanager.h:5,
>>                  from
>> /home/stefan/Entwicklung/Subsurface/subsurface/desktop-widgets/updatemanager.cpp:2:
>> /home/stefan/Entwicklung/Subsurface/mxe-current-git/usr/lib/gcc/i686-w64-mingw32.shared/7.2.0/include/c++/cstdlib:75:15:
>> fatal error: stdlib.h: No such file or directory
>>  #include_next <stdlib.h>
>>                ^~~~~~~~~~
>> compilation terminated.
>> desktop-widgets/CMakeFiles/subsurface_interface.dir/build.make:191: die
>> Regel für Ziel
>> „desktop-widgets/CMakeFiles/subsurface_interface.dir/updatemanager.cpp.obj“
>> scheiterte
>>
>> Is this s.th. we can even fix in our code (??) or makefiles? Or shall I
>> better go back to standard gcc 5x again?
>>
> this looks like something which isn't a problem on the subsurface side.
> my bet is that the mingw 7x "dudes" are doing something wrong with
> #include_next.
>
> fixing compiler headers is always a bad idea, so i'd suggest that you
> try another compiler and report the issue to MXE.
I looked a little bit around and found this:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129
https://github.com/OpenLightingProject/ola/issues/1125

Maybe we can and should fix it in our makefiles because gcc 6 and 7 can
be affected?

Best regards
Stefan

-- 

Stefan Fuchs
E-Mail: sfuchs at gmx.de <mailto:sfuchs at gmx.de>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20171012/ea26623b/attachment.html>


More information about the subsurface mailing list