https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223551

--- Comment #8 from s...@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.
_______________________________________________
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"

Reply via email to