Skip to content

CMake Error #8977

@brunomb91

Description

@brunomb91

I'm trying to run the hello_world sample, but I get these errors when I type cmake -GNinja -DBOARD=qemu_x86 ..:


CMake Deprecation Warning at /home/bruno_marques/zephyr/cmake/app/boilerplate.cmake:38 (cmake_pol
icy):                                                                                            
  The OLD behavior for policy CMP0000 will be removed from a future version                      
  of CMake.                                                                                      
                                                                                                 
  The cmake-policies(7) manual explains that the OLD behaviors of all                            
  policies are deprecated and that a policy should be set to OLD only under                      
  specific short-term circumstances.  Projects should be ported to the NEW                       
  behavior and not rely on setting a policy to OLD.                                              
Call Stack (most recent call first):                                                             
  CMakeLists.txt:2 (include)                                                                     
                                                                                                 
                                                                                                 
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.5.2", minimum required is "3.4
")                                                                                               
-- Selected BOARD qemu_x86                                                                       
Zephyr version: 1.12.99                                                                          
Parsing Kconfig tree in /home/bruno_marques/zephyr/Kconfig                                       
Using /home/bruno_marques/zephyr/boards/x86/qemu_x86/qemu_x86_defconfig as base                  
Merging /home/bruno_marques/zephyr/samples/hello_world/prj.conf                                  
/opt/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/i586-zephyr-elf/i586-zephyr-elf-gcc: 1: /op
t/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/i586-zephyr-elf/i586-zephyr-elf-gcc: Syntax er
ror: ")" unexpected                                                                              
CMake Error at /home/bruno_marques/zephyr/cmake/compiler/gcc.cmake:48 (string):                  
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to                     
  command.                                                                                       
Call Stack (most recent call first):                                                             
  /home/bruno_marques/zephyr/cmake/toolchain.cmake:40 (include)                                  
  /home/bruno_marques/zephyr/cmake/app/boilerplate.cmake:250 (include)                           
  CMakeLists.txt:2 (include)                                                                     
                                                                                                 
                                                                                                 
/opt/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/i586-zephyr-elf/i586-zephyr-elf-gcc: 1: /op
t/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/i586-zephyr-elf/i586-zephyr-elf-gcc: Syntax er
ror: ")" unexpected                                                                              
CMake Error at /home/bruno_marques/zephyr/cmake/compiler/gcc.cmake:48 (string):                  
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to                     
  command.                                                                                       
Call Stack (most recent call first):                                                             
  /home/bruno_marques/zephyr/cmake/toolchain.cmake:40 (include)                                  
  /home/bruno_marques/zephyr/cmake/app/boilerplate.cmake:250 (include)                           
  CMakeLists.txt:2 (include)                                                                     
                                                                                                 
                                                                                                 
/opt/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/i586-zephyr-elf/i586-zephyr-elf-gcc: 1: /op
t/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/i586-zephyr-elf/i586-zephyr-elf-gcc: Syntax er
ror: ")" unexpected                                                                              
CMake Error at /home/bruno_marques/zephyr/cmake/extensions.cmake:1081 (message):                 
  No such file or directory: LIBGCC_FILE_NAME: ''                                                
Call Stack (most recent call first):                                                             
  /home/bruno_marques/zephyr/cmake/compiler/gcc.cmake:100 (assert_exists)                        
  /home/bruno_marques/zephyr/cmake/toolchain.cmake:40 (include)                                  
  /home/bruno_marques/zephyr/cmake/app/boilerplate.cmake:250 (include)                           
  CMakeLists.txt:2 (include)                                                                     
                                                                                                 
-- Configuring incomplete, errors occurred!           

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions