Error when building on Ubuntu 16.04


#1

Hello, I am experiencing an error at [ 55%] Building C++ object built/tmp/p3tinydisplay_composite1.o

g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
Storing dependency cache.
Elapsed Time: 35 min 0 sec
The following command returned a non-zero value: g++ -std=gnu++11 -ftemplate-depth-70 -fPIC -c -o built/tmp/p3tinydisplay_composite1.o -Ibuilt/tmp -Ibuilt/include -Ipanda/src/tinydisplay -fvisibility=hidden -pthread -fno-exceptions -msse2 -fno-strict-aliasing -ffast-math -fno-stack-protector -fno-finite-math-only -fno-unsafe-math-optimizations -O2 -Wall -Wno-unused-function -Wno-reorder -DBUILDING_TINYDISPLAY panda/src/tinydisplay/p3tinydisplay_composite1.cxx
Build terminated.

The build command used was python2.7 makepanda/makepanda.py --everything --no-touchinput --no-eigen --installer with the latest version of Panda3D on GitHub.


#2

This can indicate a compiler bug, or a memory error in your computer. However, it should usually continue just fine if you restart the build. It will pick up where you left off.

Note that you probably want to add something like --threads=4 (or however many cores you have in your computer) to the options list to make the build go faster.