<div dir="ltr">Looking into more details, I don't know or where bitbake tries to look for things as things get compiled (flags, environment, etc)... but the error message does say ROOT is looking for <br><br>LLVMConfig.cmake<div>llvm-config.cmake<br><br>However, I see </div><div><br></div><div>tmp/work/aarch64-poky-linux/llvm3.3/3.3-r0/llvm-3.3.src/cmake/modules/LLVM-Config.cmake<br></div><div><br></div><div>which is perhaps why it can't find it. I assume the output name here isn't 100% compatible, and I'm using meta-oe's llvm3.3. I'm just mostly stuck on CMake's default behavior here, I think.</div><div><br></div><div>Giordon</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jun 8, 2017 at 4:37 PM Giordon Stark <<a href="mailto:kratsg@gmail.com" target="_blank">kratsg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Khem,<div><br></div><div>Which recipe? My problem is that ROOT's CMake is unable to find the cross-compiled LLVM, and I'm not sure how to get it to find it.</div></div><div dir="ltr"><div><br></div><div>Giordon</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jun 8, 2017 at 3:47 PM Khem Raj <<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Jun 8, 2017 at 1:42 PM, Giordon Stark <<a href="mailto:kratsg@gmail.com" target="_blank">kratsg@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I have the following error message when trying to get LLVM linked up. The<br>
> problem is that I'm using a widely used science software called ROOT<br>
> (<a href="https://root.cern.ch/" rel="noreferrer" target="_blank">https://root.cern.ch/</a>) with the following minimal recipe at the moment<br>
> (<a href="https://github.com/kratsg/meta-l1calo/blob/master/recipes-core/root/root_6.04.12.bb" rel="noreferrer" target="_blank">https://github.com/kratsg/meta-l1calo/blob/master/recipes-core/root/root_6.04.12.bb</a>)<br>
> however I get the following error...<br>
><br>
> Any ideas?<br>
<br>
Look into meta-clang there are patches for cross compiling clang/llvm<br>
<a href="https://github.com/kraj/meta-clang" rel="noreferrer" target="_blank">https://github.com/kraj/meta-clang</a><br>
<br>
><br>
> Giordon<br>
><br>
> | CMake Error at cmake/modules/SearchInstalledSoftware.cmake:662<br>
> (find_package):<br>
> |   By not providing "FindLLVM.cmake" in CMAKE_MODULE_PATH this project has<br>
> |   asked CMake to find a package configuration file provided by "LLVM", but<br>
> |   CMake did not find one.<br>
> |<br>
> |   Could not find a package configuration file provided by "LLVM" with any<br>
> of<br>
> |   the following names:<br>
> |<br>
> |     LLVMConfig.cmake<br>
> |     llvm-config.cmake<br>
> |<br>
> |   Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set<br>
> |   "LLVM_DIR" to a directory containing one of the above files.  If "LLVM"<br>
> |   provides a separate development package or SDK, be sure it has been<br>
> |   installed.<br>
> | Call Stack (most recent call first):<br>
> |   CMakeLists.txt:58 (include)<br>
> |<br>
> |<br>
> | -- Configuring incomplete, errors occurred!<br>
> | See also<br>
> "/local/d4/poky/build/tmp/work/aarch64-poky-linux/root/6.04.12-r0/build/CMakeFiles/CMakeOutput.log".<br>
> | See also<br>
> "/local/d4/poky/build/tmp/work/aarch64-poky-linux/root/6.04.12-r0/build/CMakeFiles/CMakeError.log".<br>
> | WARNING:<br>
> /local/d4/poky/build/tmp/work/aarch64-poky-linux/root/6.04.12-r0/temp/run.do_configure.16761:1<br>
> exit 1 from 'cmake ${OECMAKE_SITEFILE}<br>
> /local/d4/poky/build/tmp/work/aarch64-poky-linux/root/6.04.12-r0/root-6.04.12<br>
> -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_BINDIR:PATH=bin<br>
> -DCMAKE_INSTALL_SBINDIR:PATH=sbin -DCMAKE_INSTALL_LIBEXECDIR:PATH=libexec<br>
> -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc<br>
> -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=../com<br>
> -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var -DCMAKE_INSTALL_LIBDIR:PATH=lib<br>
> -DCMAKE_INSTALL_INCLUDEDIR:PATH=include<br>
> -DCMAKE_INSTALL_DATAROOTDIR:PATH=share -DCMAKE_INSTALL_SO_NO_EXE=0<br>
> -DCMAKE_TOOLCHAIN_FILE=/local/d4/poky/build/tmp/work/aarch64-poky-linux/root/6.04.12-r0/toolchain.cmake<br>
> -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 -Drootfit=ON<br>
> -Dminuit2=ON -Dpython=ON -Dssl=ON -Dxrootd=ON -Dbuiltin_freetype=ON<br>
> -Dbuiltin_llvm=OFF ${PACKAGECONFIG_CONFARGS} -Wno-dev'<br>
> | ERROR: Function failed: do_configure (log file is located at<br>
> /local/d4/poky/build/tmp/work/aarch64-poky-linux/root/6.04.12-r0/temp/log.do_configure.16761)<br>
> ERROR: Task<br>
> (/local/d4/meta-l1calo/recipes-core/root/root_6.04.12.bb:do_configure)<br>
> failed with exit code '1'<br>
> NOTE: Tasks Summary: Attempted 1027 tasks of which 1024 didn't need to be<br>
> rerun and 1 failed.<br>
><br>
> Summary: 1 task failed:<br>
>   /local/d4/meta-l1calo/recipes-core/root/root_6.04.12.bb:do_configure<br>
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.<br>
><br>
><br>
> --<br>
> _______________________________________________<br>
> yocto mailing list<br>
> <a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><br>
> <a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><br>
><br>
</blockquote></div></blockquote></div></div>