Closed eli-schwartz closed 7 months ago
Note: the original gentoo bug was for zmusic 1.1.4, but I locally tested updating to 1.1.12 and it still manifested.
Gentoo has not updated to 1.1.12 and I don't plan to submit the version bump I tried because it is not packageable quality -- the version update started to bundle a bunch more system libraries which I would have to disentangle first. It was okay for a reproducer.
You have to build with less strict error settings. ZMusic contains several third party modules which may clash. This is something we won't change because the resulting problems will be far, far worse.
I tried to build with the following *FLAGS to optimize the build:
-flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Note the -Werror=* flags are used to help detect cases where the compiler tries to optimize by assuming UB cannot exist in the source code -- if it does exist, ordinarily the code would be miscompiled, and this says to make the miscompilation a fatal error.
I got this error:
Downstream report: https://bugs.gentoo.org/860117 Full build log: build.log