Skip to content

README.md Error message #268

@daylong-com

Description

@daylong-com

When I used the command to build, a compilation error occurred.

❯ west build -b native_posix samples/subsys/display/cfb -d build
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /workdir/zephyr-sdk/samples/subsys/display/cfb
-- CMake version: 3.28.3
-- Found Python3: /opt/python/venv/bin/python3 (found suitable version "3.12.3", minimum required is "3.10") found components: Interpreter 
-- Cache files will be written to: /home/user/.cache/zephyr
-- Zephyr version: 4.2.99 (/workdir/zephyr-sdk)
-- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
No board named 'native_posix' found. Did you mean:

native_sim

Run 'west boards' for the full list.
CMake Error at /workdir/zephyr-sdk/cmake/modules/boards.cmake:225 (message):
  Invalid BOARD; see above.
Call Stack (most recent call first):
  /workdir/zephyr-sdk/cmake/modules/zephyr_default.cmake:131 (include)
  /workdir/zephyr-sdk/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /workdir/zephyr-sdk/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/opt/python/venv/bin/python3 -B/workdir/zephyr-sdk/build -GNinja -DBOARD=native_posix -S/workdir/zephyr-sdk/samples/subsys/display/cfb

Until I made the change to:

❯ west build -b native_sim samples/subsys/display/cfb -d build
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: /workdir/zephyr-sdk/samples/subsys/display/cfb
-- CMake version: 3.28.3
-- Cache files will be written to: /home/user/.cache/zephyr
-- Zephyr version: 4.2.99 (/workdir/zephyr-sdk)
-- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
-- Board: native_sim, qualifiers: native
-- Found host-tools: zephyr 0.17.4 (/opt/toolchains/zephyr-sdk-0.17.4)
-- Found toolchain: host (gcc/ld)
-- Found Dtc: /opt/toolchains/zephyr-sdk-0.17.4/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.7.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /workdir/zephyr-sdk/boards/native/native_sim/native_sim.dts
-- Generated zephyr.dts: /workdir/zephyr-sdk/build/zephyr/zephyr.dts
-- Generated pickled edt: /workdir/zephyr-sdk/build/zephyr/edt.pickle
-- Generated devicetree_generated.h: /workdir/zephyr-sdk/build/zephyr/include/generated/zephyr/devicetree_generated.h

warning: STDOUT_CONSOLE (defined at lib/libc/Kconfig:169) was assigned the value 'y' but got the
value 'n'. Check these unsatisfied dependencies: (!(NATIVE_LIBRARY && EXTERNAL_LIBC)) (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_STDOUT_CONSOLE and/or look up
STDOUT_CONSOLE in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.

Parsing /workdir/zephyr-sdk/Kconfig
Loaded configuration '/workdir/zephyr-sdk/boards/native/native_sim/native_sim_defconfig'
Merged configuration '/workdir/zephyr-sdk/samples/subsys/display/cfb/prj.conf'
Configuration saved to '/workdir/zephyr-sdk/build/zephyr/.config'
Kconfig header saved to '/workdir/zephyr-sdk/build/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: /usr/bin/ld.bfd (found version "2.42") 
-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") 
-- Checking for one of the modules 'sdl2'
-- Using ccache: /usr/local/bin/ccache
-- Found gen_kobject_list: /workdir/zephyr-sdk/scripts/build/gen_kobject_list.py
-- Configuring done (5.4s)
-- Generating done (0.0s)
-- Build files have been written to: /workdir/zephyr-sdk/build
-- west build: building application
[1/104] Preparing syscall dependency handling

[3/104] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.2.99 (/workdir/zephyr-sdk), build: v4.2.0-3775-g377926ca0d3a
[102/104] Linking C executable zephyr/zephyr.elf
Generating files from /workdir/zephyr-sdk/build/zephyr/zephyr.elf for board: native_sim
[104/104] Running utility command for native_runner_executable
❯ west build -t run
-- west build: running target run
[2/3] cd /workdir/zephyr-sdk/build && /workdir/zephyr-sdk/build/zephyr/zephyr.exe
*** Booting Zephyr OS build v4.2.0-3775-g377926ca0d3a ***
Initialized sdl_dc
[00:00:00.000,000] <dbg> cfb: cfb_framebuffer_init: number of fonts 3
font width 10, font height 16
font width 15, font height 24
font width 20, font height 32
x_res 320, y_res 240, ppt 8, rows 30, cols 320
^C
Stopped at 36.660s
ninja: build stopped: interrupted by user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions