Bugzilla – Bug 2670
-> task in 'ns3module_lte' failed (exit status 4):
Last modified: 2017-03-16 01:04:06 EDT
Hi, I try to run command ./build.py --enable-examples --enable-tests but got error as below. Please help. Thank you. [1268/2631] Compiling src/lte/examples/lena-frequency-reuse.cc [1269/2631] Compiling src/lte/examples/lena-deactivate-bearer.cc 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. Waf: Leaving directory `/home/hasmira/ns3/ns-allinone-3.26/ns-3.26/build' Build failed -> task in 'ns3module_lte' failed (exit status 4): {task 140373112937168: cxx ns3module.cc -> ns3module.cc.7.o} ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-std=c++11', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-fno-strict-aliasing', '-fstack-protector-strong', '-fwrapv', '-fvisibility=hidden', '-Wno-array-bounds', '-pthread', '-pthread', '-I.', '-I..', '-Isrc/lte/bindings', '-I../src/lte/bindings', '-I/usr/include/python2.7', '-I/usr/include/x86_64-linux-gnu/python2.7', '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/gio-unix-2.0', '-I/usr/include/cairo', '-I/usr/include/pango-1.0', '-I/usr/include/atk-1.0', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/harfbuzz', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/freetype2', '-I/usr/include/libxml2', '-DNS3_BUILD_PROFILE_DEBUG', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '-DNS_DEPRECATED=', '-DNS3_DEPRECATED_H', '-DHAVE_PYEXT=1', '-D_FORTIFY_SOURCE=2', '-DNDEBUG', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', 'src/lte/bindings/ns3module.cc', '-c', '-o', '/home/hasmira/ns3/ns-allinone-3.26/ns-3.26/build/src/lte/bindings/ns3module.cc.7.o'] Traceback (most recent call last): File "./build.py", line 171, in <module> sys.exit(main(sys.argv)) File "./build.py", line 162, in main build_ns3(config, build_examples, build_tests, args, build_options) File "./build.py", line 82, in build_ns3 run_command([sys.executable, "waf", "build"] + build_options) File "/home/hasmira/ns3/ns-allinone-3.26/util.py", line 25, in run_command raise CommandError("Command %r exited with code %i" % (argv, retval)) util.CommandError: Command ['/usr/bin/python', 'waf', 'build'] exited with code 1
(In reply to mira_taro from comment #0) > Hi, > > I try to run command ./build.py --enable-examples --enable-tests > but got error as below. Please help. Thank you. > > > [1268/2631] Compiling src/lte/examples/lena-frequency-reuse.cc > [1269/2631] Compiling src/lte/examples/lena-deactivate-bearer.cc > g++: internal compiler error: Killed (program cc1plus) > Please submit a full bug report, This kind of error seems to occur when the machine runs out of memory. How much RAM do you have, and can you provide other details about the system (which operating system release, and which version of g++ is running)?
(In reply to Tom Henderson from comment #1) > (In reply to mira_taro from comment #0) > > Hi, > > > > I try to run command ./build.py --enable-examples --enable-tests > > but got error as below. Please help. Thank you. > > > > > > [1268/2631] Compiling src/lte/examples/lena-frequency-reuse.cc > > [1269/2631] Compiling src/lte/examples/lena-deactivate-bearer.cc > > g++: internal compiler error: Killed (program cc1plus) > > Please submit a full bug report, > > This kind of error seems to occur when the machine runs out of memory. How > much RAM do you have, and can you provide other details about the system > (which operating system release, and which version of g++ is running)? Hi Tom, Thank you for replying my email. I'm using OS : UbuntuMate 16.04 RAM/Base Memory : 1024 MB Processor : 2CPUs Version of g++ : g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 Should I upgrade the RAM in my virtualbox? Thanks, Regards, Hasmira
> > Should I upgrade the RAM in my virtualbox? Yes, please try that.