Basic build fails
Hi all,
I am new to the yocto project and was following the steps given in the quick start guide. I made a slight change as given in the superuser section.
I used the "fetchall" option to get all the packages first and then started the build, now when i use this command
"bitbake -k core-image-sato" i get the following error
/------------------------------------------------------------------------------------
ERROR: Task 595 (/home/arun/Documents/Dev/yocto/poky/meta/recipes-devtools/gcc/gcc-cross_4.9.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2729 tasks of which 1784 didn't need to be rerun and 1 failed.
No currently running tasks (2729 of 5634)
Summary: 1 task failed:
/home/arun/Documents/Dev/yocto/poky/meta/recipes-devtools/gcc/gcc-cross_4.9.bb, do_compile
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code. /------------------------------------------------------------------------------------
any idea or hint where i might be going wrong?
Quoted 13 lines · Arun Kumar
Hi all,
I am new to the yocto project and was following the steps given in the quick start guide. I made a slight change as given in the superuser section.
I used the "fetchall" option to get all the packages first and then started the build, now when i use this command
"bitbake -k core-image-sato" i get the following error
/------------------------------------------------------------------------------------
ERROR: Task 595 (/home/arun/Documents/Dev/yocto/poky/meta/recipes-devtools/gcc/gcc-cross_4.9.bb,do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2729 tasks of which 1784 didn't need to be rerun and 1 failed.
No currently running tasks (2729 of 5634)
Quoted 7 lines
Summary: 1 task failed:
/home/arun/Documents/Dev/yocto/poky/meta/recipes-devtools/gcc/gcc-cross_4.9.bb,do_compile
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code. /------------------------------------------------------------------------------------any idea or hint where i might be going wrong?
You've trimmed the output at just the place where it was telling you what went wrong. Re-run bitbake gcc-cross, and paste the output of that.
Ross
Thanks for the reply ross, but the build noise is too much form me to put it in here. I will post the last few lines of which i can make some sense, but the rest is somewhat incomprehensible.
/-------------------------------------------------------------------------------
| make[1]: *** [s-attrtab] Killed | make[1]: *** Waiting for unfinished jobs.... | make[1]: Leaving directory `/home/arun/Documents/Dev/yocto/tmp/work/x86_64-poky-linux/gcc-cross-i586/4.9.1-r0/gcc-4.9.1/build.x86_64-linux.i586-poky-linux/gcc' | make: *** [all-gcc] Error 2 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_compile (log file is located at /home/arun/Documents/Dev/yocto/build/../tmp/work/x86_64-poky-linux/gcc-cross-i586/4.9.1-r0/temp/log.do_compile.29857)
ERROR: Task 595 (/home/arun/Documents/Dev/yocto/poky/meta/recipes-devtools/gcc/gcc-cross_4.9.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2729 tasks of which 2728 didn't need to be rerun and 1 failed.
No currently running tasks (307 of 5634)
Summary: 1 task failed:
/home/arun/Documents/Dev/yocto/poky/meta/recipes-devtools/gcc/gcc-cross_4.9.bb, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code. /-------------------------------------------------------------------------------------------------------
here is the pastebin link to the whole error http://pastebin.com/Y1JsA8dt
hope this helps
Quoted 27 lines · Ross
Quoted 13 lines · Arun Kumar
Hi all,
I am new to the yocto project and was following the steps given in the quick start guide. I made a slight change as given in the superuser section.
I used the "fetchall" option to get all the packages first and then started the build, now when i use this command
"bitbake -k core-image-sato" i get the following error
/------------------------------------------------------------------------------------
ERROR: Task 595 (/home/arun/Documents/Dev/yocto/poky/meta/recipes-devtools/gcc/gcc-cross_4.9.bb,do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2729 tasks of which 1784 didn't need to be rerun and 1 failed.
No currently running tasks (2729 of 5634)Quoted 7 lines
Summary: 1 task failed:
/home/arun/Documents/Dev/yocto/poky/meta/recipes-devtools/gcc/gcc-cross_4.9.bb,do_compile
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code. /------------------------------------------------------------------------------------any idea or hint where i might be going wrong?
You've trimmed the output at just the place where it was telling you what went wrong. Re-run bitbake gcc-cross, and paste the output of that.
Ross
Quoted 4 lines · Arun Kumar
Thanks for the reply ross, but the build noise is too much form me to put it in here. I will post the last few lines of which i can make some sense, but the rest is somewhat incomprehensible.
/------------------------------------------------------------------------------- | make[1]: *** [s-attrtab] Killed
This is very suspicious - looks like your build may have been killed by running out of memory...
Quoted 10 lines
| make[1]: *** Waiting for unfinished jobs.... | make[1]: Leaving directory `/home/arun/Documents/Dev/yocto/tmp/work/x86_64-poky-linux/gcc-cross-i586/4.9.1-r0/gcc-4.9.1/build.x86_64-linux.i586-poky-linux/gcc' | make: *** [all-gcc] Error 2 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_compile (log file is located at /home/arun/Documents/Dev/yocto/build/../tmp/work/x86_64-poky-linux/gcc-cross-i586/4.9.1-r0/temp/log.do_compile.29857)ERROR: Task 595 (
/home/arun/Documents/Dev/yocto/poky/meta/recipes-devtools/gcc/gcc-cross_4.9.bb,do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2729 tasks of which 2728 didn't need to be rerun and 1 failed.
No currently running tasks (307 of 5634)
Quoted 7 lines
Summary: 1 task failed:
/home/arun/Documents/Dev/yocto/poky/meta/recipes-devtools/gcc/gcc-cross_4.9.bb,do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code. /-------------------------------------------------------------------------------------------------------here is the pastebin link to the whole error http://pastebin.com/Y1JsA8dt
hope this helps
How much memory (RAM+SWAP) does your host build machine have?
Quoted 29 lines · Ross
Quoted 27 lines · Arun Kumar
Quoted 13 lines
Hi all,
I am new to the yocto project and was following the steps given in the quick start guide. I made a slight change as given in the superuser section.
I used the "fetchall" option to get all the packages first and then started the build, now when i use this command
"bitbake -k core-image-sato" i get the following error
/------------------------------------------------------------------------------------
ERROR: Task 595 (/home/arun/Documents/Dev/yocto/poky/meta/recipes-devtools/gcc/gcc-cross_4.9.bb,do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2729 tasks of which 1784 didn't need to be rerun and 1 failed.
No currently running tasks (2729 of 5634)Quoted 7 lines
Summary: 1 task failed:
/home/arun/Documents/Dev/yocto/poky/meta/recipes-devtools/gcc/gcc-cross_4.9.bb,do_compile
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code. /------------------------------------------------------------------------------------any idea or hint where i might be going wrong?
You've trimmed the output at just the place where it was telling you what went wrong. Re-run bitbake gcc-cross, and paste the output of that.
Ross
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------