intel / meta-de10-nano

MIT License
41 stars 27 forks source link

de10-nano-fftsw-apps.bb:do_compile fails #6

Closed grebenkoff closed 7 years ago

grebenkoff commented 7 years ago

I'm trying to build Linux distribution for DE10-Nano board. I follow the instructions provided in README file. Linux image builds successfully, but attempt to build user space apps fails:

ERROR: cross compiler tools are not visible in the environment. | | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_compile (log file is located at /home/vasya/poky/de10-nano-build/build/tmp-angstrom-glibc/work/de10_nano-angstrom-linux-gnueabi/de10-nano-fftsw-apps/1.0-r0/temp/log.do_compile.29063) ERROR: Task (/home/vasya/poky/de10-nano-build/layers/meta-de10-nano/recipes-demo/de10-nano-fftsw-apps/de10-nano-fftsw-apps.bb:do_compile) failed with exit code '1'

Host PC runs Ubuntu 16.04 64-bit. I think, that at the moment of compiling de10-nano-fftsw-apps CC or CROSS_COMPILE variables contain wrong path to the tools... No. I was wrong, CC variable is ok, and PATH points to the valid binaries. But I can't understand this pies of code in build_all.sh script, that stops build process with error: CC_TEST="${CC:?}" type -t ${CC%${CC#*gcc}} > /dev/null 2>&1 || { echo "" echo "ERROR: cross compiler tools are not visible in the environment." echo "" exit 1 }

I used a cheat - commented out "# exit 1" command in build_lib.sh, build_all.sh and build_app.sh: After that de10-nano-fftsw-apps was compiled successfully.