Open shoober420 opened 2 months ago
LTO builds are unsupported, and are not a recommended configuration. If you can show an actual bug in the source that happens to be exposed by LTO builds we can look at it, but we don’t investigate LTO build issues.
Is there a build flag I can force the 64bit version to only be built, and skip the 32bit version of MAME? I do have the following already added to my bashrc file.
export MINGW64=/mingw64
export MINGW32=
If you include PTR64=1
in your make options, only the 64-bit version is built. You need to explicitly build the 32-bit version if you want it, they aren’t both built automatically.
I tried to compile with PTR64=1 to see if it would get passed the error, but it still occured. Thanks for the info though, I hope one day MAME supports LTO optimization.
MAME version
https://github.com/mamedev/mame/commit/2695a185f97c29cc00e67f2b95debed676413264
System information
Windows 11 64-bit / MSYS2 16GB RAM GEFORCE 2060 RTX 555.85
INI configuration details
Emulated system/software
No response
Incorrect behaviour
Build fail.
GNU ld (GNU Binutils) 2.42 lto-wrapper.exe: warning: using serial compilation of 128 LTRANS jobs lto-wrapper.exe: note: see the '-flto' option documentation for more information lto1.exe: error: two or more sections for .gnu.lto__ZTV13device_finderI19generic_slot_deviceLb0EE.173732.c2717568 (null):0: confused by earlier errors, bailing out lto-wrapper.exe: fatal error: C:\msys64\mingw64\bin\x86_64-w64-mingw32-g++.exe returned 1 exit status compilation terminated. C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: error: lto-wrapper failed collect2.exe: error: ld returned 1 exit status make[2]: [mame.make:271: ../../../../../mame.exe] Error 1 make[1]: [Makefile:1132: mame] Error 2 make: *** [makefile:1127: windows_x64] Error 2
Expected behaviour
Build completion
Steps to reproduce
run make with LTO enabled
Additional details
No response