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

Unable to compile on Ubuntu 12.10 #267

Closed
akauble opened this Issue Apr 23, 2013 · 6 comments

Comments

Projects
None yet
7 participants
@akauble
Copy link

akauble commented Apr 23, 2013

When I attempt to run the install script (with clang completion), I run into this.

[ 40%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/posix_api.cpp.o
[ 40%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex.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[3]: *** [BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/cregex.cpp.o] Error 4
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [BoostParts/CMakeFiles/BoostParts.dir/all] Error 2
make[1]: *** [ycm/CMakeFiles/ycm_core.dir/rule] Error 2
make: *** [ycm_core] Error 2

I've made it as far as 53% but it always fails out eventually.

[ 53%] [ 53%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_iserializer.cpp.o
Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_oarchive.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[3]: *** [BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/instances.cpp.o] Error 4
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [BoostParts/CMakeFiles/BoostParts.dir/all] Error 2
make[1]: *** [ycm/CMakeFiles/ycm_core.dir/rule] Error 2
make: *** [ycm_core] Error 2

@Valloric

This comment has been minimized.

Copy link
Owner

Valloric commented Apr 24, 2013

Not much I can do about it, your compiler is throwing an ICE (internal compiler error).

@Valloric Valloric closed this Apr 24, 2013

@ambethia

This comment has been minimized.

Copy link

ambethia commented May 7, 2013

@akauble Are you running this on a VPS or in a VM? I am running into this too, and I think it might be because I'm running out of RAM.

Good Luck!

@NicholasTD07

This comment has been minimized.

Copy link

NicholasTD07 commented Aug 19, 2013

I also ran into this problem this afternoon, and after some trial and error, I found my solution : simply add a swap file big enough (512MB) and swapon this file. Detailed steps on ArchLinux's wikii page of Swap. I hope that this late reply helps you a bit.

@wklken

This comment has been minimized.

Copy link

wklken commented Sep 10, 2013

I use digital ocean 512M RAM run into this problem too

just add swap and do it again, it works!

good luck

https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04

@SSebo

This comment has been minimized.

Copy link

SSebo commented Oct 31, 2013

it works for me too.

@jjshanks

This comment has been minimized.

Copy link
Contributor

jjshanks commented Nov 8, 2013

@wklken thanks that helped a ton

jjshanks added a commit to jjshanks/YouCompleteMe that referenced this issue Nov 9, 2013

Valloric added a commit that referenced this issue Nov 9, 2013

Merge pull request #655 from jjshanks/master
add FAQ for internal compiler error #267
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment