Bug 1231

Summary: build was failed with error util.CommandError: Command ['python', 'waf'] exited with code 1
Product: ns-3 Reporter: Surya <ksp.nitw2008>
Component: build systemAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: RESOLVED INVALID    
Severity: major CC: ns-bugs, tomh, tommaso.pecorella
Priority: P5    
Version: ns-3.11   
Hardware: PC   
OS: Linux   

Description Surya 2011-08-01 20:17:37 UTC
~/repos/ns-3-allinone$ ./build.py --enable-examples --enable-tests
# Build NSC
Entering directory `nsc'
 =>  python scons.py
scons: Reading SConscript files ...
Checking target architecure...(cached) x86
Checking for C library fl... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
scons: done building targets.
Leaving directory `nsc'
# Building examples (by user request)
# Building tests (by user request)
# Build NS-3
Entering directory `./ns-3.11'
 =>  python waf configure --enable-examples --enable-tests --with-pybindgen ../pybindgen --with-nsc ../nsc
Checking for program gcc or cc           : /usr/bin/gcc 
Checking for program cpp                 : /usr/bin/cpp 
Checking for program ar                  : /usr/bin/ar 
Checking for program ranlib              : /usr/bin/ranlib 
Checking for gcc                         : ok  
Checking for program g++ or c++          : /usr/bin/g++ 
Checking for program ar                  : /usr/bin/ar 
Checking for program ranlib              : /usr/bin/ranlib 
Checking for g++                         : ok  
Checking for program pkg-config          : /usr/bin/pkg-config 
Checking for -Wl,--soname=foo support    : yes 
Checking for type uint128_t              : not found 
Checking for type __uint128_t            : not found 
Checking for high precision time implementation : cairo 128-bit integer 
Checking for header stdint.h                    : yes 
Checking for header inttypes.h                  : yes 
Checking for header sys/inttypes.h              : not found 
Checking for header stdlib.h                    : yes 
Checking for header signal.h                    : yes 
Checking for header pthread.h                   : yes 
Checking for header stdint.h                    : yes 
Checking for header inttypes.h                  : yes 
Checking for header sys/inttypes.h              : not found 
Checking for library rt                         : yes 
Checking for header netpacket/packet.h          : yes 
Checking for header linux/if_tun.h              : yes 
Checking for pkg-config flags for GTK_CONFIG_STORE  : ok  
Checking for pkg-config flags for LIBXML2           : ok  
Checking for NSC location                           : ok ../nsc (given) 
Checking for library dl                             : yes 
Checking for NSC supported architecture i686        : ok  
Checking for header sys/socket.h                    : yes 
Checking for header netinet/in.h                    : yes 
Checking for click location                         : not found 
boost headers                                       : not found 
library boost_signals                               : not found 
library boost_filesystem                            : not found 
boost headers                                       : not found 
library boost_signals                               : not found 
library boost_filesystem                            : not found 
Checking for library sqlite3                        : yes 
Checking for program python                         : /usr/bin/python 
Checking for Python version >= 2.3                  : ok 2.6.5 
Checking for library python2.6                      : yes 
Checking for program python2.6-config               : /usr/bin/python2.6-config 
Checking for header Python.h                        : yes 
Checking for -fvisibility=hidden support            : yes 
Checking for pybindgen location                     : ok ../pybindgen (given) 
Checking for Python module pybindgen                : ok  
Checking for pybindgen version                      : ok 0.15.0.785 
Checking for types uint64_t and unsigned long equivalency : no 
Checking for types uint64_t and unsigned long long equivalency : yes 
Checking for the apidefs that can be used for Python bindings  : gcc-ILP32 
Checking for type of bindings to build                         : modular 
Checking for Python module pygccxml                            : not found 
Checking for program mpic++                                    : not found 
Checking for program sudo                                      : /usr/bin/sudo 
Checking for program valgrind                                  : /usr/bin/valgrind 
Checking for pkg-config flags for GSL                          : ok  
Checking for -Wno-error=deprecated-declarations support        : yes 
Checking for -Wno-error=deprecated-declarations support        : yes 
Checking for -fstrict-aliasing support                         : yes 
Checking for -fstrict-aliasing support                         : yes 
Checking for -Wstrict-aliasing support                         : yes 
Checking for -Wstrict-aliasing support                         : yes 
Checking for program doxygen                                   : /usr/bin/doxygen 
---- Summary of optional NS-3 features:
Threading Primitives          : enabled
Real Time Simulator           : enabled
Emulated Net Device           : enabled
Tap Bridge                    : enabled
GtkConfigStore                : enabled
XmlIo                         : enabled
Network Simulation Cradle     : enabled
NS-3 Click Integration        : not enabled (nsclick not enabled (see option --with-nsclick))
NS-3 OpenFlow Integration     : not enabled (Required boost libraries not found)
SQlite stats data output      : enabled
Python Bindings               : enabled
Python API Scanning Support   : not enabled (Missing 'pygccxml' Python module)
MPI Support                   : not enabled (option --enable-mpi not selected)
Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)
Build tests                   : enabled
Build examples                : enabled
Static build                  : not enabled (option --enable-static not selected)
GNU Scientific Library (GSL)  : enabled
'configure' finished successfully (5.796s)
 =>  python waf
Waf: Entering directory `/home/surya/repos/ns-3-allinone/ns-3.11/build'
[   2/1709] command (${PYTHON}): bindings/python/ns3modulegen-modular.py src/network/bindings/modulegen__gcc_ILP32.py -> build/debug/src/network/bindings/ns3module.cc build/debug/src/network/bindings/ns3module.h build/debug/src/network/bindings/ns3modulegen.log
[   3/1709] command (${PYTHON}): bindings/python/ns3modulegen-modular.py src/config-store/bindings/modulegen__gcc_ILP32.py src/config-store/bindings/modulegen_customizations.py -> build/debug/src/config-store/bindings/ns3module.cc build/debug/src/config-store/bindings/ns3module.h build/debug/src/config-store/bindings/ns3modulegen.log
[   4/1709] command (${PYTHON}): bindings/python/ns3modulegen-modular.py src/internet/bindings/modulegen__gcc_ILP32.py -> build/debug/src/internet/bindings/ns3module.cc build/debug/src/internet/bindings/ns3module.h build/debug/src/internet/bindings/ns3modulegen.log
[   5/1709] command (${PYTHON}): bindings/python/ns3modulegen-modular.py src/propagation/bindings/modulegen__gcc_ILP32.py -> build/debug/src/propagation/bindings/ns3module.cc build/debug/src/propagation/bindings/ns3module.h build/debug/src/propagation/bindings/ns3modulegen.log
Waf: Leaving directory `/home/surya/repos/ns-3-allinone/ns-3.11/build'
Build failed:
 -> task failed (err #1): 
	{task: command_task ns3modulegen-modular.py,modulegen__gcc_ILP32.py -> ns3module.cc,ns3module.h,ns3modulegen.log}
 -> task failed (err #1): 
	{task: command_task ns3modulegen-modular.py,modulegen__gcc_ILP32.py,modulegen_customizations.py -> ns3module.cc,ns3module.h,ns3modulegen.log}
 -> task failed (err #1): 
	{task: command_task ns3modulegen-modular.py,modulegen__gcc_ILP32.py -> ns3module.cc,ns3module.h,ns3modulegen.log}
 -> task failed (err #1): 
	{task: command_task ns3modulegen-modular.py,modulegen__gcc_ILP32.py -> ns3module.cc,ns3module.h,ns3modulegen.log}
Traceback (most recent call last):
  File "./build.py", line 140, in <module>
    sys.exit(main(sys.argv))
  File "./build.py", line 131, in main
    build_ns3(config, build_examples, build_tests)
  File "./build.py", line 62, in build_ns3
    run_command(["python", "waf"])
  File "/home/surya/repos/ns-3-allinone/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
Comment 1 Gustavo J. A. M. Carneiro 2011-08-01 20:27:35 UTC
Did you try to make --apiscan and it failed?  If so, please "hg revert" the bindings directory(ies).
Please attach build/debug/src/network/bindings/ns3modulegen.log
Comment 2 Tommaso Pecorella 2013-08-06 14:13:11 UTC
No informations about this bug (it it was a bug) in two years. I'm assuming it was not a bug after all.