All of lore.kernel.org
 help / color / mirror / Atom feed
* Getting bitbake error after 54% recipes are baked. #dunfell #yocto
@ 2021-08-17 15:38 vishal.rana118
  2021-08-17 16:34 ` [yocto] " Zoran
  2021-08-17 16:44 ` Khem Raj
  0 siblings, 2 replies; 6+ messages in thread
From: vishal.rana118 @ 2021-08-17 15:38 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1750 bytes --]

Hi,

I am using *ubuntu 16.04* (host) in VirtualBox.

Memory allocated to VM machine is 100+ GB.

Poky *dunfell*.

While trying to build the project fo *r x86_64.*

Steps followed as per yocto quick guide for "dunfell"

////////////////////////////// ////////////////////////////// ////////////

after baking 54% of recipe I am getting error.

////////////////////////////// ////////////////////////////// ////////////////////////

| /home/vrana/Desktop/yocto_ Practice/build/tmp/work/core2- 64-poky-linux/gcc/9.3.0-r0/ recipe-sysroot-native/usr/bin/ x86_64-poky-linux/../../ libexec/x86_64-poky-linux/gcc/ x86_64-poky-linux/9.3.0/as: out of memory allocating 4064 bytes after a total of 452272128 bytes

| Makefile:1117: recipe for target 'insn-emit.o' failed

| make[1]: *** [insn-emit.o] Error 2

| make[1]: *** Waiting for unfinished jobs....

| rm gcc.pod

| make[1]: Leaving directory '/home/vrana/Desktop/yocto_ Practice/build/tmp/work/core2- 64-poky-linux/gcc/9.3.0-r0/ gcc-9.3.0/build.x86_64-poky- linux.x86_64-poky-linux/gcc'

| Makefile:4328: recipe for target 'all-gcc' failed

| make: *** [all-gcc] Error 2

| WARNING: exit code 1 from a shell command.

|

ERROR: Task (/home/vrana/Desktop/yocto_ Practice/source/poky/meta/ recipes-devtools/gcc/gcc_9.3. bb:do_compile) failed with exit code '1'

NOTE: Tasks Summary: Attempted 1832 tasks of which 0 didn't need to be rerun and 1 failed.

Summary: 1 task failed:

/home/vrana/Desktop/yocto_ Practice/source/poky/meta/ recipes-devtools/gcc/gcc_9.3. bb:do_compile

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

////////////////////////////// //////////////////////////////

looking for guidance.

Regards,

[-- Attachment #2: Type: text/html, Size: 10316 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [yocto] Getting bitbake error after 54% recipes are baked. #dunfell #yocto
  2021-08-17 15:38 Getting bitbake error after 54% recipes are baked. #dunfell #yocto vishal.rana118
@ 2021-08-17 16:34 ` Zoran
  2021-08-17 16:44 ` Khem Raj
  1 sibling, 0 replies; 6+ messages in thread
From: Zoran @ 2021-08-17 16:34 UTC (permalink / raw)
  To: vishal.rana118; +Cc: Yocto-mailing-list

[-- Attachment #1: Type: text/plain, Size: 2815 bytes --]

> /home/vrana/Desktop/yocto_Practice/build/tmp/ \
> work/core2-64-poky-linux/gcc/9.3.0-r0/recipe-sysroot-native/ \
> usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/ \
> gcc/x86_64-poky-linux/9.3.0/as:
> *out of memory allocating 4064 bytes after a total of 452272128 bytes*

Looks to me that your VM ran out of SDRAM memory,
allocated for the VM, somehow.

> Memory allocated to VM machine is 100+ GB.

It is (hopefully) a VDI (Dynamic) VM disk image, NOT a SDRAM,
my best guess.

[1] You can just try to continue bitbake process, it might pass, since the
     Bitbake processes were forcefully killed, and some memory hogged
     fortunately were entirely deallocated;
[2] If [1] fails again a few times, you can try to reconfigure VMM to give
     more SDRAM to VM (have no idea what is the allocated default), it
     might help!

Zee
_______

On Tue, Aug 17, 2021 at 5:38 PM <vishal.rana118@gmail.com> wrote:

> Hi,
>
> I am using* ubuntu 16.04* (host) in VirtualBox.
>
> Memory allocated to VM machine is 100+ GB.
>
> Poky* dunfell*.
>
> While trying to build the project fo*r x86_64.*
>
> Steps followed as per yocto quick guide for "dunfell"
>
> ////////////////////////////////////////////////////////////////////////
>
> after baking 54% of recipe I am getting error.
>
>
> ////////////////////////////////////////////////////////////////////////////////////
>
> |
> /home/vrana/Desktop/yocto_Practice/build/tmp/work/core2-64-poky-linux/gcc/9.3.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/9.3.0/as:
> out of memory allocating 4064 bytes after a total of 452272128 bytes
>
> | Makefile:1117: recipe for target 'insn-emit.o' failed
>
> | make[1]: *** [insn-emit.o] Error 2
>
> | make[1]: *** Waiting for unfinished jobs....
>
> | rm gcc.pod
>
> | make[1]: Leaving directory
> '/home/vrana/Desktop/yocto_Practice/build/tmp/work/core2-64-poky-linux/gcc/9.3.0-r0/gcc-9.3.0/build.x86_64-poky-linux.x86_64-poky-linux/gcc'
>
> | Makefile:4328: recipe for target 'all-gcc' failed
>
> | make: *** [all-gcc] Error 2
>
> | WARNING: exit code 1 from a shell command.
>
> |
>
> ERROR: Task
> (/home/vrana/Desktop/yocto_Practice/source/poky/meta/recipes-devtools/gcc/gcc_9.3.bb:do_compile)
> failed with exit code '1'
>
> NOTE: Tasks Summary: Attempted 1832 tasks of which 0 didn't need to be
> rerun and 1 failed.
>
> Summary: 1 task failed:
>
>
> /home/vrana/Desktop/yocto_Practice/source/poky/meta/recipes-devtools/gcc/gcc_9.3.bb:
> do_compile
>
> Summary: There were 2 ERROR messages shown, returning a non-zero exit
> code.
>
>
>
> ////////////////////////////////////////////////////////////
>
> looking for guidance.
>
>
>
> Regards,
>
> 
>
>

[-- Attachment #2: Type: text/html, Size: 12718 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [yocto] Getting bitbake error after 54% recipes are baked. #dunfell #yocto
  2021-08-17 15:38 Getting bitbake error after 54% recipes are baked. #dunfell #yocto vishal.rana118
  2021-08-17 16:34 ` [yocto] " Zoran
@ 2021-08-17 16:44 ` Khem Raj
  2021-08-17 17:36   ` vishal.rana118
  1 sibling, 1 reply; 6+ messages in thread
From: Khem Raj @ 2021-08-17 16:44 UTC (permalink / raw)
  To: vishal.rana118, yocto



On 8/17/21 8:38 AM, vishal.rana118@gmail.com wrote:
> Hi,
> 
> I am using*ubuntu 16.04* (host) in VirtualBox.
> 
> Memory allocated to VM machine is 100+ GB.
> 

how much DRAM is allocated.

> Poky*dunfell*.
> 
> While trying to build the project fo*r x86_64.*
> 
> Steps followed as per yocto quick guide for "dunfell"
> 
> ////////////////////////////////////////////////////////////////////////
> 
> after baking 54% of recipe I am getting error.
> 
> ////////////////////////////////////////////////////////////////////////////////////
> 
> | 
> /home/vrana/Desktop/yocto_Practice/build/tmp/work/core2-64-poky-linux/gcc/9.3.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/9.3.0/as: 
> out of memory allocating 4064 bytes after a total of 452272128 bytes
> 
> | Makefile:1117: recipe for target 'insn-emit.o' failed
> 
> | make[1]: *** [insn-emit.o] Error 2
> 
> | make[1]: *** Waiting for unfinished jobs....
> 
> | rm gcc.pod
> 
> | make[1]: Leaving directory 
> '/home/vrana/Desktop/yocto_Practice/build/tmp/work/core2-64-poky-linux/gcc/9.3.0-r0/gcc-9.3.0/build.x86_64-poky-linux.x86_64-poky-linux/gcc'
> 
> | Makefile:4328: recipe for target 'all-gcc' failed
> 
> | make: *** [all-gcc] Error 2
> 
> | WARNING: exit code 1 from a shell command.
> 
> |
> 
> ERROR: Task 
> (/home/vrana/Desktop/yocto_Practice/source/poky/meta/recipes-devtools/gcc/gcc_9.3.bb:do_compile) 
> failed with exit code '1'
> 
> NOTE: Tasks Summary: Attempted 1832 tasks of which 0 didn't need to be 
> rerun and 1 failed.
> 
> Summary: 1 task failed:
> 
>    
> /home/vrana/Desktop/yocto_Practice/source/poky/meta/recipes-devtools/gcc/gcc_9.3.bb:do_compile
> 
> Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
> 
> ////////////////////////////////////////////////////////////
> 
> looking for guidance.
> 
> Regards,
> 
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Getting bitbake error after 54% recipes are baked. #dunfell #yocto
  2021-08-17 16:44 ` Khem Raj
@ 2021-08-17 17:36   ` vishal.rana118
  2021-08-17 20:14     ` [yocto] " Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: vishal.rana118 @ 2021-08-17 17:36 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 171 bytes --]

Previously SDRAM was 3 GB allocated.

After changing SDRAM to 4 GB.
then trying to build/make/bitbake..

getting new error i.e.
Unable to connect to bitbake server

[-- Attachment #2: Type: text/html, Size: 196 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [yocto] Getting bitbake error after 54% recipes are baked. #dunfell #yocto
  2021-08-17 17:36   ` vishal.rana118
@ 2021-08-17 20:14     ` Khem Raj
  2021-08-18  4:03       ` Zoran
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2021-08-17 20:14 UTC (permalink / raw)
  To: vishal.rana118; +Cc: Yocto-mailing-list

On Tue, Aug 17, 2021 at 10:36 AM <vishal.rana118@gmail.com> wrote:
>
> Previously SDRAM was 3 GB allocated.
>
> After changing SDRAM to 4 GB.
> then trying to build/make/bitbake..

keep in mind that based upon how many vcores you allocate to VM will
determine memory pressure
as well. So if you have 2 cores perhaps 4GB is ok or maybe even 4
cores might workout ok but some bigger packages like
chromium etc. need minimal 16GB RAM to build.

>
> getting new error i.e.
> Unable to connect to bitbake server

this seems that it finds bitbake is still running and its trying to
reconnect to it. Maybe just reboot the box and try again

> 
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [yocto] Getting bitbake error after 54% recipes are baked. #dunfell #yocto
  2021-08-17 20:14     ` [yocto] " Khem Raj
@ 2021-08-18  4:03       ` Zoran
  0 siblings, 0 replies; 6+ messages in thread
From: Zoran @ 2021-08-18  4:03 UTC (permalink / raw)
  To: Khem Raj, Robert P. J. Day; +Cc: vishal.rana118, Yocto-mailing-list

> keep in mind that based upon how many vcores you allocate to VM will
> determine memory pressure
> as well. So if you have 2 cores perhaps 4GB is ok or maybe even 4
> cores might workout ok but some bigger packages like
> chromium etc. need minimal 16GB RAM to build.

This should be reflected somewhere in YOCTO documentation. Especially
for chromium.

In the section: Host HW Requirements (with some explanation why).

Zee
_______


On Tue, Aug 17, 2021 at 10:14 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> On Tue, Aug 17, 2021 at 10:36 AM <vishal.rana118@gmail.com> wrote:
> >
> > Previously SDRAM was 3 GB allocated.
> >
> > After changing SDRAM to 4 GB.
> > then trying to build/make/bitbake..
>
> keep in mind that based upon how many vcores you allocate to VM will
> determine memory pressure
> as well. So if you have 2 cores perhaps 4GB is ok or maybe even 4
> cores might workout ok but some bigger packages like
> chromium etc. need minimal 16GB RAM to build.
>
> >
> > getting new error i.e.
> > Unable to connect to bitbake server
>
> this seems that it finds bitbake is still running and its trying to
> reconnect to it. Maybe just reboot the box and try again
>
> >
> >
>
> 
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-08-18  4:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-17 15:38 Getting bitbake error after 54% recipes are baked. #dunfell #yocto vishal.rana118
2021-08-17 16:34 ` [yocto] " Zoran
2021-08-17 16:44 ` Khem Raj
2021-08-17 17:36   ` vishal.rana118
2021-08-17 20:14     ` [yocto] " Khem Raj
2021-08-18  4:03       ` Zoran

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.