MorsGames / sm64plus

A fork of sm64-port that focuses on QoL improvements and customizability.
https://mfgg.net/index.php?act=resdb&param=02&c=2&id=38190
463 stars 32 forks source link

Tool Build Failure (Makefile 241) #109

Open AllenEtcetera opened 1 month ago

AllenEtcetera commented 1 month ago

Here's what I've tried that didn't fix it:

Here's a record of what happened:

warning: git-2.46.2-1 is up to date -- skipping warning: make-4.4.1-2 is up to date -- skipping warning: python-3.12.7-1 is up to date -- skipping warning: mingw-w64-x86_64-gcc-14.2.0-1 is up to date -- skipping warning: mingw-w64-x86_64-SDL2-2.30.8-1 is up to date -- skipping warning: mingw-w64-x86_64-glew-2.2.0-3 is up to date -- skipping there is nothing to do The sm64plus folder already exists. Skipping cloning the repository. ==== Build Options ==== Version: us Microcode: f3dex2e Target: sm64.us Compare ROM: no Build Matching: no

Building tools... In file included from C:/msys64/mingw64/include/c++/14.2.0/cstdio:41, from armips.cpp:51: C:/msys64/mingw64/include/c++/14.2.0/x86_64-w64-mingw32/bits/c++config.h:667:2: warning: #warning "STRICT_ANSI seems to have been undefined; this is not supported" [-Wcpp] 667 | #warning "STRICT_ANSI seems to have been undefined; this is not supported" | ^~~ In file included from C:/msys64/mingw64/include/c++/14.2.0/bits/chrono.h:39, from C:/msys64/mingw64/include/c++/14.2.0/bits/this_thread_sleep.h:36, from C:/msys64/mingw64/include/c++/14.2.0/thread:46, from armips.cpp:16926: C:/msys64/mingw64/include/c++/14.2.0/limits:2100:30: error: exponent has no digits 2100 | return extension 0x1.0p-16382Q; | ^~ C:/msys64/mingw64/include/c++/14.2.0/limits:2114:30: error: exponent has no digits 2114 | return extension 0x1.ffffffffffffffffffffffffffffp+16383Q; | ^~~~~~~~~ C:/msys64/mingw64/include/c++/14.2.0/limits:2183:30: error: exponent has no digits 2183 | return extension 0x1.0p-16494Q; | ^~ armips.cpp:1273:9: warning: ISO C++ prohibits anonymous structs [-Wpedantic] 1273 | { | ^ armips.cpp: In member function 'bool FileTokenizer::init(TextFile*)': armips.cpp:13550:51: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] 13550 | addToken(std::move(loadToken())); | ~~~^~~ armips.cpp:13550:51: note: remove 'std::move' call C:/msys64/mingw64/include/c++/14.2.0/limits: In static member function 'static constexpr float128 std::numeric_limits<__float128>::min()': C:/msys64/mingw64/include/c++/14.2.0/limits:2100:37: error: unable to find numeric literal operator 'operator""Q' 2100 | return extension 0x1.0p-16382Q; | ^~ C:/msys64/mingw64/include/c++/14.2.0/limits:2100:37: note: use '-fext-numeric-literals' to enable more built-in suffixes C:/msys64/mingw64/include/c++/14.2.0/limits:2102:7: error: body of 'constexpr' function 'static constexpr __float128 std::numeric_limits<float128>::min()' not a return-statement 2102 | } | ^ C:/msys64/mingw64/include/c++/14.2.0/limits: In static member function 'static constexpr float128 std::numeric_limits<__float128>::max()': C:/msys64/mingw64/include/c++/14.2.0/limits:2114:64: error: unable to find numeric literal operator 'operator""Q' 2114 | return extension 0x1.ffffffffffffffffffffffffffffp+16383Q; | ^~ C:/msys64/mingw64/include/c++/14.2.0/limits:2114:64: note: use '-fext-numeric-literals' to enable more built-in suffixes C:/msys64/mingw64/include/c++/14.2.0/limits:2116:7: error: body of 'constexpr' function 'static constexpr __float128 std::numeric_limits<float128>::max()' not a return-statement 2116 | } | ^ C:/msys64/mingw64/include/c++/14.2.0/limits: In static member function 'static constexpr float128 std::numeric_limits<__float128>::denorm_min()': C:/msys64/mingw64/include/c++/14.2.0/limits:2183:37: error: unable to find numeric literal operator 'operator""Q' 2183 | return extension 0x1.0p-16494Q; | ^~ C:/msys64/mingw64/include/c++/14.2.0/limits:2183:37: note: use '-fext-numeric-literals' to enable more built-in suffixes C:/msys64/mingw64/include/c++/14.2.0/limits:2185:7: error: body of 'constexpr' function 'static constexpr float128 std::numeric_limits<__float128>::denorm_min()' not a return-statement 2185 | } | ^ make[1]: [Makefile:78: armips] Error 1 Makefile:241: Failed to build tools. Stop. An error has occured during the building process. If the error has occured while extracting the assets, try a different ROM file.\n\nOtherwise please refer to the FAQ: https://github.com/MorsGames/sm64plus/wiki/Frequently-Asked-Questions Press any key to close this window.

lpolon commented 2 weeks ago

I got the same issue. an older msys2 release fixed the issue to me, as suggested in this reddit thread.

specifically msys2-x86_64-20231026.exe