Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 855227

Summary: dev-ada/libadalang-22.0.0 fails to compile (lto)
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Linux ADA team <ada>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-06-30 06:02:32 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2022-06-30 06:02:34 UTC
Created attachment 788834 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-06-30 06:02:36 UTC
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:            |
Comment 3 Agostino Sarubbo gentoo-dev 2022-06-30 07:30:05 UTC
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
Comment 4 Tupone Alfredo gentoo-dev 2022-10-04 06:20:08 UTC
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
Comment 5 Tupone Alfredo gentoo-dev 2022-11-27 11:30:53 UTC
Bug related to gnat_2020 that is dropped