protonscr

experimental-9.0-20241016 fails to build when modifying build flags

protonopen
ValveSoftware/Proton#8193 · opened 2024-10-25 by roadapathy · updated 2025-05-06 · 4 comments · github
Rroadapathy 2024-10-25 github

experimental-9.0-20241016

If I modify this part of the Makefile.in in any small way at all then the build breaks. For example, if I change nocona to native then it breaks.
OPTIMIZE_FLAGS := -O2 -march=nocona -mtune=core-avx2 -mfpmath=sse

I removed the -Werror here so that it won't stop at warnings.
WINE_CONFIGURE_ARGS =
--with-mingw
--disable-tests

I created some log files using which I will include:
make redist > output.log 2>&1

I have been modifying 9.03c and earlier versions without any issues:
OPTIMIZE_FLAGS := -O3 -march=native
and I have used:
OPTIMIZE_FLAGS := -O3 -march=native -flto

Yes, I understand this probably won't build a faster binary but it's for educational purposes and I'm learning a lot.

output.log

Rroadapathy 2024-10-25 github

These are the projects that did not build:
Screenshot_2024-10-25_18-52-15

SSinfolke 2024-10-26 github

i would say not to use -O3 and remain -O2

Rroadapathy 2024-11-07 github

i would say not to use -O3 and remain -O2

I can do that but the build still fails when anything is added. -march=native but that is normally fine with the previous versions.

Ggabriele2000 2025-05-06 github

So, here I am, trying to find why -O3 -march=native would break everything... and I discover that Proton uses GCC10... I... I don't even know anymore.

Launch options