Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c++: internal compiler error: Killed (program cc1plus) #8

Closed
staabm opened this issue Nov 8, 2013 · 5 comments
Closed

c++: internal compiler error: Killed (program cc1plus) #8

staabm opened this issue Nov 8, 2013 · 5 comments

Comments

@staabm
Copy link
Contributor

staabm commented Nov 8, 2013

got another error from cmake

[ 69%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/vm/ji
t/region-hot-block.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make[2]: *** [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/vm/jit/hhbc-transl
ator.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/all] Error 2
make: *** [all] Error 2

again the question... is this error related to e.g. the custom gcc for the vm? or is it a temporary hhvm dev version error?

@javer
Copy link
Owner

javer commented Nov 10, 2013

I've seen this error many times, every time it appears on another file and line. It is fixed by restarting make after login to the VM. When I used only 2 cores this error appears very rare, but compiling takes 2x time.

Another thing is to use gcc 4.8.2, someone wrote that it will fix this issue.

@staabm
Copy link
Contributor Author

staabm commented Nov 10, 2013

I will try to use gcc 4.8.2..

Anything more we could do to reduce compile time? Maybe some parallelism?

@javer
Copy link
Owner

javer commented Nov 17, 2013

I think there is no need to think about ways to speed up compilation as it is performed only once in a few days. Also instead of rebuilding VM from scratch we can login into existing VM, update HHVM sources from git and run cmake and make.

@shivaas
Copy link

shivaas commented Mar 30, 2014

upgrading to gcc4.8 and stepping down to -j4 on Ubuntu 12.04 LTS solved this issue for me

@javer
Copy link
Owner

javer commented Mar 30, 2014

Thanks @shivaas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants