https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-ada/libadalang-22.0.0 fails to compile (lto). Discovered on: amd64 (internal ref: lto_tinderbox) NOTE: This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Created attachment 788834 [details] build.log build log and emerge --info
Error(s) that match a know pattern: Command '['gprbuild', '-p', '-j16', '-P/var/tmp/portage/dev-ada/libadalang-22.0.0/work/libadalang-22.0.0/build/libadalang.gpr', '-vl', '-XBUILD_MODE=prod', '-XLIBRARY_TYPE=relocatable', '-XGPR_BUILD=relocatable', '-XXMLADA_BUILD=relocatable', '-XLIBADALANG_WARNINGS=true', '-cargs:C', '-O2', '-pipe', '-march=x86-64', '-frecord-gcc-switches', '-fno-diagnostics-color', '-fmessage-length=0', '-flto', '-Werror=odr', '-Werror=lto-type-mismatch', '-Werror=strict-aliasing', '-cargs:Ada', '-O2', '-pipe', '-march=x86-64', '-frecord-gcc-switches', '-fno-diagnostics-color', '-fmessage-length=0', '-flto', '-Werror=odr', '-Werror=lto-type-mismatch', '-Werror=strict-aliasing', '-largs:C', '-Wl,-O1', '-Wl,--as-needed', '-Wl,--defsym=__gentoo_check_ldflags__=0']' returned non-zero exit status 4. | Community 2020 (20200429-93) (x86_64-pc-linux-gnu) GCC error: |
I'm not 100% sure that it is an lto fault. After if you dig into it, please remove the blocker bug if you think this has nothing to do with lto. Thanks
Please retest by setting ADA_TARGET="gcc_12_2_0" in make.conf This will make use of gcc-12.2.0 that I hope is lto safe
Bug related to gnat_2020 that is dropped