[yocto] Problem using unix source in do_compile

Paul Eggleton paul.eggleton at linux.intel.com
Sun Nov 22 14:34:57 PST 2015


Hi Edward,

On Sunday 22 November 2015 13:25:21 Edward Vidal wrote:
> Hi all,I am trying to use run the bitbake on  a recipe that in the
> do_compile uses the unix command source.This is the error that I am
> getting. Log data follows:| DEBUG: Executing shell function do_compile
> 
> | /home/vidal/POKY/dora_build/poky/build/tmp/work/zedboard-poky-linux-gnueab
> | i/fpga-image-adi/1.AUTOINC-3e6cfd4858-r0/temp/run.do_compile.25492: 112:
> | /home/vidal/POKY/dora_build/poky/build/tmp/work/zedboard-poky-linux-gnuea
> | bi/fpga-image-adi/1.AUTOINC-3e6cfd4858-r0/temp/run.do_compile.25492:
> | source: not found WARNING: exit code 127 from a shell command.
> | ERROR: Function failed: do_compile (log file is located at
> | /home/vidal/POKY/dora_build/poky/build/tmp/work/zedboard-poky-linux-gnuea
> | bi/fpga-image-adi/1.AUTOINC-3e6cfd4858-r0/temp/log.do_compile.25492)At
> | github I have the original inc file that is used by the recipe
> | fpga-image-adi.bb
> 87a75850b6f36bf1f09ac0f071587629ba630c1ehttps://github.com/develone/zedboard
> _yocto/commits/master/fpga-image.inc I made some changes which allows me to 
> manually run the Xilinx commands and then re-run the bitbake
> fpga-image-adithe version  e199e9ce0806dc257fcafdda26de29f4cd443e24

If I had to guess I'd say you're on Ubuntu or another system where /bin/sh is 
dash and not bash, is that correct? If so, "source" is a bash-specific command 
- the POSIX standard equivalent is '.' (without quotes), so you'll need to use 
that instead.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list