Bug 2411712
| Summary: | [ppc64le] ld.bfd takes over 2 hours to link "libHSghc_p.so" in ghc 9.12 and 9.14 builds | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jens Petersen <petersen> |
| Component: | binutils | Assignee: | Nick Clifton <nickc> |
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dvlasenk, fweimer, jakub, josmyers, nickc, sipoyare, suraj.ghimire7 |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | ppc64le | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jens Petersen
2025-11-01 09:56:41 UTC
Hi Jens, I doubt if there is very much that can be done about this. ld.bfd was never designed to be fast, and I seriously doubt if it could ever catch up with any of the other linkers in terms of speed. Given that using LLD appears to be a sufficient workaround for you, I think that there is very little point in investigating this deeply. But just as a matter of interest, which version of Fedora are you using, and which version of the ld.bfd linker ? Cheers Nick Thanks Nick I have been testing in a F43 vm and Rawhide (koji), so binutils 2.45 and 2.45.50. For Koji ppc64le, the time difference seems "only" 1 hour, so it seems to depend on the system. For x86_* and aarch64 there is no real difference in build times. So I just wondered why ppc64le seems particularly affected for this. (For builds without the profiling libs the difference also is small.) It seems this problem really started with the introduction of dynamic profiling libraries in 9.12 (before that there were only static profiling libraries). There are 824 objects in the library I think, so it is pretty big. |