Skip to contentSkip to conversation

Problem using unix source in do_compile

DISCUSSION Edward Vidal 2 participants 4 messages Nov 22, 2015 – Nov 23, 2015 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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-gnueabi/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-gnueabi/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-gnueabi/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  e199e9ce0806dc257fcafdda26de29f4cd443e24regards, Edward Vidal Jr. e-mail [email protected] 915-595-1613

#2 lore raw

Hi Edward,

Quoted 14 lines · 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
Quoted 4 lines

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

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#3 lore raw

Hello Paul,
Thanks for your quick rely.

Yes, I am running "ubuntu 12.04 x86_64".

In a shell before  or after  running  ". oe-init-build-env" either of these 2 commands below work okay."source /opt/Xilinx/14.6/ISE_DS/settings64.sh" or ". /opt/Xilinx/14.6/ISE_DS/settings64.sh"

I am able to run (Xilinx Platform Studio) "xps"  okay.

I replaced 4 of source cmds with '.'

Now I get the following error when I execute "bitbake fpga-image-adi"

ERROR: Function failed: do_compile (log file is located at /home/vidal/POKY/dora_build/poky/build/tmp/work/zedboard-poky-linux-gnueabi/fpga-image-adi/1.AUTOINC-3e6cfd4858-r0/temp/log.do_compile.12830)
ERROR: Logfile of failure stored in: /home/vidal/POKY/dora_build/poky/build/tmp/work/zedboard-poky-linux-gnueabi/fpga-image-adi/1.AUTOINC-3e6cfd4858-r0/temp/log.do_compile.12830 Log data follows:

| DEBUG: Executing shell function do_compile
| /home/vidal/POKY/dora_build/poky/build/tmp/work/zedboard-poky-linux-gnueabi/fpga-image-adi/1.AUTOINC-3e6cfd4858-r0/temp/run.do_compile.12830: 12: [: /home/vidal/POKY/dora_build/poky/build/tmp/work/zedboard-poky-linux-gnueabi/fpga-image-adi/1.AUTOINC-3e6cfd4858-r0/temp/run.do_compile.12830: unexpected operator
| . /opt/Xilinx/14.6/ISE_DS/common/.settings64.sh /opt/Xilinx/14.6/ISE_DS/common
| . /opt/Xilinx/14.6/ISE_DS/EDK/.settings64.sh /opt/Xilinx/14.6/ISE_DS/EDK
| . /opt/Xilinx/14.6/ISE_DS/PlanAhead/.settings64.sh /opt/Xilinx/14.6/ISE_DS/PlanAhead
| . /opt/Xilinx/14.6/ISE_DS/ISE/.settings64.sh /opt/Xilinx/14.6/ISE_DS/ISE
| /home/vidal/POKY/dora_build/poky/build/tmp/work/zedboard-poky-linux-gnueabi/fpga-image-adi/1.AUTOINC-3e6cfd4858-r0/temp/run.do_compile.12830: 113: /home/vidal/POKY/dora_build/poky/build/tmp/work/zedboard-poky-linux-gnueabi/fpga-image-adi/1.AUTOINC-3e6cfd4858-r0/temp/run.do_compile.12830: xps: 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-gnueabi/fpga-image-adi/1.AUTOINC-3e6cfd4858-r0/temp/log.do_compile.12830)

ERROR: Task 6 (/home/vidal/POKY/dora_build/poky/meta-topic/recipes-bsp/fpga/fpga-image-adi.bb, do_compile) failed with exit code '1' What is the unexpected operator?I am attaching the log file. Thanks in advance for any and all help.Regards,

Edward Vidal Jr. e-mail [email protected] 915-595-1613

On Sunday, November 22, 2015 3:35 PM, Paul Eggleton <[email protected]> wrote:

Hi Edward,

Quoted 14 lines · 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
Quoted 4 lines

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

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#4 lore raw
Quoted 23 lines · On Monday 23 November 2015 19:08:27 Edward Vidal wrote:

Edward Vidal Jr. e-mail [email protected] 915-595-1613 wrote:

    On Sunday, November 22, 2015 3:35 PM, Paul Eggleton
Quoted 20 lines · <[email protected]> wrote:
Quoted 19 lines · 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-
| gnue
| ab/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-gnueabi/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-
| gnueabi/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/zedboa

Quoted 49 lines
Quoted 8 lines
Quoted 3 lines

rd _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.

Yes, I am running "ubuntu 12.04 x86_64".

In a shell before or after running ". oe-init-build-env" either of these 2 commands below work okay."source /opt/Xilinx/14.6/ISE_DS/settings64.sh" or ". /opt/Xilinx/14.6/ISE_DS/settings64.sh"

I am able to run (Xilinx Platform Studio) "xps" okay.

I replaced 4 of source cmds with '.'

Now I get the following error when I execute "bitbake fpga-image-adi"

ERROR: Function failed: do_compile (log file is located at /home/vidal/POKY/dora_build/poky/build/tmp/work/zedboard-poky-linux-gnueabi /fpga-image-adi/1.AUTOINC-3e6cfd4858-r0/temp/log.do_compile.12830) ERROR:
Logfile of failure stored in:
/home/vidal/POKY/dora_build/poky/build/tmp/work/zedboard-poky-linux-gnueabi /fpga-image-adi/1.AUTOINC-3e6cfd4858-r0/temp/log.do_compile.12830 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.12830: 12: [:
| /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.12830:
| unexpected operator 
| . /opt/Xilinx/14.6/ISE_DS/common/.settings64.sh
| /opt/Xilinx/14.6/ISE_DS/common .
| /opt/Xilinx/14.6/ISE_DS/EDK/.settings64.sh /opt/Xilinx/14.6/ISE_DS/EDK .
| /opt/Xilinx/14.6/ISE_DS/PlanAhead/.settings64.sh
| /opt/Xilinx/14.6/ISE_DS/PlanAhead .
| /opt/Xilinx/14.6/ISE_DS/ISE/.settings64.sh /opt/Xilinx/14.6/ISE_DS/ISE
| /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.12830: 113:
| /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.12830: 
| xps: 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.12830)
Quoted 4 lines

ERROR: Task 6 (/home/vidal/POKY/dora_build/poky/meta-topic/recipes-bsp/fpga/fpga-image-ad i.bb, do_compile) failed with exit code '1' What is the unexpected operator?

No idea I'm afraid. You are putting just one . <scriptfile> on the same line right?

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre