-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Labels
bugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bugMedium impact/importance bug
Description
Describe the bug
hello_world built with llvm crashes.
To Reproduce
- export ZEPHYR_TOOLCHAIN_VARIANT=llvm
- west build -b qemu_x86 samples/hello_world/ -t run
[117/118] To exit from QEMU enter: 'CTRL+a, x'[QEMU] CPU: qemu32,+nx,+pae
SeaBIOS (version rel-1.12.1-0-ga5cab58-dirty-20200625_115407-9426dddc0a1f-zephyr
)
Booting from ROM..FAILED: zephyr/CMakeFiles/run
cd /home/nashif/Work/zephyrproject/zephyr/build && /home/nashif/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/qemu-system-i386 -m 9 -cpu qemu32,+nx,+pae -device isa-debug-exit,iobase=0xf4,iosize=0x04 -no-reboot -nographic -net none -pidfile qemu.pid -chardev stdio,id=con,mux=on -serial chardev:con -mon chardev=con,mode=readline -icount shift=5,align=off,sleep=off -rtc clock=vm -kernel /home/nashif/Work/zephyrproject/zephyr/build/zephyr/zephyr.elf
ninja: build stopped: subcommand failed.
Expected behavior
it should run
Impact
All llvm built applications are crashing.
Environment (please complete the following information):
- OS: Linux
- Toolchain host clang/llvm
i9:zephyr(master): clang --version
clang version 10.0.1 (Fedora 10.0.1-2.fc32)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
- Commit 82dbda3
Additional context
Bisected tree and found this commit to be the cause:
commit bb99422c8a5f97d250e3e7c956c57ec78fae0e77
Author: Peter Bigot <peter.bigot@nordicsemi.no>
Date: Sun Nov 8 19:57:52 2020 -0600
lib/os: replace z_vprintk with cbprintf
Using the same implementation as the rest of Zephyr reduces code size.
Update options and expected results for formatting test.
Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
Metadata
Metadata
Assignees
Labels
bugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bugMedium impact/importance bug