Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 855227 - dev-ada/libadalang-22.0.0 fails to compile (lto)
Summary: dev-ada/libadalang-22.0.0 fails to compile (lto)
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux ADA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-06-30 06:02 UTC by Agostino Sarubbo
Modified: 2022-11-27 11:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,82.62 KB, text/plain)
2022-06-30 06:02 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
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