Re: External toolchain support broken for devel/llvm38 but not devel/llvm37

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Tue, 30 Aug 2016 21:57:40 +0200
On 30 Aug 2016, at 05:12, Matthew Macy <mmacy_at_nextbsd.org> 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/libclang_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)

Looks like the llvm38 port didn't build the libclang_rt libraries.  These are needed for the sanitizers, and so on.

The llvm37 port does have these:

% ls -l llvm37/lib/clang/3.7.1/lib/freebsd
total 4188
-rw-r--r--  1 root  wheel  2083354 2016-07-12 05:08:14 libclang_rt.asan-i386.a
-rwxr-xr-x  1 root  wheel   705264 2016-07-12 05:09:27 libclang_rt.asan-i386.so*
-rw-r--r--  1 root  wheel     1620 2016-07-12 05:08:06 libclang_rt.asan-preinit-i386.a
-rw-r--r--  1 root  wheel    35914 2016-07-12 05:08:12 libclang_rt.asan_cxx-i386.a
-rw-r--r--  1 root  wheel   120524 2016-07-12 05:08:18 libclang_rt.builtins-i386.a
-rw-r--r--  1 root  wheel    33904 2016-07-12 05:08:19 libclang_rt.profile-i386.a
-rw-r--r--  1 root  wheel   417872 2016-07-12 05:08:19 libclang_rt.safestack-i386.a
-rw-r--r--  1 root  wheel   659270 2016-07-12 05:08:02 libclang_rt.ubsan_standalone-i386.a
-rw-r--r--  1 root  wheel    21234 2016-07-12 05:08:02 libclang_rt.ubsan_standalone_cxx-i386.a

-Dimitry


Received on Tue Aug 30 2016 - 17:58:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:07 UTC