nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

Samples not compiling for board type qemu_x86 on Ubuntu 20.04

After following the instructions in nRF Connect for Desktop v3.10.0 on an Ubuntu 20.04 machine,  the samples are failing to compile for the qemu_x86 board type. The error reported in the CMakeError.log file is "arm-none-eabi-gcc: error: unrecognized command line option '-m32'; did you mean '-mbe32'?. 

For example:

(ncs) pgardner@ubuntu:~/ncs/zephyr$ west build -b qemu_x86 samples/hello_world/
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/pgardner/ncs/zephyr/samples/hello_world
-- Found Python3: /home/pgardner/anaconda3/bin/python3.9 (found suitable exact version "3.9.7") found components: Interpreter
-- Cache files will be written to: /home/pgardner/.cache/zephyr
-- Zephyr version: 3.0.99 (/home/pgardner/ncs/zephyr)
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
-- Board: qemu_x86
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/opt/gnuarmemb/gcc-arm-none-eabi-9-2019-q4-major)
-- Found BOARD.dts: /home/pgardner/ncs/zephyr/boards/x86/qemu_x86/qemu_x86.dts
-- Generated zephyr.dts: /home/pgardner/ncs/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/pgardner/ncs/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /home/pgardner/ncs/zephyr/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /home/pgardner/ncs/zephyr/build/zephyr/dts.cmake
Parsing /home/pgardner/ncs/zephyr/Kconfig
Loaded configuration '/home/pgardner/ncs/zephyr/boards/x86/qemu_x86/qemu_x86_defconfig'
Merged configuration '/home/pgardner/ncs/zephyr/samples/hello_world/prj.conf'
Configuration saved to '/home/pgardner/ncs/zephyr/build/zephyr/.config'
Kconfig header saved to '/home/pgardner/ncs/zephyr/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /opt/gnuarmemb/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc
CMake Error at /home/pgardner/ncs/zephyr/cmake/modules/extensions.cmake:2032 (message):
Assertion failed: The toolchain is unable to build a dummy C file. See
CMakeError.log.
Call Stack (most recent call first):
/home/pgardner/ncs/zephyr/cmake/modules/kernel.cmake:142 (assert)
/home/pgardner/ncs/zephyr/cmake/modules/zephyr_default.cmake:130 (include)
/home/pgardner/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:45 (include)
/home/pgardner/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:70 (include_boilerplate)
CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/pgardner/ncs/zephyr/build/CMakeFiles/CMakeOutput.log".
See also "/home/pgardner/ncs/zephyr/build/CMakeFiles/CMakeError.log".
FATAL ERROR: command exited with status 1: /home/pgardner/cmake/bin/cmake -DWEST_PYTHON=/home/pgardner/anaconda3/bin/python -B/home/pgardner/ncs/zephyr/build -S/home/pgardner/ncs/zephyr/samples/hello_world -GNinja -DBOARD=qemu_x86

Parents Reply Children
No Data
Related