Skip to content

Unable to build LVGL samples on Ubuntu 22.04 for native_sim #93943

@pdgendt

Description

@pdgendt

Describe the bug

When trying to build for example samples/modules/lvgl/demos for native_sim/native/64 on Ubuntu 22.04 this fails because of an undefined reference to strlcpy.

Regression since: #92898

Regression

  • This is a regression.

Steps to reproduce

Tested on a docker instance

docker run -it ubuntu:22.04

After following the getting started guide run

west build -p -b native_sim/native/64 samples/modules/lvgl/demos/

Relevant log output

[519/521] Linking C executable zephyr/zephyr.elf
Generating files from /root/zephyrproject/zephyr/build/zephyr/zephyr.elf for board: native_sim
[520/521] Building native simulator runner, and linking final executable
FAILED: zephyr/CMakeFiles/native_runner_executable zephyr/zephyr.exe /root/zephyrproject/zephyr/build/zephyr/CMakeFiles/native_runner_executable /root/zephyrproject/zephyr/build/zephyr/zephyr.exe
cd /root/zephyrproject/zephyr/build/zephyr && /usr/bin/make -f /root/zephyrproject/zephyr/scripts/native_simulator/Makefile all --warn-undefined-variables -r NSI_CONFIG_FILE=/root/zephyrproject/zephyr/build/zephyr/NSI/nsi_config
/usr/bin/ld: /root/zephyrproject/zephyr/build/zephyr/NSI/root/zephyrproject/zephyr/build/zephyr/zephyr.elf.loc_cpusw.o: undefined reference to symbol 'strlcpy@@LIBBSD_0.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libbsd.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [/root/zephyrproject/zephyr/scripts/native_simulator/Makefile:142: /root/zephyrproject/zephyr/build/zephyr/zephyr.exe] Error 1
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /root/zephyrproject/zephyr/build

Impact

Annoyance – Minor irritation; no significant impact on usability or functionality.

Environment

  • OS: Ubuntu 22.04
  • Toolchain: Zephyr SDK 0.17.2
  • Commit: 96d062a

Additional Context

No response

Metadata

Metadata

Assignees

Labels

area: LVGLLight and Versatile Graphics Library Supportarea: native portHost native arch port (native_sim)bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions