Closed
Description
Describe the bug
When building Swift on Debian testing the Building Swift Driver dependency: Yams
step fails with:
error: autolink-extract command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: error opening input file \'lib/libYamsTests.a\' (The file was not recognized as a valid object file)
ninja: build stopped: subcommand failed.
Steps To Reproduce
Steps to reproduce the behavior:
- Obtain Swift 5.6.2 source code from various and sundry git repos.
- Run
swift/utils/build-script --preset=buildbot_linux,no_test install_destdir=$PWD installable_package=$PWD/swift_5.6.2-1-debian.tar.gz
Expected behavior
I expect Yams to build without error.
Environment (please fill out the following information)
Debian testing (bookworm)
Additional context
I did not have this problem when building 5.5.1. This might be related to #57323, but modifying GenericUnixToolchain+LinkerSupport.swift in the "case .staticLibrary:" section to match 5.5.1 and 5.5.2 did not help.
$ ar t build/buildbot_linux/earlyswiftdriver-linux-x86_64/release/dependencies/yams/lib/libYamsTests.a
ConstructorTests.swift.o
EmitterTests.swift.o
EncoderTests.swift.o
MarkTests.swift.o
NodeTests.swift.o
PerformanceTests.swift.o
RepresenterTests.swift.o
ResolverTests.swift.o
SpecTests.swift.o
StringTests.swift.o
TestHelper.swift.o
TopLevelDecoderTests.swift.o
YamlErrorTests.swift.o
YamsTests.autolink
I have not tried -disallow-use-new-driver
yet as I need to figure out where to supply that parameter and what impact it will have on the build.