dev-util/android-tools-35.0.1 fails to compile when Werror=strict-aliasing is set, like it is often done with link time optimizations it used to work in the previous version 34.0.5 Reproducible: Always Steps to Reproduce: 1. CFLAGS="-march=native -O2 -pipe -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" 2. emerge =dev-util/android-tools-35.0.1 Actual Results: Fails to compile. Compiles fine with safer CFLAGS like "-march=native -O2 -pipe -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing -fno-lto"
Created attachment 899848 [details] build log
Created attachment 899849 [details] emerge --info and installed packages
This is "just" bug 858311 again, but the workaround was removed...
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0878db1c9b17cf2500b2f8ad434562042cbb1d9 commit a0878db1c9b17cf2500b2f8ad434562042cbb1d9 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2024-08-25 07:16:22 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2024-08-25 07:21:33 +0000 dev-util/android-tools: Re-apply LTO-unsafe fix Re-apply the LTO-unsafe fix from commit 0c03b34a1057b2859947e5c1f8c592ff412babf3. Fixes: https://github.com/gentoo/gentoo/pull/38069 Closes: https://bugs.gentoo.org/937769 Reported-by: Eli Schwartz <eschwartz@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org> dev-util/android-tools/android-tools-35.0.1.ebuild | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)
*** This bug has been marked as a duplicate of bug 858311 ***