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-35] Cannot find -lstdc++ #5404
Comments
I am unable to reproduce. Can you run: Also, what is the output of: |
Comment by Huynh Huu Nghia (JIRA) I am try re-run with command Hello$ dpkg -l | grep -i stdc |
Can you run: /home1/dtcang/Toolchains/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04/usr/bin/swiftc -o /home1/dtcang/Desktop/Hello/.build/debug/Hello /home1/dtcang/Desktop/Hello/.build/debug/Hello.o/Sources/main.swift.o /home1/dtcang/Desktop/Hello/.build/debug/Hello.o/Sources/Greeter.swift.o -L/usr/local/lib -v and paste the output? It should show the invocation of clang++ it is using to try to link. Can you also try: clang++ -shared -x c /dev/null -o /dev/null -lstdc++ which should succeed and verify that your system clang++ is capable of linking. If that doesn't work, this isn't a Swift specific issue... |
bump. |
Closing due to age. Hopefully this has resolved itself due to the copious number of bug fixes that have landed. |
Attachment: Download
Environment
Ubuntu 14.04
Additional Detail from JIRA
md5: 14b6eab75b353f7c891561e8af05d8ea
Issue Description:
Build fails when following the "getting started" on Ubuntu 14.04
I got issue:
~/Desktop/Hello$ swift build
Linking Executable: .build/debug/Hello
/usr/bin/ld: cannot find -lstdc++
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
swift-build: exit(1): ["/home1/dtcang/Toolchains/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04/usr/bin/swift-build-tool", "-f", "/home1/dtcang/Desktop/Hello/.build/debug/Hello.o/llbuild.yaml"]
The text was updated successfully, but these errors were encountered: