[swift-users] build failure on FreeBSD
dccitaliano at gmail.com
Sat Dec 26 21:40:12 CST 2015
On Sat, Dec 26, 2015 at 6:50 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> + 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
>> FAILED: : && /usr/local/bin/clang++36 -f .....
>> 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,
More information about the swift-users