the latest version of Clang/LLVM for the world and kernel

deeptech71 deeptech71 at
Wed Feb 27 15:25:37 UTC 2013

Excluding the build errors arising from code becoming incompatible with old headers [1], the use of the latest version of Clang/LLVM for the world and kernel is mostly hitch-free, if I

     (1)remove, from the Clang installation, the headers that are already available in /usr/include, ie.,
         $ cd /home/me/my_compilers/lib/clang/3.3/include
         $ rm float.h iso646.h limits.h tgmath.h and varargs.h
         $ rm stdalign.h stdarg.h stdbool.h stddef.h stdint.h stdnoreturn.h
     (2) replace -fformat-extensions with -Wno-error-format in sys/conf/

On 02/15/2013 16:57, Dimitry Andric wrote:
> On 2013-02-15 14:26, deeptech71 wrote:
>> During ``make installworld'':
>> * btxld: Command not found.
>> I had to append not only ``btxld'', but also ``ls dd cp'', to the ITOOLS variable in Makefile.inc1.
> There are apparently several things that can trigger that btxld error,
> but the usual one is that your system clock is out of whack.  I have
> never researched it too deeply; maybe somebody else can chip in here.

I did find my system clock "out of whack", but I've already fixed that weeks ago. I get the same error now. I don't recall getting the error when I was using the compiler in ${WORLDTMP} [1].

Also, there are still some eye-popping warnings (-Warray-bounds, -Wsizeof-pointer-memaccess, -Wuninitialized, -Wunsequenced) not apparently "fixed" yet.


More information about the freebsd-current mailing list