Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MSYS gcc meson build #1370

Closed
Framstag opened this issue Jan 1, 2023 · 2 comments
Closed

Fix MSYS gcc meson build #1370

Framstag opened this issue Jan 1, 2023 · 2 comments
Labels
build For issues in the context of building the software help wanted Signal that help of other is appreciated maintenance For issues that represent maintenance activities

Comments

@Framstag
Copy link
Owner

Framstag commented Jan 1, 2023

The MSYS gcc meson build currently fails. It looks like there is a problem during linking. However, I cannot reproduce the error locally and thus cannot fix it. I also get the warning regarding NOMINMAX locally, too.

Does anybody have an idea?

[45/355] Compiling C++ object libosmscout-map-gdi/libosmscout_map_gdi.dll.p/meson-generated_osmscout_map_gdi-unity0.cpp.obj
In file included from libosmscout-map-gdi/libosmscout_map_gdi.dll.p/osmscout_map_gdi-unity0.cpp:2:
D:/a/libosmscout/libosmscout/libosmscout-map-gdi/src/osmscoutmapgdi/MapPainterGDIWindow.cpp:26: warning: "NOMINMAX" redefined
   26 | #define NOMINMAX // msvc issue with std::max/min
      | 
In file included from D:/a/_temp/msys64/mingw64/include/c++/12.2.0/x86_64-w64-mingw32/bits/c++config.h:655,
                 from D:/a/_temp/msys64/mingw64/include/c++/12.2.0/cstdlib:41,
                 from D:/a/_temp/msys64/mingw64/include/c++/12.2.0/stdlib.h:36,
                 from D:/a/_temp/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/mm_malloc.h:27,
                 from D:/a/_temp/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/xmmintrin.h:34,
                 from D:/a/_temp/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/immintrin.h:31,
                 from D:/a/_temp/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/x86intrin.h:32,
                 from D:/a/_temp/msys64/mingw64/include/winnt.h:1658,
                 from D:/a/_temp/msys64/mingw64/include/minwindef.h:163,
                 from D:/a/_temp/msys64/mingw64/include/windef.h:9,
                 from D:/a/_temp/msys64/mingw64/include/windows.h:69,
                 from D:/a/libosmscout/libosmscout/libosmscout-map-gdi/src/osmscoutmapgdi/MapPainterGDI.cpp:28,
                 from libosmscout-map-gdi/libosmscout_map_gdi.dll.p/osmscout_map_gdi-unity0.cpp:1:
D:/a/_temp/msys64/mingw64/include/c++/12.2.0/x86_64-w64-mingw32/bits/os_defines.h:45: note: this is the location of the previous definition
   45 | #define NOMINMAX 1
      | 
[46/355] Compiling C++ object libosmscout-map-directx/libosmscout_map_directx.dll.p/meson-generated_osmscout_map_directx-unity0.cpp.obj
[47/355] Linking target libosmscout-map-directx/libosmscout_map_directx.dll
[48/355] Linking target libosmscout-map-gdi/libosmscout_map_gdi.dll
[49/355] Generating symbol file libosmscout-map-gdi/libosmscout_map_gdi.dll.p/libosmscout_map_gdi.dll.symbols
FAILED: libosmscout-map-gdi/libosmscout_map_gdi.dll.p/libosmscout_map_gdi.dll.symbols 
"D:/a/_temp/msys64/mingw64/bin/meson" "--internal" "symbolextractor" "D:/a/libosmscout/libosmscout/debug" libosmscout-map-gdi/libosmscout_map_gdi.dll "libosmscout-map-gdi/libosmscout_map_gdi.dll.a" libosmscout-map-gdi/libosmscout_map_gdi.dll.p/libosmscout_map_gdi.dll.symbols 
[50/355] Generating symbol file libosmscout-map-directx/libosmscout_map_directx.dll.p/libosmscout_map_directx.dll.symbols
[51/355] Compiling C++ object libosmscout-map-opengl/libosmscout_map_opengl.dll.p/meson-generated_osmscout_map_opengl-unity0.cpp.obj
ninja: build stopped: subcommand failed.
@Framstag Framstag added help wanted Signal that help of other is appreciated build For issues in the context of building the software maintenance For issues that represent maintenance activities labels Jan 1, 2023
@eli-schwartz
Copy link

The MSYS gcc meson build currently fails. It looks like there is a problem during linking.

Close, but not exactly. Notice that the failing build edge is "generating symbol file", not "linking target".

It looks like this is another example of msys2/MINGW-packages#11864

Python bizarrely crashes sometimes, but seemingly only in Github Actions. It's not consistent, so retrying it will frequently succeed, and it cannot be easily debugged, because configuring JIT debugging causes the problem to vanish. On the other hand, that means that configuring JIT debugging works around the issue.

@Framstag
Copy link
Owner Author

Framstag commented Apr 2, 2023

Currently, all build works again. Closing this issue.

@Framstag Framstag closed this as completed Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build For issues in the context of building the software help wanted Signal that help of other is appreciated maintenance For issues that represent maintenance activities
Projects
None yet
Development

No branches or pull requests

2 participants