zephyriot / zephyr-issues

0 stars 0 forks source link

Zephyr will not build with icecream #1778

Open nashif opened 7 years ago

nashif commented 7 years ago

Reported by Inaky Perez-Gonzalez:

This might be an SDK problem

icecream is a distributed compilation system used in conjunction with ccache to speed up parallel compilation.

when calling the compiler, it actually will call icecc, which will packup the whole compiler and send it to a remote machine to build in there. This allows to leverage power from otherwise idle machines in the network.

When building under icecc, the following happens:

export USE_CCACHE=1
export CCACHE_PREFIX=icecc
$ cd samples/hello_world
$ rm -rf outdir; time make BOARD=frdm_k64f -j
Using /home/inaky/z/kernel.git/boards/arm/frdm_k64f/frdm_k64f_defconfig as base
Merging /home/inaky/z/kernel.git/tests/include/test.config
Merging /home/inaky/z/kernel.git/kernel/configs/kernel.config
Merging prj.conf
#
# configuration written to .config
#
make[1]: Entering directory '/home/inaky/z/kernel.git'
make[2]: Entering directory '/home/inaky/z/kernel.git/samples/hello_world/outdir/frdm_k64f'
  GEN     ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
  Using /home/inaky/z/kernel.git as source for kernel
  GEN     ./Makefile
  CHK     include/generated/version.h
  UPD     include/generated/version.h
...
  LD      kernel/built-in.o
  AR      kernel/lib.a
  CC      src/main.o
  LD      src/built-in.o
  AR      libzephyr.a
  LINK    zephyr.lnk
/opt/zephyr-sdk-0.9.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-zephyr-eabi/gcc/arm-zephyr-eabi/6.2.0/real-ld: cannot find crti.o: No such file or directory
/opt/zephyr-sdk-0.9.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-zephyr-eabi/gcc/arm-zephyr-eabi/6.2.0/real-ld: cannot find crtbegin.o: No such file or directory
/opt/zephyr-sdk-0.9.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-zephyr-eabi/gcc/arm-zephyr-eabi/6.2.0/real-ld: cannot find crt0.o: No such file or directory
collect2: error: ld returned 1 exit status
/home/inaky/z/kernel.git/Makefile:853: recipe for target 'zephyr_prebuilt.elf' failed
make[2]: *** [zephyr_prebuilt.elf] Error 1
make[2]: Leaving directory '/home/inaky/z/kernel.git/samples/hello_world/outdir/frdm_k64f'
Makefile:173: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/inaky/z/kernel.git'
/home/inaky/z/kernel.git/Makefile.inc:82: recipe for target 'all' failed
make: *** [all] Error 2

(Imported from Jira ZEP-1933)

nashif commented 7 years ago

by Anas Nashif:

was this working before to make this qualify as a bug?

nashif commented 7 years ago

by Inaky Perez-Gonzalez:

I've built before with icecream (last time actually you were sitting next to me)

nashif commented 7 years ago

by Inaky Perez-Gonzalez:

I've built before with icecream (last time actually you were sitting next to me)

nashif commented 7 years ago

by Anas Nashif:

can you find out which commit it used to work with?