[swift-users] swift build linking / Ubuntu

Matt Kolb kolb722 at gmail.com
Thu Dec 3 13:33:44 CST 2015


Hello!

I was very excited over the open-sourcing of swift today, and immediately
downloaded the distribution for Ubuntu. In following:

mak at nibbler ~/Documents/github/mkolb/Hello
% tree
.
├── Package.swift
└── Sources
       └── main.swift

1 directory, 2 files
mak at nibbler ~/Documents/github/mkolb/Hello % cat Sources/main.swift
print("Hello, jabrone!")
mak at nibbler ~/Documents/github/mkolb/Hello %

However, upon attempting to build the package, I receive the following
error during linking:

mak at nibbler ~/Documents/github/mkolb/Hello
% swift build -v
/home/mak/Documents/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu15.10/usr/bin/swiftc
-o /home/mak/Documents/github/mkolb/Hello/.build/debug/Hello
/home/mak/Documents/github/mkolb/Hello/.build/debug/Hello.o/Sources/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/mak/Documents/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu15.10/usr/bin/swift-build-tool",
"-v", "-f",
"/home/mak/Documents/github/mkolb/Hello/.build/debug/Hello.o/llbuild.yaml"]

Being brand new to this toolchain, and being as the archives are empty, I
figured I'd post this question. Thanks for any help!

mak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151203/4281f793/attachment.html>


More information about the swift-users mailing list