Hi, I am trying to port an application onto RDK-B. Below lines are my recipe do_compile part. while executing do_compile part i was getting error which was mentioned below , the main theme of do compile is to setup environment and build binary after downloading the source code but i as getting an error called files not present can you suggest me what was the backoff of went through.
S = "${WORKDIR}"
do_compile() { ./script/bootstrap ./bootstrap make -f src/posix/Makefile-posix make -f examples/Makefile-cc1352 }
ERROR: Function failed: do_compile (log file is located at /home/muddu/rdkb-2018q1/build-qemux86broadband/tmp/work/i586-rdk-linux/openthread/1-r0/temp/log.do_compile.8266) ERROR: Logfile of failure stored in: /home/muddu/rdkb-2018q1/build-qemux86broadband/tmp/work/i586-rdk-linux/openthread/1-r0/temp/log.do_compile.8266 Log data follows: | DEBUG: Executing shell function do_compile | /home/muddu/rdkb-2018q1/build-qemux86broadband/tmp/work/i586-rdk-linux/openthread/1-r0/temp/run.do_compile.8266: line 100: ./script/bootstrap: No such file or directory | WARNING: /home/muddu/rdkb-2018q1/build-qemux86broadband/tmp/work/i586-rdk-linux/openthread/1-r0/temp/run.do_compile.8266:1 exit 1 from | ./script/bootstrap | ERROR: Function failed: do_compile (log file is located at /home/muddu/rdkb-2018q1/build-qemux86broadband/tmp/work/i586-rdk-linux/openthread/1-r0/temp/log.do_compile.8266) ERROR: Task 6 (/home/muddu/rdkb-2018q1/meta-openthread/recipes-openthread/openthread/openthread_1.bb, do_compile) failed with exit code '1'
For a regular Yocto recipe, the output of do_compile will be in the same folder as source code( or as mentioned in the Makefile,if it is different from the normal format ). If you are looking for where the binaries will be available in target platform, it is as mentioned in the do_install( from you recipe and normal terms, it should be /bin/ in target platform,i presume )
this was my recipe here i was fetching code from git hub when i open the url (in browser) which was mentioned in the recipe it was accessible but i dont know why the code is not downloading. can you help me with this
9 Comments
Z-SharanyaBakkanagari
Hi,
I am trying to port an application onto RDK-B. Below lines are my recipe do_compile part. while executing do_compile part i was getting error which was mentioned below , the main theme of do compile is to setup environment and build binary after downloading the source code but i as getting an error called files not present can you suggest me what was the backoff of went through.
S = "${WORKDIR}"
do_compile() {
./script/bootstrap
./bootstrap
make -f src/posix/Makefile-posix
make -f examples/Makefile-cc1352
}
ERROR: Function failed: do_compile (log file is located at /home/muddu/rdkb-2018q1/build-qemux86broadband/tmp/work/i586-rdk-linux/openthread/1-r0/temp/log.do_compile.8266)
ERROR: Logfile of failure stored in: /home/muddu/rdkb-2018q1/build-qemux86broadband/tmp/work/i586-rdk-linux/openthread/1-r0/temp/log.do_compile.8266
Log data follows:
| DEBUG: Executing shell function do_compile
| /home/muddu/rdkb-2018q1/build-qemux86broadband/tmp/work/i586-rdk-linux/openthread/1-r0/temp/run.do_compile.8266: line 100: ./script/bootstrap: No such file or directory
| WARNING: /home/muddu/rdkb-2018q1/build-qemux86broadband/tmp/work/i586-rdk-linux/openthread/1-r0/temp/run.do_compile.8266:1 exit 1 from
| ./script/bootstrap
| ERROR: Function failed: do_compile (log file is located at /home/muddu/rdkb-2018q1/build-qemux86broadband/tmp/work/i586-rdk-linux/openthread/1-r0/temp/log.do_compile.8266)
ERROR: Task 6 (/home/muddu/rdkb-2018q1/meta-openthread/recipes-openthread/openthread/openthread_1.bb, do_compile) failed with exit code '1'
Narayanaswamy Ramaiyer
Hi Z-SharanyaBakkanagari
Please try adding WORKDIR or S with respect to your actual folder in front of the bootstrap command
Z-SharanyaBakkanagari
.
Narayanaswamy Ramaiyer
Hi Z-SharanyaBakkanagari,
For a regular Yocto recipe, the output of do_compile will be in the same folder as source code( or as mentioned in the Makefile,if it is different from the normal format ). If you are looking for where the binaries will be available in target platform, it is as mentioned in the do_install( from you recipe and normal terms, it should be /bin/ in target platform,i presume )
Z-SharanyaBakkanagari
Hi Naveen Kumar Raju Vysyaraju
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a69647678acb234cb"
SRCBRANCH="thread-reference-20180926"
SRCREV = "${AUTOREV}"
SRC_URI = "https://github.com/openthread/openthread.git;protocol=https"
SRC_URI[md5sum] = "a30ae374b45fb970bd1931b633a69ae4"
SRC_URI[sha256sum] = "2de394f342c8be199e801a71060655dd1bc59961aef9a9abe09482964ef6b364"
S = "${WORKDIR}/git/openthread
Z-SharanyaBakkanagari
.
Narayanaswamy Ramaiyer
hi Z-SharanyaBakkanagari
Please try if you can manually try a git clone for that repo from the command line of pc where you are performing this operation
Z-SharanyaBakkanagari
Hi Narayanaswamy Ramaiyer
yes I tried in that way also, when i was tried to clone it it was cloning successfully. but through recipe it was not happening.
Narayanaswamy Ramaiyer
Hi Z-SharanyaBakkanagari,
Are you seeing a fail in do_fetch or are you seeing a fail in invoke of the recipe itself?