kanjitalk755 / macemu

Basilisk II and SheepShaver Macintosh emulators
334 stars 51 forks source link

MSYS2 - Basilisk II - -flto=auto build flag - checking floating point format... configure: error: Unknown floating point format #200

Closed shoober420 closed 1 day ago

shoober420 commented 1 week ago

Following the instructions on https://www.emaculation.com/doku.php/compiling_sheepshaver_basilisk, when running ./configure --with-bincue for Basilisk II on MSYS2 using Windows 11, I get this error.

checking floating point format... configure: error: Unknown floating point format

Full Build Log: buildlog.txt

SheepShaver compiles fine. I think I need to install lib32-mpfr, but theres no such package in the official Arch repo or the AUR.

kanjitalk755 commented 1 week ago

Unfortunately, I don't have an environment to test it on Windows 11.

I think I need to install lib32-mpfr, but theres no such package in the official Arch repo or the AUR.

MPFR is not required in x86 environment.

shoober420 commented 6 days ago

I found out what it was. I use optimized build flags, and enabling LTO is the reason for the error (-flto=auto). Is there a way that Basilisk II can support LTO by using the -flto=auto build flag?

shoober420 commented 6 days ago

I just compiled Basilisk II on my Arch Linux machine with the same build flags and did not encounter the error, so this is strictly in MSYS2 environments.

https://github.com/msys2/MINGW-packages/issues/21366

kanjitalk755 commented 5 days ago

The word LTO reminded me that a similar problem occurred on Linux (#194). I have also applied it to Windows version, so try with the latest source.

shoober420 commented 1 day ago

Basilisk II now compiles successfully when -flto=auto is used, thank you.