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-81] Cant Build Hello World on Ubuntu 14.04 #5336

Closed
colemancda opened this issue Dec 6, 2015 · 1 comment
Closed

[SR-81] Cant Build Hello World on Ubuntu 14.04 #5336

colemancda opened this issue Dec 6, 2015 · 1 comment
Assignees
Labels

Comments

@colemancda
Copy link

Previous ID SR-81
Radar None
Original Reporter @colemancda
Type Bug
Status Closed
Resolution Cannot Reproduce

Attachment: Download

Environment

Ubuntu 14.04 VMWare Fusion

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

md5: e77125661a1335083d5fd3afd9f39af0

relates to:

  • SR-60 exit status 127 when compiling a C dependency

Issue Description:

I tried to write a simple hello world command line executable to test Swift. The Swift build command exits with linker error 127.

Log: (Jira will detect "PATH" as a macro, ignore it)

coleman@ubuntu:export PATH='/home/coleman/Swift/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04/usr/bin':"${PATH}"
coleman@ubuntu:~/Swift/HelloWorld$ swift build -v
/home/coleman/Swift/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04/usr/bin/swiftc -module-name HelloWorld -incremental -emit-dependencies -emit-module -emit-module-path /home/coleman/Swift/HelloWorld/.build/debug/HelloWorld.swiftmodule -output-file-map /home/coleman/Swift/HelloWorld/.build/debug/HelloWorld.o/HelloWorld/output-file-map.json -c /home/coleman/Swift/HelloWorld/main.swift -I /home/coleman/Swift/HelloWorld/.build/debug -j8 -Onone -g -I /usr/local/include
/home/coleman/Swift/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04/usr/bin/swiftc -o /home/coleman/Swift/HelloWorld/.build/debug/HelloWorld /home/coleman/Swift/HelloWorld/.build/debug/HelloWorld.o/main.swift.o -L/usr/local/lib
<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): ["/home/coleman/Swift/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04/usr/bin/swift-build-tool", "-v", "-f", "/home/coleman/Swift/HelloWorld/.build/debug/HelloWorld.o/llbuild.yaml"]

I've attached the simple project.

@colemancda
Copy link
Author

I have no idea what was wrong, but nuking my VM and reinstalling Ubuntu fixed it.

@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