Bug 1262

Summary: Cannot build ns-3.12.1 on RHEL 5.7
Product: ns-3 Reporter: shakour <abuzneid>
Component: build systemAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: RESOLVED INVALID    
Severity: critical CC: ns-bugs, vedran, vinay
Priority: P5    
Version: ns-3.12   
Hardware: PC   
OS: Linux   

Description shakour 2011-09-19 17:33:01 UTC
1. I am trying to build ns-3.12.1

2. System: PC I386, 32-bit, RHEL 5.7

3. 
[root@localhost ns-3.12.1]# uname -a
Linux localhost.localdomain 2.6.18-274.3.1.el5xen #1 SMP Fri Aug 26 19:01:00 EDT 2011 i686 i686 i386 GNU/Linux


4. 
I have the follwing gcc packages:

[root@localhost ns-3.12.1]# rpm -aq|grep gcc
compat-libgcc-296-2.96-138
gcc-4.1.2-51.el5
gcc-c++-4.1.2-51.el5
libgcc-4.1.2-51.el5

5.
Downloaded the tar ball and expand it.

Then:

./build.py --enable-examples --enable-tests

6. I get the follwoing errors:

Waf: Leaving directory `/usr/local/applications/ns-3/ns-allinone-3.12.1/ns-3.12.1/build'
Build failed:
 -> task failed (err #1): 
        {task: cxx module_helpers.cc -> module_helpers_6.o}
 -> task failed (err #1): 
        {task: cxx ns3module.cc -> ns3module_6.o}
Traceback (most recent call last):
  File "./build.py", line 140, in ?
    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 "/usr/local/applications/ns-3/ns-allinone-3.12.1/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

7.

Trying 

./waf 

gets me:

Waf: Leaving directory `/usr/local/applications/ns-3/ns-allinone-3.12.1/ns-3.12.1/build'
Build failed:
 -> task failed (err #1): 
        {task: cxx module_helpers.cc -> module_helpers_6.o}
 -> task failed (err #1): 
        {task: cxx ns3module.cc -> ns3module_6.o}


8. When trying:

./waf -d optimized --enable-examples --enable-tests configure


Tets me:

[root@localhost ns-3.12.1]# ./waf -d optimized --enable-examples --enable-tests configure
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 sys/types.h                 : yes 
Checking for header sys/stat.h                  : yes 
Checking for header dirent.h                    : yes 
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 
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
Checking for pkg-config flags for GTK_CONFIG_STORE  : not found 
Checking for pkg-config flags for LIBXML2           : ok  
Checking for NSC location                           : ok ../nsc-0.5.2 (guessed) 
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                        : not found 
Checking for program python                         : /usr/bin/python 
Checking for Python version >= 2.3                  : ok 2.4.3 
Checking for library python2.4                      : yes 
Checking for program python2.4-config               : not found 
Checking for program python-config-2.4              : not found 
Checking for header Python.h                        : yes 
Checking for -fvisibility=hidden support            : yes 
Checking for pybindgen location                     : ok ../pybindgen-0.15.0.795 (guessed) 
Checking for Python module pybindgen                : ok  
Checking for pybindgen version                      : ok 0.15.0.795 
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 internal GCC cxxabi                               : complete 
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        : no 
Checking for -Wno-error=deprecated-declarations support        : no 
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:
Static build                  : not enabled (option --enable-static not selected)
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
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      : not enabled (library 'sqlite3' not found)
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
GNU Scientific Library (GSL)  : enabled
'configure' finished successfully (5.234s)
[root@localhost ns-3.12.1]# 


9. Trying:

./test.py -c core


Gets me:

Build failed: Missing node signature for [bld:///usr/local/applications/ns-3/ns-allinone-3.12.1/ns-3.12.1/ns3/test.h, bld:///usr/local/applications/ns-3/ns-allinone-3.12.1/ns-3.12.1/ns3/random-variable.h] (for implicit dependencies 
        {task: cxx rng-test-suite.cc -> rng-test-suite_58.o})
Waf died. Not running tests


Help?

What should I do.
Comment 1 Gustavo J. A. M. Carneiro 2011-09-20 06:14:49 UTC
Please include more lines of output, we need to see what compiler error messages appear before "Waf: Leaving directory ...".
Comment 2 Vedran Miletić 2012-12-02 05:14:37 UTC
Reporter did not provide any info.
Comment 3 Vedran Miletić 2012-12-02 05:15:10 UTC
INVALID is better resolution in this case.