Linker _sometimes_ fails at the first swift build
but succeeds after several trials in a certain repository.
#8064
Labels
swift build
but succeeds after several trials in a certain repository.
#8064
Is it reproducible with SwiftPM command-line tools:
swift build
,swift test
,swift package
etc?swift build
,swift test
,swift package
etc.Description
I don't know the implementation detail of Package Manager, but it seems to build 'libFoo-tool.dylib' and then emits 'libFoo.dylib' during
swift build
.However, under some conditions (which I'm not sure),
swift build
instructs the linker to link 'libFoo.dylib' before it is emitted.Expected behavior
swift build
always succeeds.Actual behavior
Steps to reproduce
(Sorry, but I couldn't reduce the problem. These steps use my repository as is.)
cd $(mktemp -d)
git clone https://github.com/YOCKOW/SwiftPQ.git
cd SwiftPQ/
git checkout 8bda04dd47316a52fb7c0a127e0db3091d2bd38f
swift build
Result (nondeterministic)
(GitHub Actions Log: https://github.com/YOCKOW/SwiftPQ/actions/runs/11400394868/job/31860480405#step:8:14 )
or
or
Build complete!
Swift Package Manager version/commit hash
Swift Package Manager - Swift 6.0.1-dev
Swift & OS version (output of
swift --version ; uname -a
)The text was updated successfully, but these errors were encountered: