Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2017 22:32:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-toolchain@FreeBSD.org
Subject:   [Bug 223551] for external toolchain support, X prefix is not setting build utils for make buildworld
Message-ID:  <bug-223551-29464-HDAlb3oI8T@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223551-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-223551-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223551

--- Comment #8 from sid@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 t=
he
kernel again, fixes that. (This has always been an issue with llvm40 and ll=
vm50
from ports)

Now I will try this, hoping it will take care of when the compiler looks fo=
r a
specific file or permission:

 CC=3D     /usr/local/llvm40/bin/clang
 XCC=3D    /usr/local/llvm40/bin/clang
 CXX=3D    /usr/local/llvm40/bin/clang++
 XCXX=3D   /usr/local/llvm40/bin/clang++
 CPP=3D    /usr/local/llvm40/bin/clang-cpp
 XCPP=3D   /usr/local/llvm40/bin/clang-cpp
 COMPILER_TYPE=3D  clang
 X_COMPILER_TYPE=3Dclang
 CROSS_BINUTILS_PREFIX=3D/var/empty
 LD=3D             /usr/local/llvm40/bin/ld.lld
 XLD=3D            /usr/local/llvm40/bin/ld.lld
 NM=3D             /usr/local/llvm40/bin/llvm-nm
 XNM=3D            /usr/local/llvm40/bin/llvm-nm
 OBJECTDUMP=3D     /usr/local/llvm40/bin/llvm-objdump
 XOBJECTDUMP=3D    /usr/local/llvm40/bin/llvm-objdump
 STRINGS=3D        /usr/local/llvm40/bin/llvm-strings
 XSTRINGS=3D       /usr/local/llvm40/bin/llvm-strings

This may cause a problem for when adding the filename without a full direct=
ory,
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223551-29464-HDAlb3oI8T>