linux compiling issue

[T20] Building C++ object built/tmp/p3device_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-4.8/README.Bugs> for instructions.
The following command returned a non-zero value: g++ -ftemplate-depth-50 -fPIC -c -o built/tmp/libp3pgraph_igate.o -Ibuilt/tmp -Ibuilt/include -I/usr/include/python2.7 -Ipanda/src/pgraph -pthread -msse2 -O2 -DBUILDING_PANDA built/tmp/libp3pgraph_igate.cxx

can you please help me? thanks

The problem is probably caused by the use of such a ridiculous number of threads. I suggest you lower the thread count to the number of CPU cores you have, and even lower if you have limited memory.

now this
[T1] Building Interrogate database built/pandac/input/libp3egg.in
[T2] Building Interrogate database built/pandac/input/libpandaode.in
[T4] Building Interrogate database built/pandac/input/libpandabullet.in
[T3] Building C++ object built/tmp/p3bullet_composite.o
[T5] Building Interrogate database built/pandac/input/libp3physics.in[T6] Building C++ object built/tmp/p3particlesystem_composite1.o
[T7] Building Interrogate database built/pandac/input/libp3particlesystem.in
[T8] Linking executable built/bin/pview

[T9] Building C++ object built/tmp/p3tinydisplay_composite1.o
[T10] Building C++ object built/tmp/p3tinydisplay_composite2.o
In file included from built/include/get_x11.h:58:0,
from built/include/x11GraphicsPipe.h:24,
from built/include/x11GraphicsWindow.h:20,
from panda/src/tinydisplay/tinyXGraphicsPipe.h:22,
from panda/src/tinydisplay/config_tinydisplay.cxx:16,
from panda/src/tinydisplay/p3tinydisplay_composite1.cxx:2:
/usr/include/X11/extensions/xf86dga.h:9:2: warning: #warning “xf86dga.h is obsolete and may be removed in the future.” [-Wcpp]
#warning “xf86dga.h is obsolete and may be removed in the future.”
^
/usr/include/X11/extensions/xf86dga.h:10:2: warning: #warning “include <X11/extensions/Xxf86dga.h> instead.” [-Wcpp]
#warning “include <X11/extensions/Xxf86dga.h> instead.”
^
In file included from built/include/get_x11.h:58:0,
from built/include/x11GraphicsPipe.h:24,
from built/include/x11GraphicsWindow.h:20,
from panda/src/tinydisplay/tinyXGraphicsPipe.h:22,
from panda/src/tinydisplay/tinyXGraphicsPipe.cxx:18,
from panda/src/tinydisplay/p3tinydisplay_composite2.cxx:14:
/usr/include/X11/extensions/xf86dga.h:9:2: warning: #warning “xf86dga.h is obsolete and may be removed in the future.” [-Wcpp]
#warning “xf86dga.h is obsolete and may be removed in the future.”
^
/usr/include/X11/extensions/xf86dga.h:10:2: warning: #warning “include <X11/extensions/Xxf86dga.h> instead.” [-Wcpp]
#warning “include <X11/extensions/Xxf86dga.h> instead.”
^
//usr/lib/librfftw.so.2: undefined reference to fftw_make_node_real2hc' //usr/lib/librfftw.so.2: undefined reference tofftw_complete_twiddle’
//usr/lib/librfftw.so.2: undefined reference to fftw_gettimeofday_time_diff' //usr/lib/librfftw.so.2: undefined reference tofftw_wisdom_add’
//usr/lib/librfftw.so.2: undefined reference to fftw_malloc' //usr/lib/librfftw.so.2: undefined reference tofftw_use_plan’
//usr/lib/librfftw.so.2: undefined reference to fftw_make_node_rgeneric' //usr/lib/librfftw.so.2: undefined reference tofftw_destroy_table’
//usr/lib/librfftw.so.2: undefined reference to fftw_wisdom_lookup' //usr/lib/librfftw.so.2: undefined reference tofftw_free’
//usr/lib/librfftw.so.2: undefined reference to fftwnd_destroy_plan' //usr/lib/librfftw.so.2: undefined reference tofftwnd_work_size’
//usr/lib/librfftw.so.2: undefined reference to fftwnd_fprint_plan' //usr/lib/librfftw.so.2: undefined reference tofftw_gettimeofday_get_time’
//usr/lib/librfftw.so.2: undefined reference to fftw_make_plan' //usr/lib/librfftw.so.2: undefined reference tofftwnd_create_plans_generic’
//usr/lib/librfftw.so.2: undefined reference to fftw' //usr/lib/librfftw.so.2: undefined reference tofftw_make_node_hc2hc’
//usr/lib/librfftw.so.2: undefined reference to fftw_make_node_hc2real' //usr/lib/librfftw.so.2: undefined reference tofftw_destroy_plan_internal’
//usr/lib/librfftw.so.2: undefined reference to fftwnd_create_plans_specific' //usr/lib/librfftw.so.2: undefined reference tofftw_reverse_int_array’
//usr/lib/librfftw.so.2: undefined reference to fftw_fprint_plan' //usr/lib/librfftw.so.2: undefined reference tofftw_pick_better’
//usr/lib/librfftw.so.2: undefined reference to fftw_lookup' //usr/lib/librfftw.so.2: undefined reference tofftw_factor’
//usr/lib/librfftw.so.2: undefined reference to fftw_make_empty_table' //usr/lib/librfftw.so.2: undefined reference tofftw_insert’
//usr/lib/librfftw.so.2: undefined reference to fftw_die' //usr/lib/librfftw.so.2: undefined reference tofftwnd_new_plan_array’
//usr/lib/librfftw.so.2: undefined reference to fftw_estimate_node' //usr/lib/librfftw.so.2: undefined reference tofftwnd_create_plan_aux’
collect2: error: ld returned 1 exit status
The following command returned a non-zero value: g++ -o built/bin/pview -Lbuilt/lib -Lbuilt/tmp built/tmp/pview_pview.o built/lib/libp3framework.so built/lib/libpandaegg.so built/lib/libpanda.so built/lib/libpandaexpress.so built/lib/libp3dtool.so built/lib/libp3dtoolconfig.so built/lib/libp3pystub.a -pthread -L/usr/X11R6/lib -ldl