nyuwireless-unipd/ns3-mmwave

Task 'ns3-lte-test' Fails When Compiling

Closed this issue · 2 comments

I'm running into the following on my system running Ubuntu 14.04. Any insight would be appreciated.

$ ./waf configure  --build-profile=debug --enable-tests --enable-examples
Setting top to                           : /home/dan/src/ns3-mmwave
Setting out to                           : /home/dan/src/ns3-mmwave/build
Checking for 'gcc' (C compiler)          : /usr/bin/gcc
Checking for cc version                  : 4.8.4
Checking for 'g++' (C++ compiler)        : /usr/bin/g++
Checking for compilation flag -Wl,--soname=foo support : ok
Checking for program 'python'                          : /usr/bin/python
Checking for python version                            : (2, 7, 6, 'final', 0)
python-config                                          : /usr/bin/python-config
Asking python-config for pyembed '--cflags --libs --ldflags' flags : yes
Testing pyembed configuration                                      : yes
Asking python-config for pyext '--cflags --libs --ldflags' flags   : yes
Testing pyext configuration                                        : yes
Checking for compilation flag -fvisibility=hidden support          : ok
Checking for compilation flag -Wno-array-bounds support            : ok
Checking for pybindgen location                                    : not found
Checking for python module 'pybindgen'                             : not found
pybindgen missing => no python bindings
Checking boost includes                                            : 1_54
Checking boost libs                                                : ok
Checking for boost linkage                                         : ok
Checking for click location                                        : not found
Checking for program 'pkg-config'                                  : /usr/bin/pkg-config
Checking for 'gtk+-2.0' >= 2.12                                    : not found
Checking for 'libxml-2.0' >= 2.7                                   : yes
Checking for type uint128_t                                        : not found
Checking for type __uint128_t                                      : yes
Checking high precision implementation                             : 128-bit integer (default)
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 sys/ioctl.h                                    : yes
Checking for header net/if.h                                       : yes
Checking for header net/ethernet.h                                 : yes
Checking for header linux/if_tun.h                                 : yes
Checking for header netpacket/packet.h                             : yes
Checking for NSC location                                          : not found
Checking for OpenFlow location                                     : not found
Checking for 'sqlite3'                                             : yes
Checking for header linux/if_tun.h                                 : yes
Checking for program 'sudo'                                        : /usr/bin/sudo
Checking for program 'valgrind'                                    : /usr/bin/valgrind
Checking for 'gsl'                                                 : yes
python-config                                                      : /usr/bin/libgcrypt-config
Checking for libgcrypt                                             : yes
Checking for compilation flag -Wno-error=deprecated-d... support   : ok
Checking for compilation flag -Wno-error=deprecated-d... support   : ok
Checking for compilation flag -fstrict-aliasing support            : ok
Checking for compilation flag -fstrict-aliasing support            : ok
Checking for compilation flag -Wstrict-aliasing support            : ok
Checking for compilation flag -Wstrict-aliasing support            : ok
Checking for program 'doxygen'                                     : not found
---- Summary of optional NS-3 features:
Build profile                 : debug
Build directory               :
BRITE Integration             : not enabled (BRITE not enabled (see option --with-brite))
DES Metrics event collection  : not enabled (defaults to disabled)
Emulation FdNetDevice         : enabled
Examples                      : enabled
File descriptor NetDevice     : enabled
GNU Scientific Library (GSL)  : enabled
Gcrypt library                : enabled
GtkConfigStore                : not enabled (library 'gtk+-2.0 >= 2.12' not found)
MPI Support                   : not enabled (option --enable-mpi not selected)
NS-3 Click Integration        : not enabled (nsclick not enabled (see option --with-nsclick))
NS-3 OpenFlow Integration     : not enabled (OpenFlow not enabled (see option --with-openflow))
Network Simulation Cradle     : not enabled (NSC not found (see option --with-nsc))
PlanetLab FdNetDevice         : not enabled (PlanetLab operating system not detected (see option --force-planetlab))
PyViz visualizer              : not enabled (Python Bindings are needed but not enabled)
Python Bindings               : not enabled (PyBindGen missing)
Real Time Simulator           : enabled
SQlite stats data output      : enabled
Tap Bridge                    : enabled
Tap FdNetDevice               : enabled
Tests                         : enabled
Threading Primitives          : enabled
Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)
XmlIo                         : enabled
'configure' finished successfully (7.901s)
../src/lte/test/epc-test-s1u-uplink.cc: In member function ‘virtual void EpcS1uUlTestCase::DoRun()’:
../src/lte/test/epc-test-s1u-uplink.cc:402:41: error: no matching function for call to ‘ns3::ArpCache::Entry::MarkWaitReply(int)’
           arpCacheEntry->MarkWaitReply(0);
                                         ^
../src/lte/test/epc-test-s1u-uplink.cc:402:41: note: candidate is:
In file included from ../src/lte/test/epc-test-s1u-uplink.cc:45:0:
./ns3/arp-cache.h:205:10: note: void ns3::ArpCache::Entry::MarkWaitReply(ns3::ArpCache::Ipv4PayloadHeaderPair)
     void MarkWaitReply (Ipv4PayloadHeaderPair waiting);
          ^
./ns3/arp-cache.h:205:10: note:   no known conversion for argument 1 from ‘int’ to ‘ns3::ArpCache::Ipv4PayloadHeaderPair {aka std::pair<ns3::Ptr<ns3::Packet>, ns3::Ipv4Header>}’

Waf: Leaving directory `/home/dan/src/ns3-mmwave/build'
Build failed
 -> task in 'ns3-lte-test' failed (exit status 1):
        {task 140535177061264: cxx epc-test-s1u-uplink.cc -> epc-test-s1u-uplink.cc.3.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-std=c++11', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-I../src/lte', '-fPIC', '-pthread', '-I.', '-I..', '-I/usr/include/libxml2', '-DNS3_BUILD_PROFILE_DEBUG', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_LIBXML2=1', '-DNS_TEST_SOURCEDIR="src/lte/test"', '../src/lte/test/epc-test-s1u-uplink.cc', '-c', '-o', '/home/dan/src/ns3-mmwave/build/src/lte/test/epc-test-s1u-uplink.cc.3.o']

Hi Dan,
thanks for the message. I updated that test to the latest version available for ns-3, now it should compile.
Michele

Thanks, @mychele! That did the trick.