Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927994 - dev-libs/glib rebuilt before dev-util/sysprof-capture; causing LTO problems
Summary: dev-libs/glib rebuilt before dev-util/sysprof-capture; causing LTO problems
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on: 926120
Blocks: lto
  Show dependency tree
 
Reported: 2024-03-27 22:52 UTC by Jay Faulkner
Modified: 2024-09-03 20:12 UTC (History)
4 users (show)

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


Attachments
glib-build-failure-log (glib-2.78.4-r1-buildlog2.txt,244.54 KB, text/plain)
2024-03-27 22:52 UTC, Jay Faulkner
Details
emerge -pev --debug (emerge_-pev_--debug_world.txt.bz2,96.11 KB, application/x-bzip2)
2024-03-27 22:53 UTC, Jay Faulkner
Details
emerge --info (emerge_--info.txt.bz2,3.99 KB, application/x-bzip2)
2024-03-27 22:53 UTC, Jay Faulkner
Details
emerge -pev @world (no debug) (emerge_-pev_world.txt.bz2,14 bytes, application/x-bzip2)
2024-03-27 22:54 UTC, Jay Faulkner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jay Faulkner 2024-03-27 22:52:10 UTC
Created attachment 888855 [details]
glib-build-failure-log

While going through the 23.0 profile migration, I ran into the following issue. My system had LTO enabled, but during the `emerge -e @world` step of the profile migration, gcc threw an ICE -- AIUI this is related to USE=+zstd being added to gcc in this profile. Even after disabling LTO (the state of the system in the emerge --info attached), this continued.

The library with the .a file gcc was unable to read, dev-util/sysprof-capture, was not being built until *after* glib in the world build process. Rebuilding this library manually with a oneshot portage command appears to have resolved this issue.

Sam James indicated to me in IRC this could be worth troubleshooting as a portage dependency resolution error as dev-util/sysprof-capture should have been rebuilt before dev-libs/glib.

Build failure build log attached for context, along with emerge --info, emerge -epv @world and emerge -epv --debug @world (stderr and stdout both).
Comment 1 Jay Faulkner 2024-03-27 22:53:17 UTC
Created attachment 888856 [details]
emerge -pev --debug
Comment 2 Jay Faulkner 2024-03-27 22:53:37 UTC
Created attachment 888857 [details]
emerge --info
Comment 3 Jay Faulkner 2024-03-27 22:54:34 UTC
Created attachment 888858 [details]
emerge -pev @world (no debug)