[yocto] cmake toolchain file missing in SDK

Ang, Chin Huat chin.huat.ang at intel.com
Thu Jun 28 00:15:16 PDT 2018


Looks like the toolchain file is located in a separate package which is not included in the SDK, I've filed a bug on this:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=12827

--Chin Huat

________________________________________
From: yocto-bounces at yoctoproject.org [yocto-bounces at yoctoproject.org] on behalf of Guy Morand [guy at guy-morand.ch]
Sent: Wednesday, June 27, 2018 9:57 PM
To: yocto at yoctoproject.org
Subject: Re: [yocto] cmake toolchain file missing in SDK

If I copy the missing toolchain file
(meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake) manually
into the extracted SDK, this fixes the issue.

But why was it not deployed automatically by yocto?

Regards,

Guy


On 06/27/18 12:31, Guy Morand wrote:
> Hallo Yocto developpers!
>
> Since my last SDK release, I cannot cross compile applications with
> cmake. I'm using yocto sumo. I get this error:
>
> build$ cmake ../
> CMake Error at
> /opt/comet-linux/0.0.0-2018.06-last-guy/sysroots/x86_64-cometsdk-linux/usr/share/cmake-3.10/Modules/CMakeDetermineSystem.cmake:100
> (message):
>   Could not find toolchain file:
> /opt/comet-linux/0.0.0-2018.06-last-guy/sysroots/x86_64-cometsdk-linux/usr/share/cmake/OEToolchainConfig.cmake
>
> Call Stack (most recent call first):
>   CMakeLists.txt:2 (project)
>
>
> CMake Error: CMake was unable to find a build program corresponding to
> "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need
> to select a different build tool.
> CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
> CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
> -- Configuring incomplete, errors occurred!
>
> It seems that the folder "cmake" is missing:
>
> $ ls
> /opt/comet-linux/0.0.0-2018.06-last-guy/sysroots/x86_64-cometsdk-linux/usr/share/
> X11  aclocal  aclocal-1.15  autoconf  automake-1.15 ca-certificates
> cmake-3.10  device_table-minimal.txt  gdb gnu-config  libtool  locale
> mime  opkg  qemu
>
> However, it was working with a previous release ??!! And it seems to
> be installed in the cmake recipe:
>
> https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/cmake/cmake_3.10.3.bb#n38
>
>
> Has someone already faced this problem? What am I doing wrong?
>
> Kind regards,
>
> Guy
>

--
_______________________________________________
yocto mailing list
yocto at yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


More information about the yocto mailing list