Context: see Swift on Exherbo
I'm trying to compile the Swift toolchain on Exherbo, and I'm facing an error I can't work around:
[1/942][ 0%][0.010s] Generating ../share/swift/diagnostics/generated
FAILED: share/swift/diagnostics/generated /home/bas/swift-project/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/share/swift/diagnostics/generated
cd /home/bas/swift-project/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/localization && /usr/x86_64-pc-linux-gnu/bin/cmake -E copy_directory /home/bas/swift-project/swift/localization/diagnostics/ /home/bas/swift-project/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/share/swift/diagnostics/ && /home/bas/swift-project/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/./bin/swift-def-to-yaml-converter --output-directory /home/bas/swift-project/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/share/swift/diagnostics/ && /home/bas/swift-project/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/./bin/swift-serialize-diagnostics --input-file-path /home/bas/swift-project/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/share/swift/diagnostics/en.yaml --output-directory /home/bas/swift-project/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/share/swift/diagnostics/ && /usr/x86_64-pc-linux-gnu/bin/cmake -E touch /home/bas/swift-project/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/share/swift/diagnostics/generated
/bin/sh: line 1: /home/bas/swift-project/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/./bin/swift-def-to-yaml-converter: No such file or directory
(The /home/bas/swift-project/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/./bin/swift-def-to-yaml-converter
file exists, is executable, not empty, and accessible (I'm root))
You can find the (truncated) log here and comments on my progression in this Gist: Error when building Swift on Exherbo (2022-05-17-a) · GitHub
Does anyone know why this problem happens?
Note: I'm creating a topic here, and not a GitHub issue, as asked by swift/GettingStarted.md at main · apple/swift · GitHub.