-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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-22] build fails when following the "getting started" on Ubuntu 14.04 #42645
Comments
Please run 'sudo apt-get install clang'. |
Comment by H Wang (JIRA) Thanks! I just found out about missing via strace. 4996 execve("clang+", ["clang+", "/abyss/haohui/source.swift/Hello"..., " |
Comment by H Wang (JIRA) Needs clang installed. |
Note that we are considering adding a special case to the package manager to improve our diagnostics in this case, to make it more clear that this is just a case of missing "clang++". See: |
We have updated the getting started page to mention the clang requirement. |
I have also added a warning on build failure should clang++ not be detected in `PATH`. |
Environment
1:haohui@dell530n:~/source.swift/Hello[1019] 18:12:18
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"
1:haohui@dell530n:~/source.swift/Hello[1020] 18:14:48
$ ls Sources/
main.swift
1:haohui@dell530n:~/source.swift/Hello[1021] 18:15:45
$ cat Sources/main.swift
print("Hello, world!")
Additional Detail from JIRA
md5: 0cdbb920e39a03c96a783f1f4c28fd86
Issue Description:
1:haohui@dell530n:~/source.swift/Hello[1018] 18:12:08
$ swift build
Linking Executable: .build/debug/Hello
<unknown>:0: error: link command failed with exit code 127 (use -v to see invocation)
<unknown>:0: error: build had 1 command failures
swift-build: exit(1): ["/opt/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04/usr/bin/swift-build-tool", "-f", "/abyss/haohui/source.swift/Hello/.build/debug/Hello.o/llbuild.yaml"]
The text was updated successfully, but these errors were encountered: