[yocto] LLVM linking for custom recipe

Giordon Stark kratsg at gmail.com
Thu Jun 8 17:51:52 PDT 2017


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

LLVMConfig.cmake
llvm-config.cmake

However, I see

tmp/work/aarch64-poky-linux/llvm3.3/3.3-r0/llvm-3.3.src/cmake/modules/LLVM-Config.cmake

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.

Giordon

On Thu, Jun 8, 2017 at 4:37 PM Giordon Stark <kratsg at gmail.com> wrote:

> Hi Khem,
>
> 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.
>
> Giordon
>
> On Thu, Jun 8, 2017 at 3:47 PM Khem Raj <raj.khem at gmail.com> wrote:
>
>> On Thu, Jun 8, 2017 at 1:42 PM, Giordon Stark <kratsg at gmail.com> wrote:
>> > Hi,
>> >
>> > I have the following error message when trying to get LLVM linked up.
>> The
>> > problem is that I'm using a widely used science software called ROOT
>> > (https://root.cern.ch/) with the following minimal recipe at the moment
>> > (
>> https://github.com/kratsg/meta-l1calo/blob/master/recipes-core/root/root_6.04.12.bb
>> )
>> > however I get the following error...
>> >
>> > Any ideas?
>>
>> Look into meta-clang there are patches for cross compiling clang/llvm
>> https://github.com/kraj/meta-clang
>>
>> >
>> > Giordon
>> >
>> > | CMake Error at cmake/modules/SearchInstalledSoftware.cmake:662
>> > (find_package):
>> > |   By not providing "FindLLVM.cmake" in CMAKE_MODULE_PATH this project
>> has
>> > |   asked CMake to find a package configuration file provided by
>> "LLVM", but
>> > |   CMake did not find one.
>> > |
>> > |   Could not find a package configuration file provided by "LLVM" with
>> any
>> > of
>> > |   the following names:
>> > |
>> > |     LLVMConfig.cmake
>> > |     llvm-config.cmake
>> > |
>> > |   Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
>> > |   "LLVM_DIR" to a directory containing one of the above files.  If
>> "LLVM"
>> > |   provides a separate development package or SDK, be sure it has been
>> > |   installed.
>> > | Call Stack (most recent call first):
>> > |   CMakeLists.txt:58 (include)
>> > |
>> > |
>> > | -- Configuring incomplete, errors occurred!
>> > | See also
>> >
>> "/local/d4/poky/build/tmp/work/aarch64-poky-linux/root/6.04.12-r0/build/CMakeFiles/CMakeOutput.log".
>> > | See also
>> >
>> "/local/d4/poky/build/tmp/work/aarch64-poky-linux/root/6.04.12-r0/build/CMakeFiles/CMakeError.log".
>> > | WARNING:
>> >
>> /local/d4/poky/build/tmp/work/aarch64-poky-linux/root/6.04.12-r0/temp/run.do_configure.16761:1
>> > exit 1 from 'cmake ${OECMAKE_SITEFILE}
>> >
>> /local/d4/poky/build/tmp/work/aarch64-poky-linux/root/6.04.12-r0/root-6.04.12
>> > -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_BINDIR:PATH=bin
>> > -DCMAKE_INSTALL_SBINDIR:PATH=sbin
>> -DCMAKE_INSTALL_LIBEXECDIR:PATH=libexec
>> > -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc
>> > -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=../com
>> > -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var -DCMAKE_INSTALL_LIBDIR:PATH=lib
>> > -DCMAKE_INSTALL_INCLUDEDIR:PATH=include
>> > -DCMAKE_INSTALL_DATAROOTDIR:PATH=share -DCMAKE_INSTALL_SO_NO_EXE=0
>> >
>> -DCMAKE_TOOLCHAIN_FILE=/local/d4/poky/build/tmp/work/aarch64-poky-linux/root/6.04.12-r0/toolchain.cmake
>> > -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1
>> -Drootfit=ON
>> > -Dminuit2=ON -Dpython=ON -Dssl=ON -Dxrootd=ON -Dbuiltin_freetype=ON
>> > -Dbuiltin_llvm=OFF ${PACKAGECONFIG_CONFARGS} -Wno-dev'
>> > | ERROR: Function failed: do_configure (log file is located at
>> >
>> /local/d4/poky/build/tmp/work/aarch64-poky-linux/root/6.04.12-r0/temp/log.do_configure.16761)
>> > ERROR: Task
>> > (/local/d4/meta-l1calo/recipes-core/root/root_6.04.12.bb:do_configure)
>> > failed with exit code '1'
>> > NOTE: Tasks Summary: Attempted 1027 tasks of which 1024 didn't need to
>> be
>> > rerun and 1 failed.
>> >
>> > Summary: 1 task failed:
>> >   /local/d4/meta-l1calo/recipes-core/root/root_6.04.12.bb:do_configure
>> > Summary: There was 1 ERROR message shown, returning a non-zero exit
>> code.
>> >
>> >
>> > --
>> > _______________________________________________
>> > yocto mailing list
>> > yocto at yoctoproject.org
>> > https://lists.yoctoproject.org/listinfo/yocto
>> >
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170609/ae0f38e6/attachment.html>


More information about the yocto mailing list