On Sat, Dec 26, 2015 at 6:50 PM, Dmitri Gribenko <griboz...@gmail.com> wrote: > + Davide > > On Sat, Dec 26, 2015 at 11:11 PM, Dan Mack via swift-users > <swift-users@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: >>
This happens because the version of ld.bfd shipped with FreeBSD is too old. Also, gold doesn't support some linker script directives. I recommend you to install binutils from ports and set the ld.bfd from binutils as default linker. Eventually (hopefully soon), FreeBSD will switch to lld as default but until then, I think it might make sense to add a check in the build script to make sure the linker version is new enough. I'll prepare a patch in the next days. Let me know if you face other problems, -- Davide _______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users