failed to build ns-allinone-3.17

1,082 views
Skip to first unread message

foru...@gmail.com

unread,
Jul 9, 2013, 4:14:26 AM7/9/13
to ns-3-...@googlegroups.com
Hi
Does anyone run into the build issue on ns-allinone-3.17 as I did?
 
inux version 2.6.18-238.9.1.el5 (mock...@x86-002.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50))
./build.py --enable-examples --enable-tests
# Build NetAnim
Entering directory `netanim-3.103'
=> qmake -v
Could not find qmake in the default path
=> qmake-qt4 -v
Could not find qmake-qt4 in the default path
=> qmake NetAnim.pro
Error building NetAnim. Ensure the path to qmake is correct.
Could not find qmake or qmake-qt4 in the default PATH.
Use ./build.py --qmake-path <Path-to-qmake>, if qmake is installed in a non-standard location
Note: Some systems use qmake-qt4 instead of qmake
Skipping NetAnim ....
Leaving directory `netanim-3.103'
# Building examples (by user request)
# Building tests (by user request)
# Build NS-3
Entering directory `./ns-3.17'
=> /usr/bin/python waf configure --enable-examples --enable-tests --with-pybindgen ../pybindgen-0.16.0.825
Traceback (most recent call last):
File "/auto/crdc_sprtg_dump/lzhao2/ns_3/ns-allinone-3.17/ns-3.17/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py", line 97, in waf_entry_point
run_commands()
File "/auto/crdc_sprtg_dump/lzhao2/ns_3/ns-allinone-3.17/ns-3.17/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py", line 149, in run_commands
parse_options()
File "/auto/crdc_sprtg_dump/lzhao2/ns_3/ns-allinone-3.17/ns-3.17/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py", line 127, in parse_options
Context.create_context('options').execute()
File "/auto/crdc_sprtg_dump/lzhao2/ns_3/ns-allinone-3.17/ns-3.17/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Options.py", line 134, in execute
super(OptionsContext,self).execute()
File "/auto/crdc_sprtg_dump/lzhao2/ns_3/ns-allinone-3.17/ns-3.17/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py", line 87, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File "/auto/crdc_sprtg_dump/lzhao2/ns_3/ns-allinone-3.17/ns-3.17/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py", line 128, in recurse
user_function(self)
File "/auto/crdc_sprtg_dump/lzhao2/ns_3/ns-allinone-3.17/ns-3.17/wscript", line 209, in options
opt.recurse('src')
File "/auto/crdc_sprtg_dump/lzhao2/ns_3/ns-allinone-3.17/ns-3.17/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py", line 128, in recurse
user_function(self)
File "/auto/crdc_sprtg_dump/lzhao2/ns_3/ns-allinone-3.17/ns-3.17/src/wscript", line 44, in options
opt.load('boost', tooldir=['waf-tools'])
File "/auto/crdc_sprtg_dump/lzhao2/ns_3/ns-allinone-3.17/ns-3.17/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py", line 81, in load
module=load_tool(t,path)
File "/auto/crdc_sprtg_dump/lzhao2/ns_3/ns-allinone-3.17/ns-3.17/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py", line 296, in load_tool
__import__(tool)
File "waf-tools/boost.py", line 359
except Errors.ConfigurationError as exc:
^
SyntaxError: invalid syntax

Daniel Camara

unread,
Jul 9, 2013, 4:35:00 AM7/9/13
to ns-3-...@googlegroups.com
Did you try to use bake? Call, from the ns-allinone-3.17 directory:
> bake/bake.py configure -e ns-allinone-3.17
> bake/bake.py deploy
> --
> You received this message because you are subscribed to the Google Groups
> "ns-3-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ns-3-users+...@googlegroups.com.
> To post to this group, send email to ns-3-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/ns-3-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Best regards...

Daniel

li zhao

unread,
Jul 9, 2013, 4:39:10 AM7/9/13
to ns-3-...@googlegroups.com
Hi Daniel,
 
I've tried, but still failed:
 
./bake.py configure -e ns-allinone-3.17
  File "./bake.py", line 13
    except SystemExit as e:
                       ^
SyntaxError: invalid syntax
 
Do you have any ideas on it?


2013/7/9 Daniel Camara <daniel...@gmail.com>

--
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/93vYvAtWXh4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

Daniel Camara

unread,
Jul 9, 2013, 4:46:15 AM7/9/13
to ns-3-...@googlegroups.com
In which directory you are?

Please post the result of "./bake.py --debug configure -e ns-allinone-3.17"

li zhao

unread,
Jul 9, 2013, 4:49:57 AM7/9/13
to ns-3-...@googlegroups.com
I entered in the subdirectory 'bake' under ns-allinone-3.17.
The result of "./bake.py --debug configure -e ns-allinone-3.17" is the same as before:
 
./bake.py  --debug configure -e ns-allinone-3.17
  File "./bake.py", line 13
    except SystemExit as e:
                       ^
SyntaxError: invalid syntax


2013/7/9 Daniel Camara <daniel...@gmail.com>

Daniel Camara

unread,
Jul 9, 2013, 5:22:33 AM7/9/13
to ns-3-...@googlegroups.com
Ok lets see, in this order:

1. Do you have python in your machine? (call python --version)

if not
install python.
else {
try {
> export BAKE_HOME=`pwd`
> export PATH=$PATH:$BAKE_HOME
> export PYTHONPATH=$PYTHONPATH:$BAKE_HOME
}
}

2. now tell me which is the output of:
> ./bake.py check

li zhao

unread,
Jul 9, 2013, 5:29:34 AM7/9/13
to ns-3-...@googlegroups.com
1. python -V
Python 2.4.3
2.
bash-3.2$ export BAKE_HOME=`pwd`
bash-3.2$ export PATH=$PATH:$BAKE_HOME
bash-3.2$ export PYTHONPATH=$PYTHONPATH:$BAKE_HOME
bash-3.2$ ./bake.py check

Daniel Camara

unread,
Jul 9, 2013, 5:46:29 AM7/9/13
to ns-3-...@googlegroups.com
Hummm.... There is nothing that appears from the ./bake.py check?!?!
Apart from the version of your python, that is kind of old, I have no
other clues. Maybe is even this that is bothering the build.py
also... I don't know.

Well you can try:
- update your python
- (returning to the original problem) call build.py again...
- OK, I know I am biased, and kind of lazy, but I would try to use
bake because it will save you a lot of headache to install all the
ns-3 components. It is strange that the ./bake.py check didn't even
return an error!!! Please try ./bake.py --debug check

Regards...

Daniel

li zhao

unread,
Jul 9, 2013, 5:49:27 AM7/9/13
to ns-3-...@googlegroups.com
Which version of Python should I upgrade to?


2013/7/9 Daniel Camara <daniel...@gmail.com>

Daniel Camara

unread,
Jul 9, 2013, 5:56:56 AM7/9/13
to ns-3-...@googlegroups.com
I have 2.7.3 here and everything goes smooth!

li zhao

unread,
Jul 9, 2013, 10:13:14 AM7/9/13
to ns-3-...@googlegroups.com
I upgrade my python to 2.7.5, but still got some warnings from bake:
 
/bake.py check
>>> Old Python version detected, please install a newer one
 > Python - OK
 > GNU C++ compiler - OK
 > Mercurial - is missing
 > CVS - OK
 > GIT - OK
 > Bazaar - is missing
 > Tar tool - OK
 > Unzip tool - OK
 > Unrar tool - is missing
 > 7z  data compression utility - is missing
 > XZ data compression utility - is missing
 > Make - OK
 > cMake - is missing
 > patch tool - OK
 > autoreconf tool - OK
Besides, I found several tools are missing, can you help me to check if it is a  must to install them?


2013/7/9 Daniel Camara <daniel...@gmail.com>

li zhao

unread,
Jul 9, 2013, 10:14:41 AM7/9/13
to ns-3-...@googlegroups.com
Besides, when I run with the command "build.py", I got the following info:
 
Build failed
 -> task in 'ns3-lte' failed (exit status 1):
        {task 331935184: cxx lte-spectrum-phy.cc -> lte-spectrum-phy.cc.1.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-I.', '-I..', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '../src/lte/model/lte-spectrum-phy.cc', '-c', '-o', 'src/lte/model/lte-spectrum-phy.cc.1.o']
 -> task in 'ns3module_energy' failed (exit status 1):
        {task 333669328: cxx ns3module.cc -> ns3module.cc.7.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-fno-strict-aliasing', '-fexceptions', '-fstack-protector', '-m64', '-mtune=generic', '-fPIC', '-fno-strict-aliasing', '-fvisibility=hidden', '-pthread', '-I.', '-I..', '-Isrc/energy/bindings', '-I../src/energy/bindings', '-I/usr/include/python2.4', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DNS_DEPRECATED=', '-DNS3_DEPRECATED_H', '-DNDEBUG', '-D_GNU_SOURCE', 'src/energy/bindings/ns3module.cc', '-c', '-o', 'src/energy/bindings/ns3module.cc.7.o']

Traceback (most recent call last):
  File "./build.py", line 170, in <module>
    sys.exit(main(sys.argv))
  File "./build.py", line 161, in main
    build_ns3(config, build_examples, build_tests, args, build_options)
  File "./build.py", line 81, in build_ns3
    run_command([sys.executable, "waf", "build"] + build_options)
  File "/auto/crdc_sprtg_dump/lzhao2/ns_3/ns-allinone-3.17/util.py", line 24, in run_command
    raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['/auto/crdc_sprtg_dump/lzhao2/ns_3/local/bin/python2.7', 'waf', 'build'] exited with code 1
Any ideas on it?


2013/7/9 li zhao <foru...@gmail.com>

Daniel Camara

unread,
Jul 9, 2013, 10:49:26 AM7/9/13
to ns-3-...@googlegroups.com
The first line is still odd, for any python newer than 2.6 it
shouldn't show ">>> Old Python version detected, please install a
newer one". Are you sure about the version of Python you are using?

Well the missing tools means you will not be able to download and
compile part of the tools, including ns-3 itself, as it is in a
mercurial repository. Pythionbyindings is in a Bazaar, also a no deal.
So you should try to install (apt-get/yum) these tools.

I have no idea what happened with the build.py, here it works. I
can't look into this specific error message now, sorry.

However, I have two things you can try, (after you see the python
version in use, because that message from bake kind of stinks... so it
is better to check it first)

install the missing packages, for Bake, and try again.

If does not work, if you have the dependencies OK, go to the Bake
directory and do
> ./bake.py configure -e ns-3.17
> ./bake.py deploy -vv

You will re-download everything inside the bake directory but should work :)

Sorry for not being able to be more helpful :(

Best regards...

Daniel
Reply all
Reply to author
Forward
0 new messages