[yocto] cmake toolchain file missing in SDK

Guy Morand guy at guy-morand.ch
Wed Jun 27 03:31:43 PDT 2018


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



More information about the yocto mailing list