Summary: | dev-build/ninja-1.12.1: Fails to build with mold linker | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Blacktea Hamburger <blackteahamburger> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | blackteahamburger, chromium |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/rui314/mold/issues/1336 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 830404, 932474 | ||
Attachments: |
build.log
Output of emerge --info dev-build/ninja gdb coredump build.log build.log gdb coredump |
Created attachment 901516 [details]
Output of emerge --info dev-build/ninja
Can you run the failing command manually in the build directory under gdb to find where it traps? Created attachment 901671 [details]
gdb coredump
Created attachment 901672 [details]
build.log
Created attachment 901768 [details]
build.log
Created attachment 901769 [details]
gdb coredump
I recompiled it using gcc-14 but it still failed. It never failed before. My gcc-14 and mold are built on gcc-15. I think you need to figure out which part of your system is miscompiled. I'm using GCC 15 (and mold + lto) on various systems and had no issues. Please also keep in mind that given the flags you mentioned in another bug, it's not always enough to just rebuild _one_ thing with safe flags. It might be that a dependency is contaminated. It seems that gcc 15 has broken too many things. I don't want to move further because I have reinstalled my system. I really think it's more about the flags, but it is what it is now. |
Created attachment 901515 [details] build.log On gcc14 or without -fuse-ld=mold build succeeds.