Skip to content

test: add missing tool dependency #30313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2020
Merged

Conversation

compnerd
Copy link
Member

The tests depend on the archiver, and may opt to use the LLVM archiver.
Add a dependency for the test suite.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

The tests depend on the archiver, and may opt to use the LLVM archiver.
Add a dependency for the test suite.
@compnerd
Copy link
Member Author

@swift-ci please smoke test

Copy link
Contributor

@dan-zheng dan-zheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Context: I ran into llvm-ar-related errors when running ninja check-swift:

FAIL: Swift(linux-x86_64) :: AutolinkExtract/import_archive.swift (658 of 6127)
******************** TEST 'Swift(linux-x86_64) :: AutolinkExtract/import_archive.swift' FAILED ********************
Script:
--
: 'RUN: at line 1';   rm -rf "/BinaryCache/Release/Linux-x86_64/toolchain/tools/swift/test-linux-x86_64/AutolinkExtract/Output/import_archive.swift.tmp" && mkdir -p "/BinaryCache/Release/Linux-x86_64/toolchain/tools/swift/test-linux-x86_64/AutolinkExtract/Output/import_archive.swift.tmp"
: 'RUN: at line 2';   /BinaryCache/Release/Linux-x86_64/toolchain/bin/swiftc -target x86_64-unknown-linux-gnu -toolchain-stdlib-rpath  -module-cache-path '/BinaryCache/Release/Linux-x86_64/toolchain/swift-test-results/x86_64-unknown-linux-gnu/clang-module-cache' -emit-module -emit-module-path /BinaryCache/Release/Linux-x86_64/toolchain/tools/swift/test-linux-x86_64/AutolinkExtract/Output/import_archive.swift.tmp/empty.swiftmodule -module-name empty -module-link-name empty /SourceCache/llvm-project/swift/test/AutolinkExtract/empty.swift
: 'RUN: at line 3';   /BinaryCache/Release/Linux-x86_64/toolchain/bin/swiftc -target x86_64-unknown-linux-gnu -toolchain-stdlib-rpath  -module-cache-path '/BinaryCache/Release/Linux-x86_64/toolchain/swift-test-results/x86_64-unknown-linux-gnu/clang-module-cache' -c /SourceCache/llvm-project/swift/test/AutolinkExtract/import_archive.swift -I /BinaryCache/Release/Linux-x86_64/toolchain/tools/swift/test-linux-x86_64/AutolinkExtract/Output/import_archive.swift.tmp -o /BinaryCache/Release/Linux-x86_64/toolchain/tools/swift/test-linux-x86_64/AutolinkExtract/Output/import_archive.swift.tmp/import_experimental.o
: 'RUN: at line 4';   llvm-ar cr /BinaryCache/Release/Linux-x86_64/toolchain/tools/swift/test-linux-x86_64/AutolinkExtract/Output/import_archive.swift.tmp/import_experimental.a /BinaryCache/Release/Linux-x86_64/toolchain/tools/swift/test-linux-x86_64/AutolinkExtract/Output/import_archive.swift.tmp/import_experimental.o
: 'RUN: at line 5';   /BinaryCache/Release/Linux-x86_64/toolchain/bin/swift-autolink-extract /BinaryCache/Release/Linux-x86_64/toolchain/tools/swift/test-linux-x86_64/AutolinkExtract/Output/import_archive.swift.tmp/import_experimental.a -o - | '/usr/bin/python2.7' '/SourceCache/llvm-project/swift/utils/PathSanitizingFileCheck' --sanitize BUILD_DIR='/BinaryCache/Release/Linux-x86_64/toolchain/tools/swift' --sanitize SOURCE_DIR='/SourceCache/llvm-project/swift' --use-filecheck '/BinaryCache/Release/Linux-x86_64/toolchain/bin/FileCheck'  --check-prefix CHECK-elf /SourceCache/llvm-project/swift/test/AutolinkExtract/import_archive.swift
--
Exit Code: 127
Command Output (stderr):
--
/BinaryCache/Release/Linux-x86_64/toolchain/tools/swift/test-linux-x86_64/AutolinkExtract/Output/import_archive.swift.script: line 4: llvm-ar: command not found
--
********************
Testing Time: 100.16s
********************
Failing Tests (2):
    Swift(linux-x86_64) :: AutolinkExtract/import_archive.swift
    Swift(linux-x86_64) :: AutolinkExtract/empty_archive.swift

@compnerd compnerd merged commit 77dee31 into swiftlang:master Mar 10, 2020
@compnerd compnerd deleted the archiver branch March 10, 2020 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants