Hello folks,
I got a situation where I need to compile FreeBSD 14 Current from an old source (from 3 to 5 months ago) but I am getting multiple errors related to the last changes involving CLANG/LLVM16, like the explanation below:
Clang 16 introduced a warning that "implicit truncation from 'int' to a
one-bit wide bit-field changes value from 1 to -1".
LLVM15 has no issues with it. Knowing that, I am trying to override the native LLVM16 by LLVM15 with no success.
I tried modifying the /etc/make.conf like below:
I also tried to change the PATH env, pointing to /usr/local/llvm15/bin before the default /usr/bin:/usr/sbin:/bin and etc.
When I do that, the compilation process starts complaining about missing headers and include files.
What I am missing here? Any help is very welcome!!!
Thanks!!!
Fabricio.
I got a situation where I need to compile FreeBSD 14 Current from an old source (from 3 to 5 months ago) but I am getting multiple errors related to the last changes involving CLANG/LLVM16, like the explanation below:
Clang 16 introduced a warning that "implicit truncation from 'int' to a
one-bit wide bit-field changes value from 1 to -1".
LLVM15 has no issues with it. Knowing that, I am trying to override the native LLVM16 by LLVM15 with no success.
I tried modifying the /etc/make.conf like below:
Code:
CC=/usr/local/llvm15/bin/clang-15
CXX=/usr/local/llvm15/bin/clang++
CPP=/usr/local/llvm15/bin/clang-cpp
DEFAULT_VERSIONS+=llvm=15
I also tried to change the PATH env, pointing to /usr/local/llvm15/bin before the default /usr/bin:/usr/sbin:/bin and etc.
When I do that, the compilation process starts complaining about missing headers and include files.
What I am missing here? Any help is very welcome!!!
Thanks!!!
Fabricio.