godotengine / godotengine/build-containers
[3.x] Windows container fails to build due to mingw issue.
- Dominant language
- Shell
- Stars
- 292
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Description
Hi there! I'm attempting to build the `3.x` containers, but the Windows one is producing an error from `mingw`:
```
make[3]: Entering directory '/root/mono-configs/desktop-windows-x86_64-release/mono/btls'
mkdir -p build-shared
(cd build-shared && CC="/usr/bin/x86_64-w64-mingw32-gcc" CXX="/usr/bin/x86_64-w64-mingw32-g++" "/usr/bin/cmake" -D CMAKE_MAKE_PROGRAM="/usr/bin/gmake" -D CMAKE_INSTALL_PREFIX:PATH="/root/mono-installs/desktop-windows-x86_64-release" -D BTLS_ROOT:PATH="/root/mono-6.12.0.206/external/boringssl" -D SRC_DIR:PATH="/root/mono-6.12.0.206/mono/btls" -D BTLS_CFLAGS:STRING="-O2 -g -m64 -DNOCRYPT -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE -DWIN32_THREADS -DFD_SETSIZE=1024" -DOPENSSL_NO_ASM=1 -DBTLS_ARCH="x86_64" -DBUILD_SHARED_LIBS=1 "/root/mono-6.12.0.206/mono/btls")
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
-- The C compiler identification is GNU 15.2.1
-- The CXX compiler identification is GNU 15.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc
-- Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/usr/bin/x86_64-w64-mingw32-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/root/mono-configs/desktop-windows-x86_64-release/mono/btls/build-shared/CMakeFiles/CMakeScratch/TryCompile-qmebnK'
Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_aff6c/fast
gmake[4]: Entering directory '/root/mono-configs/desktop-windows-x86_64-release/mono/btls/build-shared/CMakeFiles/CMakeScratch/TryCompile-qmebnK'
/usr/bin/gmake -f CMakeFiles/cmTC_aff6c.dir/build.make CMakeFiles/cmTC_aff6c.dir/build
gmake[5]: Entering directory '/root/mono-configs/desktop-windows-x86_64-release/mono/btls/build-shared/CMakeFiles/CMakeScratch/TryCompile-qmebnK'
Building C object CMakeFiles/cmTC_aff6c.dir/testCCompiler.c.o
/usr/bin/x86_64-w64-mingw32-gcc -o CMakeFiles/cmTC_aff6c.dir/testCCompiler.c.o -c /root/mono-configs/desktop-windows-x86_64-release/mono/btls/build-shared/CMakeFiles/CMakeScratch/TryCompile-qmebnK/testCCompiler.c
Linking C executable cmTC_aff6c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_aff6c.dir/link.txt --verbose=1
x86_64-w64-mingw32-gcc: error: unrecognized command-line option '-rdynamic'
/usr/bin/x86_64-w64-mingw32-gcc -rdynamic CMakeFiles/cmTC_aff6c.dir/testCCompiler.c.o -o cmTC_aff6c
gmake[5]: *** [CMakeFiles/cmTC_aff6c.dir/build.make:102: cmTC_aff6c] Error 1
gmake[5]: Leaving directory '/root/mono-configs/desktop-windows-x86_64-release/mono/btls/build-shared/CMakeFiles/CMakeScratch/TryCompile-qmebnK'
gmake[4]: *** [Makefile:134: cmTC_aff6c/fast] Error 2
gmake[4]: Leaving directory '/root/mono-configs/desktop-windows-x86_64-release/mono/btls/build-shared/CMakeFiles/CMakeScratch/TryCompile-qmebnK'
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
make[3]: *** [Makefile:684: build-shared/Makefile] Error 1
make[3]: Leaving directory '/root/mono-configs/desktop-windows-x86_64-release/mono/btls'
make[2]: *** [Makefile:536: all-recursive] Error 1
make[2]: Leaving directory '/root/mono-configs/desktop-windows-x86_64-release/mono'
make[1]: *** [Makefile:608: all-recursive] Error 1
make[1]: Leaving directory '/root/mono-configs/desktop-windows-x86_64-release'
make: *** [Makefile:536: all] Error 2
make: Leaving directory '/root/mono-configs/desktop-windows-x86_64-release'
Running command 'make': make -j16 -C /root/mono-configs/desktop-windows-x86_64-release
'make' exited with error code: 2
Error: building at STEP "RUN dnf -y install --setopt=install_weak_deps=False mingw32-gcc mingw32-gcc-c++ mingw32-winpthreads-static mingw64-gcc mingw64-gcc-c++ mingw64-winpthreads-static && cp -a /root/files/${mono_version} /root && export MONO_SOURCE_ROOT=/root/${mono_version} && cd /root/${mono_version}/godot-mono-builds && python3 windows.py configure -j --target=x86_64 --target=x86 --mxe-prefix=/usr && python3 windows.py make -j --target=x86_64 --target=x86 --mxe-prefix=/usr && python3 bcl.py make -j --product=desktop && python3 bcl.py make -j --product=desktop-win32 && rm -rf /root/mono-installs/desktop-bcl && python3 windows.py copy-bcl --target=x86_64 --target=x86 && cd /root && rm -rf /root/${mono_version}": while running runtime: exit status 1
```
Looking at the commits, it looks like there was also an issue with `mingw` that meant you needed to use Fedora 43, was this the issue in question? If not, can this issue be replicated by you guys, or is something wrong on my end?
Many thanks in advance!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.