Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405699 - app-emulation/virtualbox 4.1.8-r1 - Internal error: Killed (program cc1)
Summary: app-emulation/virtualbox 4.1.8-r1 - Internal error: Killed (program cc1)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-25 06:13 UTC by ericyosho
Modified: 2012-02-27 01:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
output of emerge --info (emerge_info,4.21 KB, text/plain)
2012-02-25 06:13 UTC, ericyosho
Details
build log file of the merge process (build.log,206.61 KB, text/plain)
2012-02-25 06:14 UTC, ericyosho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ericyosho 2012-02-25 06:13:52 UTC
Created attachment 303119 [details]
output of emerge --info

I tried to merge app-emulation/virtualbox-4.1.8-r1 with the following USE settings:
[ebuild  N    ] app-emulation/virtualbox-4.1.8-r1  USE="additions alsa opengl pam python qt4 sdk -doc -extensions -headless -java -pulseaudio -vboxwebsrv -vnc"

The compiling procedure stops at some point when compiling translate.o.
The error message shows that it is the emake that fails.



Here also attached the output of emerge --info command.

I'm not sure is it a configuration issue on my side or a bug?
Any input appreciated.
Comment 1 ericyosho 2012-02-25 06:14:56 UTC
Created attachment 303123 [details]
build log file of the merge process
Comment 2 Richard Grenville 2012-02-25 08:48:06 UTC
Did you enable the "nopie" USE flag (or any other USE flag marked clearly as "NOT FOR GENERAL USE") when compiling gcc? I guess "nopie" USE flag on gcc is the reason you get all these "i686-pc-linux-gnu-g++: unrecognized option '-nopie'".

I'm however uncertain whether the "Internal error: Killed (program cc1)" is related to it. Does the older =virtualbox-4.1.8, which does not contain virtualbox_nopie.patch, work for you?
Comment 3 Richard Grenville 2012-02-25 08:52:36 UTC
Oh, yeah, probably you ran out of memory when compiling virtualbox, which would result in cc1 being killed. You could find the actual reason from your kernel log or dmesg.
Comment 4 ericyosho 2012-02-25 14:48:51 UTC
(In reply to comment #3)
> Oh, yeah, probably you ran out of memory when compiling virtualbox, which would
> result in cc1 being killed. You could find the actual reason from your kernel
> log or dmesg.

Oh yes, dmesg shows that there was not enough memory for stack.
I'm just curious about how much memory it needs.
It's not a high end machine, but still 1G ram should be sufficient?

I did not use nopie USE flag in my system, I'll have a try definitely.
Comment 5 Richard Grenville 2012-02-25 15:22:10 UTC
No, I meant enabling "nopie" on gcc may cause the problem of "i686-pc-linux-gnu-g++: unrecognized option '-nopie'". Sorry for not explaining it clearly. If you did not enable "nopie" when compiling gcc at all, I have no idea why you would get "i686-pc-linux-gnu-g++: unrecognized option '-nopie'". Maybe you should consider asking this question on the forums.

As for the run-out-of-memory issue, 1GB memory may not actually be sufficient for MAKEOPTS="-j2". I could compile virtualbox successfully on my computer with 1GB memory + 1GB swap.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-27 00:20:28 UTC
You ran out of RAM. Possible solutions:

1) Install more RAM.
2) Set MAKEOPTS=-j1 and no higher.
3) Remove -pipe from CFLAGS.
Comment 7 ericyosho 2012-02-27 01:02:19 UTC
Thanks for all your help and recommendation.
Yes, it was the memory issue.

I fixed it by creating a 2G temporary swap file.
VirtualBox has been merged.