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

Bug 662108

Summary: sys-devel/clang doesn't install i586-pc-linux-gnu-clang{,++} when CHOST=i586-pc-linux-gnu
Product: Gentoo Linux Reporter: Calvin Walton <calvin.walton>
Component: Current packagesAssignee: LLVM support project <llvm>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Calvin Walton 2018-07-25 14:05:35 UTC
Created attachment 541006 [details]
emerge --info

This causes build failures in the runtime libraries, like the following in sys-libs/compiler-rt:
                                      
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: i586-pc-linux-gnu-clang
CMake Error at CMakeLists.txt:10 (project):
  The CMAKE_C_COMPILER:

    i586-pc-linux-gnu-clang
                                                                                                                                                                         
  is not a full path and was not found in the PATH.                                                                                                                      

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.

I've worked around the issue for now by manually creating the needed symlinks.
Comment 1 Sam 2019-03-12 20:14:17 UTC
Bumped into the same issue emerging compiler-rt:

loading initial cache file compiler-rt-6.0.1/work/compiler-rt-6.0.1_build/gentoo_common_config.cmake
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: x86_64-gentoo-linux-gnu-clang
CMake Error at CMakeLists.txt:10 (project):
  The CMAKE_C_COMPILER:

    x86_64-gentoo-linux-gnu-clang

  is not a full path and was not found in the PATH.


I noticed that the file work/compiler-rt-6.0.1_build/gentoo_toolchain.cmake contained my custom CHOST (I know.. because of reasons) in it, while clang installed symlinks with a generic/profile CHOST.
Comment 2 Sam 2019-03-12 20:16:24 UTC
This may be related to bugs #616566 and #651908 and seems caused by clang ebuild not taking custom CHOST into account when installing symlinks.