All of lore.kernel.org
 help / color / mirror / Atom feed
From: Edward Vidal <develone@sbcglobal.net>
To: Paul Eggleton <paul.eggleton@linux.intel.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Problem using unix source in do_compile
Date: Mon, 23 Nov 2015 19:08:27 +0000 (UTC)	[thread overview]
Message-ID: <1402232487.1829166.1448305707751.JavaMail.yahoo@mail.yahoo.com> (raw)
In-Reply-To: <2709775.kpuI3dqQ0L@peggleto-mobl.ger.corp.intel.com>


[-- 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)

  reply	other threads:[~2015-11-23 19:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1946107905.7106433.1448198721454.JavaMail.yahoo.ref@mail.yahoo.com>
2015-11-22 13:25 ` Problem using unix source in do_compile Edward Vidal
2015-11-22 22:34   ` Paul Eggleton
2015-11-23 19:08     ` Edward Vidal [this message]
2015-11-23 19:41       ` Paul Eggleton
     [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
2015-12-01 23:39     ` Edward Vidal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1402232487.1829166.1448305707751.JavaMail.yahoo@mail.yahoo.com \
    --to=develone@sbcglobal.net \
    --cc=paul.eggleton@linux.intel.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.