You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
2695a18
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
The text was updated successfully, but these errors were encountered: