[swift-users] build failure on FreeBSD

Dan Mack mack at macktronics.com
Sat Dec 26 16:11:37 CST 2015


Attempting to build swift from github from Dec 26th HEAD - after a few adjustments I have gotton to this point where :

   [475/486] Linking CXX shared library lib/swift/freebsd/x86_64/libswiftCore.so

   FAILED: : && /usr/local/bin/clang++36  -f .....
   /usr/bin/ld:/sw/src/build/Ninja-DebugAssert/swift-freebsd-x86_64/./lib/swift/freebsd/x86_64/swift.ld:10: syntax error

I put the whole paste in here if it is helpful:

   http://hastebin.com/amokolizir.coffee

I saw a bugzilla post on this but it wasn't clear from it what can be
done to solve the problem:
https://sourceware.org/bugzilla/show_bug.cgi?id=19326

So, I have a few of the binaries built but not quite there yet :-)
% uname -a
FreeBSD 11.0-CURRENT #0 r292747: Sat Dec 26 08:34:38 CST 2015

% ../build/Ninja-DebugAssert/swift-freebsd-x86_64/bin/swift --version
Swift version 2.2-dev (LLVM 3ebdbb2c7e, Clang f66c5bb67b, Swift 173fc871ff)
Target: x86_64-unknown-freebsd11.0

and again - same error, when it tries to link:

% cat hello.swift
print("hello world")

% ../build/Ninja-DebugAssert/swift-freebsd-x86_64/bin/swiftc hello.swift 
/usr/bin/ld:/sw/src/build/Ninja-DebugAssert/swift-freebsd-x86_64/lib/swift/freebsd/x86_64/swift.ld:10: syntax error
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)

This is on FreeBSD head, clang-3.6 for bootstrapping the swift process
and tip of the trees for all the swift code today.

Dan



More information about the swift-users mailing list