Skip to content

Instantly share code, notes, and snippets.

@oberstet
Created November 21, 2020 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oberstet/5cf96cde06d289b8d70ca3e59c7daca8 to your computer and use it in GitHub Desktop.
Save oberstet/5cf96cde06d289b8d70ca3e59c7daca8 to your computer and use it in GitHub Desktop.
(cpy382_1) oberstet@intel-nuci7:~/scm/crossbario/st-device$ make build_minimal
cd ./zephyr && \
west build -p auto -b qemu_x86 samples/basic/minimal
-- west build: making build dir /home/oberstet/scm/crossbario/st-device/zephyr/build pristine
-- west build: generating a build system
Including boilerplate (Zephyr base): /home/oberstet/scm/crossbario/st-device/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/oberstet/scm/crossbario/st-device/zephyr/samples/basic/minimal
-- Zephyr version: 2.4.0 (/home/oberstet/scm/crossbario/st-device/zephyr)
-- Found Python3: /home/oberstet/cpy382_1/bin/python3 (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
-- Board: qemu_x86
-- Cache files will be written to: /home/oberstet/.cache/zephyr
-- Found toolchain: zephyr (/home/oberstet/zephyr-sdk-12)
-- Found dtc: /home/oberstet/zephyr-sdk-12/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/oberstet/scm/crossbario/st-device/zephyr/boards/x86/qemu_x86/qemu_x86.dts
-- Generated zephyr.dts: /home/oberstet/scm/crossbario/st-device/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/oberstet/scm/crossbario/st-device/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
Parsing /home/oberstet/scm/crossbario/st-device/zephyr/Kconfig
Loaded configuration '/home/oberstet/scm/crossbario/st-device/zephyr/boards/x86/qemu_x86/qemu_x86_defconfig'
Configuration saved to '/home/oberstet/scm/crossbario/st-device/zephyr/build/zephyr/.config'
Kconfig header saved to '/home/oberstet/scm/crossbario/st-device/zephyr/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/oberstet/zephyr-sdk-12/x86_64-zephyr-elf/bin/x86_64-zephyr-elf-gcc
CMake Deprecation Warning at /home/oberstet/scm/crossbario/st-device/modules/lib/civetweb/CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/oberstet/scm/crossbario/st-device/zephyr/build
-- west build: building application
[1/115] Preparing syscall dependency handling
[106/115] Linking C executable zephyr/zephyr_prebuilt.elf
Memory region Used Size Region Size %age Used
RAM: 98336 B 3 MB 3.13%
IDT_LIST: 80 B 2 KB 3.91%
[115/115] Linking C executable zephyr/zephyr.elf
cd ./zephyr && \
west build -p auto -b qemu_cortex_m3 samples/basic/minimal
-- west build: making build dir /home/oberstet/scm/crossbario/st-device/zephyr/build pristine
-- west build: generating a build system
Including boilerplate (Zephyr base): /home/oberstet/scm/crossbario/st-device/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/oberstet/scm/crossbario/st-device/zephyr/samples/basic/minimal
-- Zephyr version: 2.4.0 (/home/oberstet/scm/crossbario/st-device/zephyr)
-- Found Python3: /home/oberstet/cpy382_1/bin/python3 (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
-- Board: qemu_cortex_m3
-- Cache files will be written to: /home/oberstet/.cache/zephyr
-- Found toolchain: zephyr (/home/oberstet/zephyr-sdk-12)
-- Found dtc: /home/oberstet/zephyr-sdk-12/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/oberstet/scm/crossbario/st-device/zephyr/boards/arm/qemu_cortex_m3/qemu_cortex_m3.dts
-- Generated zephyr.dts: /home/oberstet/scm/crossbario/st-device/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/oberstet/scm/crossbario/st-device/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
Parsing /home/oberstet/scm/crossbario/st-device/zephyr/Kconfig
Loaded configuration '/home/oberstet/scm/crossbario/st-device/zephyr/boards/arm/qemu_cortex_m3/qemu_cortex_m3_defconfig'
Configuration saved to '/home/oberstet/scm/crossbario/st-device/zephyr/build/zephyr/.config'
Kconfig header saved to '/home/oberstet/scm/crossbario/st-device/zephyr/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/oberstet/zephyr-sdk-12/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Error at ../../../cmake/extensions.cmake:1557 (message):
Assertion failed: The toolchain is unable to build a dummy C file. See
CMakeError.log.
Call Stack (most recent call first):
../../../CMakeLists.txt:42 (assert)
-- Configuring incomplete, errors occurred!
See also "/home/oberstet/scm/crossbario/st-device/zephyr/build/CMakeFiles/CMakeOutput.log".
See also "/home/oberstet/scm/crossbario/st-device/zephyr/build/CMakeFiles/CMakeError.log".
FATAL ERROR: command exited with status 1: /snap/bin/cmake -DWEST_PYTHON=/home/oberstet/cpy382_1/bin/python3 -B/home/oberstet/scm/crossbario/st-device/zephyr/build -S/home/oberstet/scm/crossbario/st-device/zephyr/samples/basic/minimal -GNinja -DBOARD=qemu_cortex_m3
Makefile:102: recipe for target 'build_minimal_arm' failed
make: *** [build_minimal_arm] Error 1
(cpy382_1) oberstet@intel-nuci7:~/scm/crossbario/st-device$ cat /home/oberstet/scm/crossbario/st-device/zephyr/build/CMakeFiles/CMakeError.log
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /home/oberstet/zephyr-sdk-12/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
Build flags:
Id flags:
The output was:
1
/home/oberstet/zephyr-sdk-12/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.2.0/../../../../arm-zephyr-eabi/bin/ld: /home/oberstet/zephyr-sdk-12/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.2.0/../../../../arm-zephyr-eabi/lib/libc.a(lib_a-exit.o): in function `exit':
exit.c:(.text.exit+0x60): undefined reference to `_exit'
collect2: error: ld returned 1 exit status
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /home/oberstet/zephyr-sdk-12/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++
Build flags:
Id flags:
The output was:
1
/home/oberstet/zephyr-sdk-12/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.2.0/../../../../arm-zephyr-eabi/bin/ld: /home/oberstet/zephyr-sdk-12/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.2.0/../../../../arm-zephyr-eabi/lib/libc.a(lib_a-exit.o): in function `exit':
exit.c:(.text.exit+0x60): undefined reference to `_exit'
collect2: error: ld returned 1 exit status
(cpy382_1) oberstet@intel-nuci7:~/scm/crossbario/st-device$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment