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-1441] [SwiftPM] Xcode linker error in Kitura based app using --generate-xcode in Xcode Trunk Development 05-03 #5377

Closed
swift-ci opened this issue May 8, 2016 · 3 comments
Assignees
Labels

Comments

@swift-ci
Copy link
Contributor

swift-ci commented May 8, 2016

Previous ID SR-1441
Radar None
Original Reporter dsperling (JIRA User)
Type Bug
Status Closed
Resolution Done

Attachment: Download

Environment

Xcode 7.3.1
OSX 10.11.4
Xcode Trunk Development Toolchain May 3, 2016

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee @aciidb0mb3r
Priority Medium

md5: 05e058d9988dbe85c3414c1831414faa

Issue Description:

Xcode produces the following Linker error with a .xcodeproj generated from"swift build -X":

ld: library not found for -lCHttpParser for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This works when the .xcodeproj is created with the 04-25 Toolchain.

Steps to reproduce:

  • Unzip attached Hello world project

  • Switch to the 04-25 toolchain in Terminal and run "xcode build -X"

  • Run Xcode. Switch to the 05-03 Toolchain. Compile and link. Everything works.

  • Note: Compiling requires 05-03 as Kitura 0.13 only supports 05-03.

  • Go back to the Terminal and switch to the 05-03 toolchain

  • run "xcode build -X"

  • Open Xcode and do a "Clean Build Folder"

  • Compile and link. A linker error occurs in KituraNet linking CHTTPParser

The issue is not root caused yet, but here is what is known:

  1. "swift build -X" in 04-25 produces a .xcodeproj that links

  2. The failed module in Kirura, CHTTPParser, is not a module with Swift code, but rather .c code.

  3. Other .so libraries in Kitura do link fine

@ankitspd
Copy link
Member

ankitspd commented May 8, 2016

#330

@swift-ci
Copy link
Contributor Author

swift-ci commented May 8, 2016

Comment by Dave Sperling (JIRA)

Confirmed fix in pull 330.

@ankitspd
Copy link
Member

ankitspd commented May 9, 2016

cpigat (JIRA User) why re-opened?

@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

2 participants