Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649922 - sys-devel/clang: wrong chost prefix
Summary: sys-devel/clang: wrong chost prefix
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-08 14:50 UTC by Alexey Korepanov
Modified: 2018-03-08 16:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info clang (emerge.clang.info,5.58 KB, text/plain)
2018-03-08 14:50 UTC, Alexey Korepanov
Details
build.log compressed (build.log.tar.xz,67.90 KB, application/x-xz)
2018-03-08 14:52 UTC, Alexey Korepanov
Details

Note You need to log in before you can comment on or make changes to this bug.
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}"