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

swift build --config release fails with linker error on Linux #288

Closed
norio-nomura opened this issue Oct 28, 2016 · 2 comments · Fixed by #296
Closed

swift build --config release fails with linker error on Linux #288

norio-nomura opened this issue Oct 28, 2016 · 2 comments · Fixed by #296

Comments

@norio-nomura
Copy link
Collaborator

swift build --config release fails with linker error:

root@8aa2d088c462:/Users/norio/github/swift-dev/SourceKitten# swift build --config release
Compile Swift Module 'Yaml' (6 sources)
Compile Swift Module 'Nimble' (45 sources)
Compile Swift Module 'SWXMLHash' (2 sources)
/Users/norio/github/swift-dev/SourceKitten/Packages/SWXMLHash-3.0.2/Source/SWXMLHash.swift:236:16: warning: result of call to 'parse()' is unused
        parser.parse()
               ^    ~~
/Users/norio/github/swift-dev/SourceKitten/Packages/SWXMLHash-3.0.2/Source/SWXMLHash.swift:315:16: warning: result of call to 'parse()' is unused
        parser.parse()
               ^    ~~
Compile Swift Module 'Result' (2 sources)
Compile Swift Module 'Quick' (21 sources)
Compile Swift Module 'Commandant' (9 sources)
Compile Swift Module 'SourceKittenFramework' (33 sources)
Compile Swift Module 'sourcekitten' (9 sources)
Linking ./.build/release/sourcekitten
/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/QuickSpec.swift.o:/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/Hooks/SuiteHooks.swift.o:_TMC5Quick9QuickSpec: error: undefined reference to '_TFC6XCTest6XCTestg7testRunGSqCS_9XCTestRun_'
/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/QuickSpec.swift.o:/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/Hooks/SuiteHooks.swift.o:_TMC5Quick9QuickSpec: error: undefined reference to '_TFC6XCTest6XCTests7testRunGSqCS_9XCTestRun_'
/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/QuickSpec.swift.o:/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/Hooks/SuiteHooks.swift.o:_TMC5Quick9QuickSpec: error: undefined reference to '_TFC6XCTest6XCTestm7testRunGSqCS_9XCTestRun_'
/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/QuickSpec.swift.o:/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/Hooks/SuiteHooks.swift.o:_TMC5Quick9QuickSpec: error: undefined reference to '_TFC6XCTest10XCTestCaseg5_nameSS'
/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/QuickSpec.swift.o:/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/Hooks/SuiteHooks.swift.o:_TMC5Quick9QuickSpec: error: undefined reference to '_TFC6XCTest10XCTestCases5_nameSS'
/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/QuickSpec.swift.o:/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/Hooks/SuiteHooks.swift.o:_TMC5Quick9QuickSpec: error: undefined reference to '_TFC6XCTest10XCTestCasem5_nameSS'
/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/QuickSpec.swift.o:/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/Hooks/SuiteHooks.swift.o:_TMC5Quick9QuickSpec: error: undefined reference to '_TFC6XCTest10XCTestCaseg16_allExpectationsGSaCS_17XCTestExpectation_'
/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/QuickSpec.swift.o:/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/Hooks/SuiteHooks.swift.o:_TMC5Quick9QuickSpec: error: undefined reference to '_TFC6XCTest10XCTestCases16_allExpectationsGSaCS_17XCTestExpectation_'
/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/QuickSpec.swift.o:/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/Hooks/SuiteHooks.swift.o:_TMC5Quick9QuickSpec: error: undefined reference to '_TFC6XCTest10XCTestCasem16_allExpectationsGSaCS_17XCTestExpectation_'
/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/QuickSpec.swift.o:/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/Hooks/SuiteHooks.swift.o:_TMC5Quick9QuickSpec: error: undefined reference to '_TFC6XCTest10XCTestCaseg17_performanceMeterGSqCS_16PerformanceMeter_'
/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/QuickSpec.swift.o:/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/Hooks/SuiteHooks.swift.o:_TMC5Quick9QuickSpec: error: undefined reference to '_TFC6XCTest10XCTestCases17_performanceMeterGSqCS_16PerformanceMeter_'
/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/QuickSpec.swift.o:/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/Hooks/SuiteHooks.swift.o:_TMC5Quick9QuickSpec: error: undefined reference to '_TFC6XCTest10XCTestCasem17_performanceMeterGSqCS_16PerformanceMeter_'
/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/QuickSpec.swift.o:/Users/norio/github/swift-dev/SourceKitten/.build/release/Quick.build/Hooks/SuiteHooks.swift.o:_TMC5Quick9QuickSpec: error: undefined reference to '_TFC6XCTest10XCTestCasem20continueAfterFailureSb'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: link command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: build had 1 command failures
error: exit(1): /usr/bin/swift-build-tool -f /Users/norio/github/swift-dev/SourceKitten/.build/release.yaml
root@8aa2d088c462:/Users/norio/github/swift-dev/SourceKitten# 

Related to: #287 (comment)

@jpsim
Copy link
Owner

jpsim commented Oct 28, 2016

Related to an issue I filed last week: Quick/Quick#626

@wongzigii
Copy link

Carthage/Commandant#83 has been merged. This time I came across this error

error: The dependency graph could not be satisfied. The package (https://github.com/Quick/Nimble) with version tag in range (5.0.0..<5.0.1) is not found. Found tags ([5.1.0, 5.1.1])

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 a pull request may close this issue.

3 participants