Skip to content
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

[SR-3034] Linking errors on linux xctest when building with optimizations #5189

Closed
ankitspd opened this issue Oct 24, 2016 · 1 comment
Closed
Labels

Comments

@ankitspd
Copy link
Member

Previous ID SR-3034
Radar rdar://problem/28960061
Original Reporter @aciidb0mb3r
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler, Package Manager, XCTest
Labels Bug
Assignee None
Priority Medium

md5: 794b546dc9bc70c615d5e90fb4821b8c

Issue Description:

I am seeing these failures when building tests with optimizations:

/build/release/BasicTests.build/ByteStringTests.swift.o:/build/release/BasicTests.build/XCTestManifests.swift.o:_TMC10BasicTests15ByteStringTests: error: undefined reference to '_TFC6XCTest6XCTestg7testRunGSqCS_9XCTestRun_'
/build/release/BasicTests.build/ByteStringTests.swift.o:/build/release/BasicTests.build/XCTestManifests.swift.o:_TMC10BasicTests15ByteStringTests: error: undefined reference to '_TFC6XCTest10XCTestCasem20continueAfterFailureSb'
/build/release/BasicTests.build/CollectionAlgorithmsTests.swift.o:/build/release/BasicTests.build/XCTestManifests.swift.o:_TMC10BasicTests25CollectionAlgorithmsTests: error: undefined reference to '_TFC6XCTest6XCTestg7testRunGSqCS_9XCTestRun_'
/build/release/BasicTests.build/CollectionAlgorithmsTests.swift.o:/build/release/BasicTests.build/XCTestManifests.swift.o:_TMC10BasicTests25CollectionAlgorithmsTests: error: undefined reference to '_TFC6XCTest10XCTestCasem20continueAfterFailureSb'
/build/release/BasicTests.build/ConditionTests.swift.o:/build/release/BasicTests.build/XCTestManifests.swift.o:_TMC10BasicTests14ConditionTests: error: undefined reference to '_TFC6XCTest6XCTestg7testRunGSqCS_9XCTestRun_'
/build/release/BasicTests.build/ConditionTests.swift.o:/build/release/BasicTests.build/XCTestManifests.swift.o:_TMC10BasicTests14ConditionTests: error: undefined reference to '_TFC6XCTest10XCTestCasem20continueAfterFailureSb'
/build/release/BasicTests.build/DictionaryExtensionsTests.swift.o:/build/release/BasicTests.build/XCTestManifests.swift.o:_TMC10BasicTests24DictionaryExtensionTests: error: undefined reference to '_TFC6XCTest6XCTestg7testRunGSqCS_9XCTestRun_'
/build/release/BasicTests.build/DictionaryExtensionsTests.swift.o:/build/release/BasicTests.build/XCTestManifests.swift.o:_TMC10BasicTests24DictionaryExtensionTests: error: undefined reference to '_TFC6XCTest10XCTestCasem20continueAfterFailureSb'

How to reproduce:
snapshot: swift-DEVELOPMENT-SNAPSHOT-2016-10-21-a-ubuntu14.04
$ git clone https://github.com/apple/swift-package-manager
$ cd swift-package-manager
$ Utilities/bootstrap --release test

PS: It works fine on macOS, discovered during this PR #758

@ankitspd
Copy link
Member Author

Should be resolved by apple/swift#6428

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant