swiftlang / swift-sdk-generator

Generate Swift SDKs for cross-compilation
Apache License 2.0
166 stars 16 forks source link

Error: The file “clang” couldn’t be saved in the folder “swift_static” because a file with the same name already exists. #121

Closed toffaletti closed 2 weeks ago

toffaletti commented 3 weeks ago

sdk generator seems to not work with swift 6 dev snapshots:

Using downloaded artifacts in these locations:
swift-sdk-generator/Artifacts/host_llvm_17.0.5_arm64-apple-macos15.0.0.tar.xz
swift-sdk-generator/Artifacts/host_swift_6.0-DEVELOPMENT-SNAPSHOT-2024-08-20-a_arm64-apple-macos15.0.0.pkg

Unpacking and copying Swift binaries for the host triple...
10608313 blocks

Launching a Docker container to copy Swift SDK for the target triple from it...

Copying Swift core libraries for the target triple into Swift SDK bundle...

Unpacking and copying `lld` linker...

Fixing up absolute symlinks...

Fixing absolute paths in `glibc.modulemap`...
Error: The file “clang” couldn’t be saved in the folder “swift_static” because a file with the same name already exists.
toffaletti commented 3 weeks ago

It looks like swift_static now includes clang:

> pkgutil --files org.swift.5101202406041a | grep swift_static\/clang
> pkgutil --files org.swift.600202408201a | grep swift_static\/clang
usr/lib/swift_static/clang