Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950963 - [guru] dev-lang/swift-5.10.1-r3 fails to compile with app-alternatives/ninja[-reference,samurai]
Summary: [guru] dev-lang/swift-5.10.1-r3 fails to compile with app-alternatives/ninja[...
Status: UNCONFIRMED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Itai Ferber
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-08 23:55 UTC by benoit.dufour
Modified: 2025-04-01 13:00 UTC (History)
1 user (show)

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


Attachments
build.log (swift-5.10.1-r3_samu_build.log.xz,175.12 KB, application/x-xz)
2025-03-08 23:56 UTC, benoit.dufour
Details

Note You need to log in before you can comment on or make changes to this bug.
Description benoit.dufour 2025-03-08 23:55:39 UTC
If using app-alternatives/ninja[-reference,samurai], and so samurai symlinked to /usr/bin/ninja, swift fails to compile.
See the logs.

I opened this bug report as requested in one of the latest comments in this bug report: 
https://bugs.gentoo.org/950708


Reproducible: Always
Comment 1 benoit.dufour 2025-03-08 23:56:01 UTC
Created attachment 920380 [details]
build.log
Comment 2 benoit.dufour 2025-03-09 00:00:29 UTC
As I recommend in the previous bug report:
If doable, any ebuild related to swift should use /usr/bin/ninja-reference (providen by dev-build/ninja) instead of /usr/bin/ninja (providen by app-alternatives/ninja).

I should add that it, if doable and not overly complicated, it would be better to find a way to fix building swift with samurai.
Comment 3 benoit.dufour 2025-04-01 02:17:53 UTC
I finally got dev-lang/swift-5.10.1-r4 build with samurai instead of ninja, but only on my ARM64 workstation. On all my AMD64 PCs, it is still failing if samurai is used instead of ninja.
Comment 4 benoit.dufour 2025-04-01 13:00:36 UTC
dev-lang/swift-6.0.3-r1::guru also got build correctly on arm64 with app-alternatives/ninja[-reference samurai] but not on amd64.