Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 649922

Summary: sys-devel/clang: wrong chost prefix
Product: Gentoo Linux Reporter: Alexey Korepanov <kaikaikai>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: kaikaikai
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info clang
build.log compressed

Description Alexey Korepanov 2018-03-08 14:50:33 UTC
Created attachment 522944 [details]
emerge --info clang

Hi, my make.conf defines 
CHOST=aarch64-linux-gnu

With clang-5.0.1, the binaries are installed instead with 
aarch64-unknown-linux-gnu prefix. This breaks compilation
of clang-dependent packages.
Comment 1 Alexey Korepanov 2018-03-08 14:52:41 UTC
Created attachment 522946 [details]
build.log compressed
Comment 2 Alexey Korepanov 2018-03-08 14:54:00 UTC
compilation of sys-libs/compiler-rt breaks with

CMake Error at CMakeLists.txt:14 (project):
  The CMAKE_ASM_COMPILER:

    aarch64-linux-gnu-clang

  is not a full path and was not found in the PATH.
Comment 3 Alexey Korepanov 2018-03-08 16:37:37 UTC
I found out that I need to specify CHOST_arm64 in the make.conf.

This fixed the problem.

CHOST=aarch64-linux-gnu                                                                                                                                                                                            
CHOST_arm64="${CHOST}"