[Bug 223551] for external toolchain support, X prefix is not setting build utils for make buildworld
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Nov 10 22:32:57 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223551
--- Comment #8 from sid at bsdmail.com ---
Whenever installing world with clang from ports, the error message
/usr/local/bin/clang40: basename: not found
/usr/local/bin/clang40: /usr/local/llvm40/bin/:Permission denied
would pop up, and a back up kernel has to be chosen to reboot. Rebuilding the
kernel again, fixes that. (This has always been an issue with llvm40 and llvm50
from ports)
Now I will try this, hoping it will take care of when the compiler looks for a
specific file or permission:
CC= /usr/local/llvm40/bin/clang
XCC= /usr/local/llvm40/bin/clang
CXX= /usr/local/llvm40/bin/clang++
XCXX= /usr/local/llvm40/bin/clang++
CPP= /usr/local/llvm40/bin/clang-cpp
XCPP= /usr/local/llvm40/bin/clang-cpp
COMPILER_TYPE= clang
X_COMPILER_TYPE=clang
CROSS_BINUTILS_PREFIX=/var/empty
LD= /usr/local/llvm40/bin/ld.lld
XLD= /usr/local/llvm40/bin/ld.lld
NM= /usr/local/llvm40/bin/llvm-nm
XNM= /usr/local/llvm40/bin/llvm-nm
OBJECTDUMP= /usr/local/llvm40/bin/llvm-objdump
XOBJECTDUMP= /usr/local/llvm40/bin/llvm-objdump
STRINGS= /usr/local/llvm40/bin/llvm-strings
XSTRINGS= /usr/local/llvm40/bin/llvm-strings
This may cause a problem for when adding the filename without a full directory,
but it needs to be tried. XAS, XAR and XRANLIB don't work at the moment.
Also, CC, XCC, and others with and without the X prefix affect the compiler and
the compiler's directory for kernel build. The X prefix seems to be
supplementary for all builds: kernel, world, and ports.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list