kraj / meta-clang

Clang C/C++ cross compiler and runtime for OpenEmbedded/Yocto Project
MIT License
151 stars 192 forks source link

libclc: Add toolchain component paths #950

Closed kraj closed 1 month ago

kraj commented 1 month ago

cmake complains otherwise toolchain incomplete!


Contributor checklist

Reviewer Guidelines

hieunv0828 commented 1 month ago

Hi @kraj

I've got same problem when using the latest master branch. Is this a PR to revert the commit https://github.com/kraj/meta-clang/commit/539700354a4236c6bf233eb5e7ff00b995547de9? But it seems missing _-Dclc_compin and _-Dll_compin which would cause similar issues

-Dclc_comp_in:FILEPATH=${OECMAKE_SOURCEPATH}/cmake/CMakeCLCCompiler.cmake.in \
-Dll_comp_in:FILEPATH=${OECMAKE_SOURCEPATH}/cmake/CMakeLLAsmCompiler.cmake.in \

Errors:

CMake Error: File /home/hieunv/build/build-webos/BUILD/work-shared/llvm-project-source-18.1.6-r0/llvm-project-18.1.6.src/libclc/clc_comp_in-NOTFOUND does not exist.
CMake Error at cmake/CMakeDetermineCLCCompiler.cmake:17 (configure_file):                                                                                                                   
  configure_file Problem configuring file                                                     
Call Stack (most recent call first):                                                                                                                                                        
  CMakeLists.txt:106 (enable_language)                                                        

CMake Error: Could not find cmake module file: /home/hieunv/build/build-webos/BUILD/work/qemux86_64-webos-linux/libclc/18.1.6/build/CMakeFiles/3.28.3/CMakeCLCCompiler.cmake                
CMake Error: File /home/hieunv/build/build-webos/BUILD/work-shared/llvm-project-source-18.1.6-r0/llvm-project-18.1.6.src/libclc/ll_comp_in-NOTFOUND does not exist.                         
CMake Error at cmake/CMakeDetermineLLAsmCompiler.cmake:23 (configure_file):                   
  configure_file Problem configuring file
Call Stack (most recent call first):    
  CMakeLists.txt:106 (enable_language)
  ...

I've tested it with https://github.com/hieunv0828/meta-clang/commit/ffa586221f639d105ffcacf3fbf1cb1cd8f692ed

Thanks

kraj commented 1 month ago

Hi @kraj

I've got same problem when using the latest master branch. Is this a PR to revert the commit 5397003? But it seems missing _-Dclc_compin and _-Dll_compin which would cause similar issues

-Dclc_comp_in:FILEPATH=${OECMAKE_SOURCEPATH}/cmake/CMakeCLCCompiler.cmake.in \
-Dll_comp_in:FILEPATH=${OECMAKE_SOURCEPATH}/cmake/CMakeLLAsmCompiler.cmake.in \

Errors:

CMake Error: File /home/hieunv/build/build-webos/BUILD/work-shared/llvm-project-source-18.1.6-r0/llvm-project-18.1.6.src/libclc/clc_comp_in-NOTFOUND does not exist.
CMake Error at cmake/CMakeDetermineCLCCompiler.cmake:17 (configure_file):                                                                                                                   
  configure_file Problem configuring file                                                     
Call Stack (most recent call first):                                                                                                                                                        
  CMakeLists.txt:106 (enable_language)                                                        

CMake Error: Could not find cmake module file: /home/hieunv/build/build-webos/BUILD/work/qemux86_64-webos-linux/libclc/18.1.6/build/CMakeFiles/3.28.3/CMakeCLCCompiler.cmake                
CMake Error: File /home/hieunv/build/build-webos/BUILD/work-shared/llvm-project-source-18.1.6-r0/llvm-project-18.1.6.src/libclc/ll_comp_in-NOTFOUND does not exist.                         
CMake Error at cmake/CMakeDetermineLLAsmCompiler.cmake:23 (configure_file):                   
  configure_file Problem configuring file
Call Stack (most recent call first):    
  CMakeLists.txt:106 (enable_language)
  ...

I've tested it with hieunv0828@ffa5862

Thanks

@hieunv0828 thanks for testing out. I was/am trying to come up with a solution that works with both clang18 and upcoming clang19 so in the way it broke down clang18 I guess. I have uploaded a v2 and hopefully that will fix it.