Command ['python', 'waf'] exited with code 1

728 views
Skip to first unread message

sach...@gmail.com

unread,
Apr 24, 2009, 5:53:05 AM4/24/09
to ns-3-users
Hi,

I am getting following error and not able to figure out why I am
getting this error.
Any help is highly appreciated.

Build failed
-> task failed (err #1):
{task: cxx ns3module_helpers.cc -> ns3module_helpers_3.o}
Traceback (most recent call last):
File "./build.py", line 106, in ?
sys.exit(main(sys.argv))
File "./build.py", line 97, in main
build_ns3(config)
File "./build.py", line 56, in build_ns3
run_command(["python", "waf"])
File "/root/Simulators/ns-allinone-3.4/util.py", line 24, in
run_command
raise CommandError("Command %r exited with code %i" % (argv,
retval))
util.CommandError: Command ['python', 'waf'] exited with code 1

regards
Sachin

Gustavo Carneiro

unread,
Apr 24, 2009, 6:05:02 AM4/24/09
to ns-3-...@googlegroups.com




Hi,

I am getting following error and not able to figure out why I am
getting this error.
Any help is highly appreciated.


What happened  here before the "Build failed" message?
 

Build failed
 -> task failed (err #1):
       {task: cxx ns3module_helpers.cc -> ns3module_helpers_3.o}
Traceback (most recent call last):
 File "./build.py", line 106, in ?
   sys.exit(main(sys.argv))
 File "./build.py", line 97, in main
   build_ns3(config)
 File "./build.py", line 56, in build_ns3
   run_command(["python", "waf"])
 File "/root/Simulators/ns-allinone-3.4/util.py", line 24, in
run_command
   raise CommandError("Command %r exited with code %i" % (argv,
retval))
util.CommandError: Command ['python', 'waf'] exited with code 1


We need more information; you did not paste the complete error.

eWQrds
Sachin




--
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert

Sachin Gupta

unread,
Apr 24, 2009, 6:26:00 AM4/24/09
to ns-3-...@googlegroups.com
Hi ,

In the ns-allinone-3.4 folder, i executed build.py on the shell.
I got following error.

[root@ggns1sbss06 ns-allinone-3.4]# ./build.py
# Build NS-3
Entering directory `./ns-3.4'
Note: configuring ns-3 without NSC
 =>  python waf configure --with-regression-traces ../ns-3.4-ref-traces --with-pybindgen ../pybindgen-0.10.0.630
Checking for program g++                 : ok /usr/bin/g++
Checking for program cpp                 : ok /usr/bin/cpp
Checking for program ar                  : ok /usr/bin/ar
Checking for program ranlib              : ok /usr/bin/ranlib
Checking for g++                         : ok 
Checking for program pkg-config          : ok /usr/bin/pkg-config
Checking for regression traces location  : ok ../ns-3.4-ref-traces (given)
Checking for -Wno-error=deprecated-declarations support : no
Checking for header stdlib.h                            : ok
Checking for header signal.h                            : ok
Checking for header pthread.h                           : ok
Checking for high precision time implementation         : 128-bit integer
Checking for header stdint.h                            : ok
Checking for header inttypes.h                          : ok
Checking for header sys/inttypes.h                      : not found
Checking for library rt                                 : ok
Checking for header netpacket/packet.h                  : ok
Checking for header linux/if_tun.h                      : ok
Requested 'gtk+-2.0 >= 2.12' but version of GTK+ is 2.4.13
Checking for pkg-config flags for GTK_CONFIG_STORE      : not found
Checking for pkg-config flags for LIBXML2               : ok 
Checking for library sqlite3                            : not found
Checking for NSC location                               : not found
Package goocanvas was not found in the pkg-config search path.
Perhaps you should add the directory containing `goocanvas.pc'
to the PKG_CONFIG_PATH environment variable
No package 'goocanvas' found
Checking for pkg-config flags for MOBILITY_VISUALIZER   : not found
Checking for program python                             : ok /usr/local/bin/python
Checking for Python version >= 2.3                      : ok 2.4.4
Checking for library python2.4                          : not found
Checking for library python2.4                          : ok
Checking for program python2.4-config                   : not found
Checking for program python-config-2.4                  : not found
Checking for header Python.h                            : ok
Checking for -fvisibility=hidden support                : yes
Checking for pybindgen location                         : ok ../pybindgen-0.10.0.630 (given)
Checking for Python module pybindgen                    : ok 
Checking for pybindgen version                          : ok 0.10.0.630
Checking for Python module pygccxml                     : not found
Checking for program sudo                               : ok /usr/bin/sudo
Checking for program hg                                 : not found
Checking for program valgrind                           : ok /usr/bin/valgrind
---- Summary of optional NS-3 features:
Threading Primitives          : enabled
Real Time Simulator           : enabled
Emulated Net Device           : enabled
Tap Bridge                    : enabled
GtkConfigStore                : not enabled (library 'gtk+-2.0 >= 2.12' not found)
XmlIo                         : enabled
SQlite stats data output      : not enabled (library 'sqlite3' not found)
Network Simulation Cradle     : not enabled (NSC not found (see option --with-nsc))
Python Bindings               : enabled
Python API Scanning Support   : not enabled (Missing 'pygccxml' Python module)
Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)
Configuration finished successfully (00:00:00); project is now ready to build.
 =>  python waf
Entering directory `/root/Simulators/ns-allinone-3.4/ns-3.4/build'
[557/639] cxx: bindings/python/ns3module_helpers.cc -> build/debug/bindings/python/ns3module_helpers_3.o
In file included from /usr/local/include/python2.4/Python.h:8,
                 from debug/bindings/python/ns3module.h:3,
                 from ../bindings/python/ns3module_helpers.cc:2:
/usr/local/include/python2.4/pyconfig.h:851:1: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdint.h:26,
                 from debug/ns3/ref-count-base.h:26,
                 from ../bindings/python/ns3module_helpers.cc:1:
/usr/include/features.h:150:1: this is the location of the previous definition
[564/639] cxx: build/debug/bindings/python/ns3_module_helper.cc -> build/debug/bindings/python/ns3_module_helper_3.o

Build failed
 -> task failed (err #1):
        {task: cxx ns3module_helpers.cc -> ns3module_helpers_3.o}
Traceback (most recent call last):
  File "./build.py", line 106, in ?
    sys.exit(main(sys.argv))
  File "./build.py", line 97, in main
    build_ns3(config)
  File "./build.py", line 56, in build_ns3
    run_command(["python", "waf"])
  File "/root/Simulators/ns-allinone-3.4/util.py", line 24, in run_command
    raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['python', 'waf'] exited with code 1

Thanks for your prompt response.

thanks & regards
Sachin
Reply all
Reply to author
Forward
0 new messages