Re: Build of samples/hello_world for Arduino 101 fails with SDK v0.9 works with SDK v0.8.2


Kumar Gala
 

On Mar 8, 2017, at 9:02 AM, A Molina-SW Dev via Zephyr-users <zephyr-users@lists.zephyrproject.org> wrote:



I was testing out building the v1.6.0 kernel using SDK v0.9 for BOARD=arduino_101 and it failed.
I was able to build it using the SDK v0.8.2, but it failed to flash via openOCD.

I´m using Ubuntu 16.04.2 LTS 64-bit as build host.

This log shows the build failure with SDK v0.9:


=======================================================================================


alexm@ubu1504:~/swdev/zephyr/samples/hello_world$ printenv | fgrep ZEPHYR
ZEPHYR_SDK_INSTALL_DIR=/home/alexm/swdev/zephyr-sdk-0.9
ZEPHYR_BASE=/home/alexm/swdev/zephyr
ZEPHYRK_GCC_VARIANT=zephyr

alexm@ubu1504:~/swdev/zephyr/samples/hello_world$ git branch
* (HEAD detached at v1.6.0)
master

alexm@ubu1504:~/swdev/zephyr/samples/hello_world$ make O=/home/alexm/swdev/zephyr_build BOARD=arduino_101 flash

Using /home/alexm/swdev/zephyr/boards/x86/arduino_101/arduino_101_defconfig as base
Merging /home/alexm/swdev/zephyr/kernel/configs/unified.config
Merging prj.conf
#
# configuration written to .config
#
make[1]: Entering directory '/home/alexm/swdev/zephyr'
make[2]: Entering directory '/home/alexm/swdev/zephyr_build'
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
make[2]: /home/alexm/swdev/zephyr-sdk-0.9/sysroots/i686-pokysdk-linux/usr/bin/iamcu-poky-elfiamcu/i586-poky-elfiamcu-gcc: Command not found
make[2]: /home/alexm/swdev/zephyr-sdk-0.9/sysroots/i686-pokysdk-linux/usr/bin/iamcu-poky-elfiamcu/i586-poky-elfiamcu-gcc: Command not found
/bin/sh: 1: /home/alexm/swdev/zephyr-sdk-0.9/sysroots/i686-pokysdk-linux/usr/bin/iamcu-poky-elfiamcu/i586-poky-elfiamcu-gcc: not found
dirname: missing operand
Try 'dirname --help' for more information.
make[2]: /home/alexm/swdev/zephyr-sdk-0.9/sysroots/i686-pokysdk-linux/usr/bin/iamcu-poky-elfiamcu/i586-poky-elfiamcu-gcc: Command not found
Seems like something isn’t right with your zephyr-sdk-0.9 install. What do you get for:

ls /home/alexm/swdev/zephyr-sdk-0.9/sysroots/i686-pokysdk-linux/usr/bin/iamcu-poky-elfiamcu

- k

Join users@lists.zephyrproject.org to automatically receive all group messages.