[swift-users] build failure on FreeBSD

Dmitri Gribenko gribozavr at gmail.com
Sat Dec 26 17:50:09 CST 2015


+ Davide

On Sat, Dec 26, 2015 at 11:11 PM, Dan Mack via swift-users
<swift-users at swift.org> wrote:
> 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
>
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users



-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/


More information about the swift-users mailing list