Cannot compile ns3-dev

1,992 views
Skip to first unread message

Jose Saldana

unread,
Jun 6, 2017, 2:40:39 PM6/6/17
to ns-3-users
Hello,

I am using ns-3.26 without problems, but there are some things about wifi aggregation that are not included, but have been included in ns3-dev.

I have followed these instructions in https://www.nsnam.org/ns-3-dev/download/ in two different computers, but the compiler always raises some errors.


I would like to remark that both computers can compile and run ns-3.26 without problems.


Computer 1: Fedora release 22 (Twenty Two) (uname -r -> 4.4.14-200.fc22.x86_64)

When I run $ ./build.py, I obtain this error:

[1157/1936] Compiling src/mesh/model/dot11s/ie-dot11s-rann.cc
In file included from src/network/bindings/ns3module.cc:1:0:
src/network/bindings/ns3module.h: In member function ‘void PyNs3QueueBase__PythonHelper::DoNsLog__parent_caller(ns3::LogLevel, std::string)’:
src/network/bindings/ns3module.h:2383:7: error: ‘DoNsLog’ is not a member of ‘ns3::QueueBase’
     { ns3::QueueBase::DoNsLog(level, str); }
       ^

Waf: Leaving directory `/home/jsaldana/ns3dev-2017.06.06/ns-3-allinone/ns-3-dev/build'
Build failed
 -> task in 'ns3module_network' failed (exit status 1):
        {task 140236776023568: 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', '-fexceptions', '-fstack-protector-strong', '-m64', '-mtune=generic', '-fPIC', '-fwrapv', '-fexceptions', '-fstack-protector-strong', '-m64', '-mtune=generic', '-fPIC', '-fwrapv', '-fvisibility=hidden', '-Wno-array-bounds', '-pthread', '-pthread', '-I.', '-I..', '-Isrc/network/bindings', '-I../src/network/bindings', '-I/usr/include/python2.7', '-I/usr/include/gtk-2.0', '-I/usr/lib64/gtk-2.0/include', '-I/usr/include/pango-1.0', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/pixman-1', '-I/usr/include/libdrm', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/libpng16', '-I/usr/include/harfbuzz', '-I/usr/include/glib-2.0', '-I/usr/lib64/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_GNU_SOURCE', '-DNDEBUG', '-D_GNU_SOURCE', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', 'src/network/bindings/ns3module.cc', '-c', '-o', '/home/jsaldana/ns3dev-2017.06.06/ns-3-allinone/ns-3-dev/build/src/network/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/jsaldana/ns3dev-2017.06.06/ns-3-allinone/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


Computer 2: Ubuntu for Windows (windows 10),

If I do this

unzip ns-3-dev-444dfd0968eb.zip
cd ns-3-dev-444dfd0968eb/
./waf configure
./waf

 I obtain this error:

[ 899/1812] Compiling src/lte/model/lte-handover-management-sap.cc
Waf: Leaving directory `/home/jsaldana/ns-3-dev-444dfd0968eb/build'
Build failed
 -> task in 'ns3-wifi' failed (exit status 1):
        {task 140633543885584: cxx wifi-mac-queue.cc -> wifi-mac-queue.cc.1.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-std=c++11', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-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', '../src/wifi/model/wifi-mac-queue.cc', '-c', '-o', '/home/jsaldana/ns-3-dev-444dfd0968eb/build/src/wifi/model/wifi-mac-queue.cc.1.o']


If I do this:
cd ns-3-dev
./waf configure
./waf

I obtain this error:
[1267/1812] Compiling src/wimax/model/wimax-tlv.cc
Waf: Leaving directory `/home/jsaldana/ns-3-dev/build'
Build failed
 -> task in 'ns3-traffic-control' failed (exit status 1):
        {task 140274153854992: cxx queue-disc.cc -> queue-disc.cc.1.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-std=c++11', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-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', '../src/traffic-control/model/queue-disc.cc', '-c', '-o', '/home/jsaldana/ns-3-dev/build/src/traffic-control/model/queue-disc.cc.1.o']

Is there anything I am doing wrong? I am just following https://www.nsnam.org/ns-3-dev/download/

Thanks in advance!

Tom Henderson

unread,
Jun 6, 2017, 7:23:08 PM6/6/17
to ns-3-...@googlegroups.com
On 06/06/2017 11:40 AM, Jose Saldana wrote:
> Hello,
>
> I am using ns-3.26 without problems, but there are some things about
> wifi aggregation that are not included, but have been included in ns3-dev.
>
> I have followed these instructions in
> https://www.nsnam.org/ns-3-dev/download/ in two different computers, but
> the compiler always raises some errors.
>
> I am using this version: http://code.nsnam.org/ns-3-dev/file/444dfd0968eb
>
> I would like to remark that both computers can compile and run ns-3.26
> without problems.

We are working through an issue on the development tree that blocks the
compilation of python bindings.

If you do not need Python, can you try to build it a different way until
this is resolved?

./build.py -- --disable-python

- Tom

Jose Saldana

unread,
Jun 7, 2017, 4:52:09 AM6/7/17
to ns-3-...@googlegroups.com
It works in both machines (in Ubuntu for Windows I also had to update the compiler).

Thanks a lot!

Jose



--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
--- You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/aMijN048FK0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

jnritw...@gmail.com

unread,
Apr 23, 2018, 1:35:59 AM4/23/18
to ns-3-users
build failed
 -> task in 'ns3module_dsr' failed (exit status 1):
    {task 139678426389904: 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/dsr/bindings', '-I../src/dsr/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/dsr/bindings/ns3module.cc', '-c', '-o', '/home/ritwick/ns-allinone-3.26/ns-3.26/build/src/dsr/bindings/ns3module.cc.7.o']

getting the following error some one please help me .

Reply all
Reply to author
Forward
0 new messages