Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2016 13:30:06 -0700
From:      "K. Macy" <kmacy@freebsd.org>
To:        Volodymyr Kostyrko <arcade@b1t.name>
Cc:        "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   Re: External toolchain support broken for devel/llvm38 but not devel/llvm37
Message-ID:  <CAHM0Q_O8wNVWMBrUYPQ=xXjwJ-7Y8BUrZCGt6NcNuYH3-rmwNA@mail.gmail.com>
In-Reply-To: <57C52BDD.9020207@b1t.name>
References:  <156d96ebba6.d2524daa80643.7192912559150916238@nextbsd.org> <57C52BDD.9020207@b1t.name>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, August 29, 2016, Volodymyr Kostyrko <arcade@b1t.name> wrote:

> Matthew Macy wrote:
>
>> It looks like there is something broken with the devel/llvm38 port or
>> external toolchain support has regressed:
>>
>>
>> This works:
>> make  XCC=/usr/local/bin/clang37 XCXX=/usr/local/bin/clang++37
>> XCPP=/usr/local/bin/clang-cpp37  buildworld -j12 -s
>>
>> This fails:
>>   make  XCC=/usr/local/bin/clang38 XCXX=/usr/local/bin/clang++38
>> XCPP=/usr/local/bin/clang-cpp38 buildworld -j12 -s
>>
>> with:
>>
>> /home/mmacy/devel/build/mnt/storage/mmacy/devel/drm-next-merge/tmp/usr/bin/ld:
>> /usr/local/llvm38/bin/../lib/clang/3.8.1/lib/freebsd/libclan
>> g_rt.ubsan_standalone-x86_64.a: No such file: No such file or directory
>> clang-3.8: error: linker command failed with exit code 1 (use -v to see
>> invocation)
>>
>
> I second this - I also faced it. I think this is not a problem with a
> ports but rather with a build as correspondent files can be found in
> /usr/obj under /usr/obj/usr/src/tmp/usr/lib/clang/3.8.0/lib/freebsd/.
> Looks like this files are compiled during build but taken from compilers's
> directory. Linking 'em to the target directory makes build succeed.


The point of using the external toolchain for me is to bypass building
clang in src. ~31 of the ~47 minutes in buildworld are spent compiling
pieces of llvm/clang. I'd much rather fix the ports than make buildworld
require additional work. For the moment I've disconnected the two pieces
that fail: svn and libc/tests. They don't really belong in base any more
than git and piglit do.


>
> --
> Sphinx of black quartz judge my vow.
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHM0Q_O8wNVWMBrUYPQ=xXjwJ-7Y8BUrZCGt6NcNuYH3-rmwNA>