ns3 instaal build error

2,771 views
Skip to first unread message

박지영

unread,
Jul 9, 2015, 3:34:26 AM7/9/15
to ns-3-...@googlegroups.com
when I run script it show this error
./waf --run hello-simulator

Waf: Entering directory `/home/young/ns3/ns-allinone-3.23/ns-3.23/build'
[ 900/2443] cxx: build/src/wimax/bindings/ns3module.cc -> build/src/wimax/bindings/ns3module.cc.7.o
[ 928/2443] cxx: build/src/wifi/bindings/ns3module.cc -> build/src/wifi/bindings/ns3module.cc.7.o
[1049/2443] cxx: build/src/sixlowpan/bindings/ns3module.cc -> build/src/sixlowpan/bindings/ns3module.cc.7.o
[1167/2443] cxx: build/src/lte/bindings/ns3module.cc -> build/src/lte/bindings/ns3module.cc.7.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.6/README.Bugs> for instructions.
Waf: Leaving directory `/home/young/ns3/ns-allinone-3.23/ns-3.23/build'
Build failed
 -> task in 'ns3module_lte' failed (exit status 4): 
{task 54056144: cxx ns3module.cc -> ns3module.cc.7.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-fvisibility=hidden', '-Wno-array-bounds', '-pthread', '-pthread', '-I.', '-I..', '-Isrc/lte/bindings', '-I../src/lte/bindings', '-I/usr/include/python2.7', '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/libxml2', '-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_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DNS_DEPRECATED=', '-DNS3_DEPRECATED_H', '-DNDEBUG', 'src/lte/bindings/ns3module.cc', '-c', '-o', 'src/lte/bindings/ns3module.cc.7.o']


so, do
./waf configure --build-profile=debug --enable-examples --enable-tests
./waf

but it still this error

[1794/2443] cxx: build/src/lte/bindings/ns3module.cc -> build/src/lte/bindings/ns3module.cc.7.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.6/README.Bugs> for instructions.
Waf: Leaving directory `/home/young/ns3/ns-allinone-3.23/ns-3.23/build'
Build failed
 -> task in 'ns3module_lte' failed (exit status 4): 
{task 55391440: cxx ns3module.cc -> ns3module.cc.7.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-fvisibility=hidden', '-Wno-array-bounds', '-pthread', '-pthread', '-I.', '-I..', '-Isrc/lte/bindings', '-I../src/lte/bindings', '-I/usr/include/python2.7', '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/libxml2', '-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_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DNS_DEPRECATED=', '-DNS3_DEPRECATED_H', '-DNDEBUG', 'src/lte/bindings/ns3module.cc', '-c', '-o', 'src/lte/bindings/ns3module.cc.7.o']

Thank you for your help


Tommaso Pecorella

unread,
Jul 9, 2015, 9:00:52 AM7/9/15
to ns-3-...@googlegroups.com
Hi,

usually this error means that there's a problem elsewhere. Strange enough, it happens when you run out of disk space.
Please double check that your computer has enough RAM and disk available.

Have fun,

T.

Mohammad Abu Shattal

unread,
Jan 18, 2016, 1:58:25 PM1/18/16
to ns-3-users
Hello Everybody,
I have the same issues when I tried installing ns3 on UDoo Quad with 8GB SD Card. Following advice from Tommaso and cooperating with my friend Alan Irwin; I freed some disk space and increased the swap file size and it works fine.
Here is the configuration that works for me:
1) Hardware: Udoo Quad. 1GB RAM, 32GB SD Card . [1.2GB or more space free in  / in my case ]
2) Architecture: armhf
2) Operating System: Debian Wheezy (also apt-get update and apt-get Upgrade to Jessie works for me).
3) ns3 Version: ns3-24 with dce-ns3 ( bake.py configure -e dce-ns3-1.7)
4)  Swap file Size: 2048Mb

Notice that this configuration works fine with me even though it complains about missing libc and libc-debug and didn't install netanim and elf-loader. I tried to install gcc-multilib and g++-mutlilib, but couldn't  since there is no repository support these two libraries for armhf arch. I'm concern if this installation will affect future code, but for the time being it is working fine for me since it installed ns3 with python bindings enabled.
I hope this information would helpful for somebody.

Best Regards,
Mohammad Abu Shattal

Divya Muthiah

unread,
Oct 2, 2016, 9:30:16 PM10/2/16
to ns-3-users


Hi all, 

i have modified a program to develop a tree topology. when i copied it to the scratch folder and tried runnin git it show the following error, please help me.

source not found: 'second.cc' in bld(use=['ns3-core', 'ns3-point-to-point', 'ns3-csma', 'ns3-internet', 'ns3-applications'], features=['cxx', 'cxxprogram'], idx=3, meths=['process_rule', 'process_source', 'apply_link', 'process_use', 'propagate_uselib_vars', 'apply_incpaths', 'collect_compilation_db_tasks', 'create_task_macapp', 'create_task_macplist', 'install_boost', 'set_full_paths_hpux', 'set_macosx_deployment_target'], prec=defaultdict(<type 'list'>, {}), _name='second', posted=True, source='second.cc', ns3_module_dependencies=['ns3-core', 'ns3-point-to-point', 'ns3-csma', 'ns3-internet', 'ns3-applications'], mappings={}, path=/home/divyamuthiah/Desktop/ns-allinone-3.25/ns-3.25/examples/tutorial, includes='#', is_ns3_program=True, target='ns3.25-second-debug') in /home/divyamuthiah/Desktop/ns-allinone-3.25/ns-3.25/examples/tutorial

The program im trying to run in ./waf --run  --animFile=tree.xml"

fatoumata sorra

unread,
Mar 5, 2018, 3:38:55 AM3/5/18
to ns-3-users
Hello every one am a new in ns3 platform, but i was following a series of tutorials about ns3 installation. Therefore i wanted to install netanim but when i run it, it gives me the following errors Build failed
 -> task in 'first' failed (exit status 1):
    {task 3071755084L: cxx first.cc -> first.cc.4.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-std=c++11', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-pthread', '-I.', '-I..', '-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', '../scratch/first.cc', '-c', '-o', '/home/fatimah/Desktop/ns-allinone-3.27/ns-3.27/build/scratch/first.cc.4.o']
Can anyone help me please. thanks
Reply all
Reply to author
Forward
0 new messages