Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932782 - sys-devel/gcc-14.1.1_p20240518 fails to build on musl / llvm: stage 2 and stage 3 comparison failure
Summary: sys-devel/gcc-14.1.1_p20240518 fails to build on musl / llvm: stage 2 and sta...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-26 10:01 UTC by Spekadyon
Modified: 2024-12-13 10:10 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info.txt,6.70 KB, text/plain)
2024-05-26 10:02 UTC, Spekadyon
Details
build log (gcc-build-logs.tar.xz,261.66 KB, application/x-xz)
2024-05-26 10:04 UTC, Spekadyon
Details
gcc stage2 and stage3 object files samples (gcc-14.1.1_p20240622-stage2_3_samples.tar.xz,388.71 KB, application/x-xz)
2024-07-19 10:12 UTC, Spekadyon
Details
gcc-14.1.1_p20240622 build logs (gcc-build-logs.tar.xz,261.84 KB, application/x-xz)
2024-07-19 10:14 UTC, Spekadyon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Spekadyon 2024-05-26 10:01:47 UTC
sys-devel/gcc-14.1.1_p20240518 fails to build on a default/linux/amd64/23.0/split-usr/musl/llvm system.

Compilation fails on the stage 2 / stage 3 comparison step with the following message:
> make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/build'
> Comparing stages 2 and 3
> Bootstrap comparison failure!
> gcc/lto-section-out.o differs
> [...]

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-devel/gcc-14.1.1_p20240518
Actual Results:  
Compilation fails

Expected Results:  
COmpilation succeeds

My actual profile is a merge of both
> gentoo:default/linux/amd64/23.0/split-usr/musl/llvm
> gentoo:targets/desktop/plasma
as described in https://wiki.gentoo.org/wiki/Profile_(Portage)#Combining_profiles
Comment 1 Spekadyon 2024-05-26 10:02:52 UTC
Created attachment 894431 [details]
emerge --info
Comment 2 Spekadyon 2024-05-26 10:04:59 UTC
Created attachment 894432 [details]
build log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-16 06:58:00 UTC
Please upload a sample of differing files from the stage2 and stage3 dirs (in pairs, obviously).
Comment 4 Spekadyon 2024-07-19 10:12:07 UTC
I no longer have the build directory for sys-devel/gcc-14.1.1_p20240518, and the ebuild is no longer in the portage tree. The same bug is observed with sys-devel/gcc-14.1.1_p20240622 though. I've attached the build log for sys-devel/gcc-14.1.1_p20240622 and a sample of stage 2 / stage 3 object files, as requested.

I can put the whole build directory somewhere online, but it will take some time as I only have a DSL Internet access.

Feel free to ask for more samples if needed.
Comment 5 Spekadyon 2024-07-19 10:12:56 UTC
Created attachment 897991 [details]
gcc stage2 and stage3 object files samples
Comment 6 Spekadyon 2024-07-19 10:14:18 UTC
Created attachment 897992 [details]
gcc-14.1.1_p20240622 build logs
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-11 08:05:43 UTC
Sorry, I'd lost track of this. Can you still hit it?
Comment 8 Spekadyon 2024-12-13 09:39:46 UTC
No problem, I run this gentoo mostly for tests.
I just emerged sys-devel/gcc-13.3.1_p20241115 successfully, I no longer hit the stage2/stage3 error.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-13 10:10:16 UTC
Thanks!