* Re: Problem using unix source in do_compile
[not found] <1721359978.8800564.1448508568109.JavaMail.yahoo.ref@mail.yahoo.com>
@ 2015-11-26 3:29 ` Edward Vidal
2015-11-30 20:21 ` Khem Raj
0 siblings, 1 reply; 7+ messages in thread
From: Edward Vidal @ 2015-11-26 3:29 UTC (permalink / raw)
To: yocto; +Cc: Paul Eggleton
[-- Attachment #1: Type: text/plain, Size: 510 bytes --]
Hello all,After a long time of trying to get Michael Looijmans fpga-image-adi.bb from meta-topic to work. I wanted to share the fix. I was running Ubuntu 12.04.
which sh
/bin/sh
cd /bin
ls -la sh
lrwxrwxrwx 1 root root 4 May 16 2015 sh -> dash
ln -sf bash shls -la /bin/sh
lrwxrwxrwx 1 root root 4 Nov 25 17:28 /bin/sh -> bash
which gmake
/usr/bin/gmake
cd /usr/bin
ln -sf make gmake
ls -la /usr/bin/gmakeThanks for all the help.
Edward Vidal Jr. e-mail develone@sbcglobal.net 915-595-1613
[-- Attachment #2: Type: text/html, Size: 1997 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem using unix source in do_compile
2015-11-26 3:29 ` Problem using unix source in do_compile Edward Vidal
@ 2015-11-30 20:21 ` Khem Raj
2015-12-01 23:39 ` Edward Vidal
0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2015-11-30 20:21 UTC (permalink / raw)
To: Edward Vidal; +Cc: yocto, Paul Eggleton
[-- Attachment #1: Type: text/plain, Size: 958 bytes --]
On Nov 25, 2015 7:30 PM, "Edward Vidal" <develone@sbcglobal.net> wrote:
>
> Hello all,
> After a long time of trying to get Michael Looijmans fpga-image-adi.bb
from meta-topic to work. I wanted to share the fix. I was running Ubuntu
12.04.
> which sh
> /bin/sh
> cd /bin
> ls -la sh
> lrwxrwxrwx 1 root root 4 May 16 2015 sh -> dash
> ln -sf bash sh
> ls -la /bin/sh
> lrwxrwxrwx 1 root root 4 Nov 25 17:28 /bin/sh -> bash
> which gmake
> /usr/bin/gmake
> cd /usr/bin
> ln -sf make gmake
> ls -la /usr/bin/gmake
> Thanks for all the help.
There are better ways to switch default sh to be bash or dash
dpkg-reconfigure dash would offer you the selection choice. But why did you
not try Paul's suggestions
>
> Edward Vidal Jr. e-mail develone@sbcglobal.net 915-595-1613
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
[-- Attachment #2: Type: text/html, Size: 1440 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem using unix source in do_compile
2015-11-30 20:21 ` Khem Raj
@ 2015-12-01 23:39 ` Edward Vidal
0 siblings, 0 replies; 7+ messages in thread
From: Edward Vidal @ 2015-12-01 23:39 UTC (permalink / raw)
To: Khem Raj; +Cc: yocto, Paul Eggleton
[-- Attachment #1: Type: text/plain, Size: 2340 bytes --]
Kherm,
I did follow Paul recommendations. The issue was not just using the source unix command.
When I changed source to '.', a new error occurred.
do_compile) failed with exit code '1' What is the unexpected
> operator?
This error was caused by not having a gmake. Searching to resolve the gmake issue,
which some recommend linking to make.
On this problem I have been working for quite some time. I don't now if this is related
to dash bash issue or not.
I was working on a Fedora system which uses bash. My binutils
2.23.2-r4 was most likely built on the Fedora system. I needed to switch to an O/S
that support Xilinx Tools, so I copied my working tree to a Ubuntu system.
I have removed from tmp down several times trying different things and bitbake core-image-sato
rebuilds the tmp area. I wanted to remove from build, but then is when my binutils 2.23.2-r4
would failed. I had to restore my build/buildhistory build/cache build/conf build/sanity_info build/sstate-cache and then tmp was rebuilt with bitbake core-image-sato.
I really do appreciate all the help that the folks on this mailing list and meta-xilinx
mailing list. Thanks for all the help,
Edward Vidal Jr. e-mail develone@sbcglobal.net 915-595-1613
On Monday, November 30, 2015 1:21 PM, Khem Raj <raj.khem@gmail.com> wrote:
On Nov 25, 2015 7:30 PM, "Edward Vidal" <develone@sbcglobal.net> wrote:
>
> Hello all,
> After a long time of trying to get Michael Looijmans fpga-image-adi.bb from meta-topic to work. I wanted to share the fix. I was running Ubuntu 12.04.
> which sh
> /bin/sh
> cd /bin
> ls -la sh
> lrwxrwxrwx 1 root root 4 May 16 2015 sh -> dash
> ln -sf bash sh
> ls -la /bin/sh
> lrwxrwxrwx 1 root root 4 Nov 25 17:28 /bin/sh -> bash
> which gmake
> /usr/bin/gmake
> cd /usr/bin
> ln -sf make gmake
> ls -la /usr/bin/gmake
> Thanks for all the help.There are better ways to switch default sh to be bash or dash dpkg-reconfigure dash would offer you the selection choice. But why did you not try Paul's suggestions
>
> Edward Vidal Jr. e-mail develone@sbcglobal.net 915-595-1613
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
[-- Attachment #2: Type: text/html, Size: 6113 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem using unix source in do_compile
2015-11-23 19:08 ` Edward Vidal
@ 2015-11-23 19:41 ` Paul Eggleton
0 siblings, 0 replies; 7+ messages in thread
From: Paul Eggleton @ 2015-11-23 19:41 UTC (permalink / raw)
To: Edward Vidal; +Cc: yocto
On Monday 23 November 2015 19:08:27 Edward Vidal wrote:
> Edward Vidal Jr. e-mail develone@sbcglobal.net 915-595-1613 wrote:
> On Sunday, November 22, 2015 3:35 PM, Paul Eggleton
> <paul.eggleton@linux.intel.com> wrote:
>> 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
>> > 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)
> 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
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem using unix source in do_compile
2015-11-22 22:34 ` Paul Eggleton
@ 2015-11-23 19:08 ` Edward Vidal
2015-11-23 19:41 ` Paul Eggleton
0 siblings, 1 reply; 7+ messages in thread
From: Edward Vidal @ 2015-11-23 19:08 UTC (permalink / raw)
To: Paul Eggleton; +Cc: yocto
[-- Attachment #1.1: Type: text/plain, Size: 4144 bytes --]
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 develone@sbcglobal.net 915-595-1613
On Sunday, November 22, 2015 3:35 PM, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
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
[-- Attachment #1.2: Type: text/html, Size: 8182 bytes --]
[-- Attachment #2: log.do_compile.12830 --]
[-- Type: application/octet-stream, Size: 1214 bytes --]
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)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem using unix source in do_compile
2015-11-22 13:25 ` Edward Vidal
@ 2015-11-22 22:34 ` Paul Eggleton
2015-11-23 19:08 ` Edward Vidal
0 siblings, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2015-11-22 22:34 UTC (permalink / raw)
To: Edward Vidal; +Cc: yocto
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Problem using unix source in do_compile
[not found] <1946107905.7106433.1448198721454.JavaMail.yahoo.ref@mail.yahoo.com>
@ 2015-11-22 13:25 ` Edward Vidal
2015-11-22 22:34 ` Paul Eggleton
0 siblings, 1 reply; 7+ messages in thread
From: Edward Vidal @ 2015-11-22 13:25 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 1211 bytes --]
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 develone@sbcglobal.net 915-595-1613
[-- Attachment #2: Type: text/html, Size: 3053 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-12-01 23:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1721359978.8800564.1448508568109.JavaMail.yahoo.ref@mail.yahoo.com>
2015-11-26 3:29 ` Problem using unix source in do_compile Edward Vidal
2015-11-30 20:21 ` Khem Raj
2015-12-01 23:39 ` Edward Vidal
[not found] <1946107905.7106433.1448198721454.JavaMail.yahoo.ref@mail.yahoo.com>
2015-11-22 13:25 ` Edward Vidal
2015-11-22 22:34 ` Paul Eggleton
2015-11-23 19:08 ` Edward Vidal
2015-11-23 19:41 ` Paul Eggleton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.