[Zephyr][Arduino] - Clang build fails
The module affected
Zephyr Arduino clang build
What is the action to reproduce the bug?
Build a Zephyr image for Arduino with clang toolchain
What is the result you see?
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/home/kalpa/oniroproject/oe-core/meta/recipes-devtools/gcc/gcc-cross_11.3.bb:do_populate_sysroot', '/home/kalpa/oniroproject/oe-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'virtual:native:/home/kalpa/oniroproject/oe-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/home/kalpa/oniroproject/oe-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['gcc-cross-arm', 'quilt-native', 'patch-native', 'pseudo-native', 'mpfr-native', 'texinfo-dummy-native', 'gmp-native', 'zlib-native', 'libmpc-native', 'libtool-native', 'zstd-native', 'flex-native', 'binutils-cross-arm', 'gnu-config-native', 'xz-native', 'attr-native', 'm4-native', 'gettext-minimal-native']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... arm-yocto-eabi
checking target system type... arm-yocto-eabi
checking for a BSD-compatible install... /home/kalpa/oniroproject/build-oniro-zephyr/tmp-newlib/hosttools/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /home/kalpa/oniroproject/build-oniro-zephyr/tmp-newlib/hosttools/sed
checking for gawk... gawk
checking for arm-yocto-eabi-gcc... arm-yocto-eabi-clang -target arm-yocto-eabi -mcpu=cortex-m4 -march=armv7e-m -mlittle-endian -Qunused-arguments -no-pie -fno-PIE -nostdlib --sysroot=/home/kalpa/oniroproject/build-oniro-zephyr/tmp-newlib/work/armv7m-yocto-eabi/newlib/4.2.0-r0/recipe-sysroot
checking for C compiler default output file name...
configure: error: in `/home/kalpa/oniroproject/build-oniro-zephyr/tmp-newlib/work/armv7m-yocto-eabi/newlib/4.2.0-r0/build':
configure: error: C compiler cannot create executables
See `config.log' for more details.
WARNING: exit code 77 from a shell command.
What is the result you expect?
Correct build
Frequency?
Always
Tested version
zephyr-philosopher for Arduino with clang configuration, version release 2.0
Do you know any workaround of this issue?
no
Do you have a fix for this issue?
no