openmoh / openmohaa

Open re-implementation of Medal of Honor: Allied Assault with modern features and bugfixes from ioquake3
GNU General Public License v2.0
307 stars 21 forks source link

recent build failures for 14d1fae with gcc 14.2.1 and clang 18.1.8 #355

Closed bf2006a closed 1 month ago

bf2006a commented 1 month ago

Recent changes have broken the build for a few common compilers on Linux x86_64. For cmake version 3.28.2, and ninja 1.12.1 on Fedora 40, with (1) gcc (GCC) 14.2.1 20240801 (Red Hat 14.2.1-1), and (2) clang version 18.1.8 (Fedora 18.1.8-1.fc40)

Download source code archive corresponding to main branch at commit 14d1fae, unpack, and enter. mkdir .cmake cd .cmake (1) "cmake -G Ninja -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ ../" or (2) "cmake -G Ninja -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ ../" ninja -j4

build transcript with warnings and errors attached. openmohaa_14d1fae_build_failures_gcc.txt openmohaa_14d1fae_build_failures_clang.txt

bf2006a commented 4 weeks ago

Now, on 77ecc73 the clang build succeeds, but gcc still fails. Some of the warnings that didn't generate errors may be worth a look, as well.

openmohaa_77ecc73_build_failures_gcc.txt