Error of building ns-3.15 on ubuntu 13.10

881 views
Skip to first unread message

Tomokazu Yoshida

unread,
Apr 7, 2014, 12:06:07 PM4/7/14
to ns-3-...@googlegroups.com
Hello, 

I am now in trouble to build ns-3.15 on ubuntu 13.10.
Basically I followed the tutorial P.8 - P.10 (http://www.nsnam.org/docs/release/3.15/tutorial/ns-3-tutorial.pdf) and I did some steps as follows:

----
(Tutorial P.10 shows the command "wget http://www.nsnam.org/releases/ns-allinone-3.15.tar.bz2" in order to get "ns-allinone-3.15.tar.bz2", but I got error (404 NOT FOUND) so I downloaded it manually.)

2. I decompressed it by "tar -xvf ns-allinone-3.15.tar.bz2".

3. Moving to the directory "ns-allinone-3.15", and I tried to build it by "./build.py --enable-examples --enable-tests".
----



Then unfortunately, I got the error as follows: 
----
Could not find qmake-qt4 in the default path

 =>  qmake NetAnim.pro
qmake: could not find a Qt installation of ''
Error building NetAnim.
Skipping NetAnim ....
Leaving directory `netanim-3.101'
# Building examples (by user request)
# Building tests (by user request)
# Build NS-3
Entering directory `./ns-3.15'
Note: configuring ns-3 without NSC
 =>  /usr/bin/python waf configure --enable-examples --enable-tests --with-pybindgen ../pybindgen-0.15.0.809
Error: Cannot unpack waf lib into /home/tomokazy/tarballs/ns-allinone-3.15/ns-3.15/.waf-1.6.11-30618c54883417962c38f5d395f83584
Move waf into a writeable directory

Traceback (most recent call last):
  File "./build.py", line 214, in <module>
    sys.exit(main(sys.argv))
  File "./build.py", line 205, in main
    build_ns3(config, build_examples, build_tests, args, build_options)
  File "./build.py", line 97, in build_ns3
    run_command(cmd) # waf configure ...
  File "/home/tomokazy/tarballs/ns-allinone-3.15/util.py", line 24, in run_command
    raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['/usr/bin/python', 'waf', 'configure', '--enable-examples', '--enable-tests', '--with-pybindgen', u'../pybindgen-0.15.0.809'] exited with code 1
----

Honestly I spent a lot of hours to fix this error but I couldn't. I would like someone to help me.
I should use ns-3.15 specifically in order to execute the source which was made by it.

Thank a lot in advance. 

Tommaso Pecorella

unread,
Apr 7, 2014, 5:12:43 PM4/7/14
to ns-3-...@googlegroups.com
Move waf into a writeable directory

it means that you don't have write permissions on the directory you're trying to use.
Check your OS manual (or google it) to modify the directory permissions.

Cheers,

T.

Tomokazu Yoshida

unread,
Apr 7, 2014, 11:34:13 PM4/7/14
to ns-3-...@googlegroups.com
Hello Tommaso,

Thank you for your reply. 

Actually the error "Move waf into a writeable directory" was solved. 
Unfortunately I got another error as follow:
----
Build failed
 -> task in 'ns3-network' failed (exit status 1): 
    {task 43017744: cxx ipv6-address.cc -> ipv6-address.cc.1.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-Ibuild', '-I.', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_PACKET_H=1', '-DHAVE_DL=1', '-DSQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DENABLE_GSL', '../src/network/utils/ipv6-address.cc', '-c', '-o', 'src/network/utils/ipv6-address.cc.1.o']

Traceback (most recent call last):
  File "./build.py", line 214, in <module>
    sys.exit(main(sys.argv))
  File "./build.py", line 205, in main
    build_ns3(config, build_examples, build_tests, args, build_options)
  File "./build.py", line 98, in build_ns3
    run_command([sys.executable, "waf", "build"] + build_options)

  File "/home/tomokazy/tarballs/ns-allinone-3.15/util.py", line 24, 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
----

Then I googled the error, and some results of search shows this is bug as follows:

I would like you to help me to solve this problem.
Thanks a lot in advance.

Tommaso Pecorella

unread,
Apr 8, 2014, 2:13:08 AM4/8/14
to ns-3-...@googlegroups.com
Hi,

I was just waiting this... no, I can't.

As stated multiple times, recent C++ compilers are way more strict than older ones with respect to syntax and errors checking. This problem was pointed out somewhere between 3.17 and 3.19, and we did a LOT of work to remove these errors.
A backward solution for 3.15 doesn't exist, as the amount of work would be the same as forward-porting anything written for 3.15 (or older ns-3 version) to 3.19.

The only things you can do are:
  1. Forward port the stuff you have to 3.19 or newer
  2. Use an older linux distribution
  3. Install an old gcc package (along with all the dev libraries and so on)
  4. Tweak the gcc compilation and linking parameters and see if you can find the ones disabling the checks
Good luck...

T.

YS JAGAN

unread,
Jan 10, 2018, 11:00:12 AM1/10/18
to ns-3-users
how you solved  this error

pdbarnes

unread,
Jan 12, 2018, 7:15:05 PM1/12/18
to ns-3-users
Current release is ns-3.27. It’s extremely unlikely you’ Getuch help on such an old release. Please update to the current version.

Peter

ade arta

unread,
Apr 30, 2019, 4:50:03 AM4/30/19
to ns-3-users
basically i think you should giving sudo in front of the command. and it's work for me.
Reply all
Reply to author
Forward
0 new messages