ns-3.26 mmwave module problem

207 views
Skip to first unread message

Dmitar

unread,
Nov 27, 2016, 9:29:14 AM11/27/16
to ns-3-users
Hi,

 downloaded ns3.26 and built it successfully. Then, I tried to import mmwave module by copying it in src folder and after these commands:

./waf configure --enable-examples
./waf build


building failes, every time at different code line (two examples listed below).



Could you please help me build it successfully? I'm fairly new to ns-3 and I could really use some help.




Example1:
[aleksandra@localhost ns-3.26]$ ./waf configure
[aleksandra@localhost ns-3.26]$ ./waf build
....
[1442/2010] Compiling src/mmwave/model/mmwave-net-device.cc
../src/mmwave/model/mmwave-enb-mac.cc: In member function ‘void ns3::MmWaveEnbMac::DoReportBufferStatus(ns3::LteMacSapProvider::ReportBufferStatusParameters)’:
../src/mmwave/model/mmwave-enb-mac.cc:661:40: error: ‘struct ns3::LteMacSapProvider::ReportBufferStatusParameters’ has no member named ‘txPacketSizes’; did you mean ‘txQueueSize’?
schedParams.m_txPacketSizes = params.txPacketSizes;
^~
../src/mmwave/model/mmwave-enb-mac.cc:662:41: error: ‘struct ns3::LteMacSapProvider::ReportBufferStatusParameters’ has no member named ‘txPacketDelays’
schedParams.m_txPacketDelays = params.txPacketDelays;
^~
../src/mmwave/model/mmwave-enb-mac.cc:663:42: error: ‘struct ns3::LteMacSapProvider::ReportBufferStatusParameters’ has no member named ‘retxPacketSizes’; did you mean ‘retxQueueSize’?
schedParams.m_retxPacketSizes = params.retxPacketSizes;
^~
../src/mmwave/model/mmwave-enb-mac.cc:664:43: error: ‘struct ns3::LteMacSapProvider::ReportBufferStatusParameters’ has no member named ‘retxPacketDelays’; did you mean ‘retxQueueHolDelay’?
schedParams.m_retxPacketDelays = params.retxPacketDelays;
^~
../src/mmwave/model/mmwave-enb-mac.cc:665:38: error: ‘struct ns3::LteMacSapProvider::ReportBufferStatusParameters’ has no member named ‘arrivalRate’
schedParams.m_arrivalRate = params.arrivalRate;
^~

Waf: Leaving directory `/home/aleksandra/workspace/source/ns-3.26/build'
Build failed
-> task in 'ns3-mmwave' failed (exit status 1):
{task 139690920454992: cxx mmwave-enb-mac.cc -> mmwave-enb-mac.cc.1.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-std=c++11', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-pthread', '-I.', '-I..', '-I/usr/include/gtk-2.0', '-I/usr/lib64/gtk-2.0/include', '-I/usr/include/pango-1.0', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/pixman-1', '-I/usr/include/libdrm', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/libpng16', '-I/usr/include/harfbuzz', '-I/usr/include/glib-2.0', '-I/usr/lib64/glib-2.0/include', '-I/usr/include/freetype2', '-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_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '../src/mmwave/model/mmwave-enb-mac.cc', '-c', '-o', '/home/aleksandra/workspace/source/ns-3.26/build/src/mmwave/model/mmwave-enb-mac.cc.1.o']_



Example 2:

[aleksandra@localhost ns-3.26]$ ./waf configure
[aleksandra@localhost ns-3.26]$ ./waf build
....
_[1639/2010] Compiling src/mmwave/model/mmwave-spectrum-signal-parameters.cc
../src/mmwave/model/mmwave-enb-mac.cc: In member function ‘void ns3::MmWaveEnbMac::DoReportBufferStatus(ns3::LteMacSapProvider::ReportBufferStatusParameters)’:
../src/mmwave/model/mmwave-enb-mac.cc:661:40: error: ‘struct ns3::LteMacSapProvider::ReportBufferStatusParameters’ has no member named ‘txPacketSizes’; did you mean ‘txQueueSize’?
schedParams.m_txPacketSizes = params.txPacketSizes;
^~
../src/mmwave/model/mmwave-enb-mac.cc:662:41: error: ‘struct ns3::LteMacSapProvider::ReportBufferStatusParameters’ has no member named ‘txPacketDelays’
schedParams.m_txPacketDelays = params.txPacketDelays;
^~
../src/mmwave/model/mmwave-enb-mac.cc:663:42: error: ‘struct ns3::LteMacSapProvider::ReportBufferStatusParameters’ has no member named ‘retxPacketSizes’; did you mean ‘retxQueueSize’?
schedParams.m_retxPacketSizes = params.retxPacketSizes;
^~
../src/mmwave/model/mmwave-enb-mac.cc:664:43: error: ‘struct ns3::LteMacSapProvider::ReportBufferStatusParameters’ has no member named ‘retxPacketDelays’; did you mean ‘retxQueueHolDelay’?
schedParams.m_retxPacketDelays = params.retxPacketDelays;
^~
../src/mmwave/model/mmwave-enb-mac.cc:665:38: error: ‘struct ns3::LteMacSapProvider::ReportBufferStatusParameters’ has no member named ‘arrivalRate’
schedParams.m_arrivalRate = params.arrivalRate;
^~

Waf: Leaving directory `/home/aleksandra/workspace/source/ns-3.26/build'
Build failed
-> task in 'ns3-mmwave' failed (exit status 1):
{task 140643243655696: cxx mmwave-enb-mac.cc -> mmwave-enb-mac.cc.1.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-std=c++11', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-pthread', '-I.', '-I..', '-I/usr/include/gtk-2.0', '-I/usr/lib64/gtk-2.0/include', '-I/usr/include/pango-1.0', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/pixman-1', '-I/usr/include/libdrm', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/libpng16', '-I/usr/include/harfbuzz', '-I/usr/include/glib-2.0', '-I/usr/lib64/glib-2.0/include', '-I/usr/include/freetype2', '-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_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '../src/mmwave/model/mmwave-enb-mac.cc', '-c', '-o', '/home/aleksandra/workspace/source/ns-3.26/build/src/mmwave/model/mmwave-enb-mac.cc.1.o']
[aleksandra@localhost ns-3.26]$


Konstantinos

unread,
Nov 27, 2016, 9:56:41 AM11/27/16
to ns-3-users
Hi,

the ns-3 mmwave has been developed on top of ns-3.24.1 according to the release notes of the module.
The LTE module in ns-3.26 is significantly different wrt the API.
I would suggest to look at the ReportBufferStatusParameters that's where you have the errors in both cases (in mmwave-enb-mac.cc:661:40)

Regards
K.

Dmitar

unread,
Nov 27, 2016, 5:21:40 PM11/27/16
to ns-3-users
Hi Konstantinos,

I posted similar question on github/mmwave and they said not to copy the source folder in an existing ns3 module, but to clone the entire git repository in a seperate folder and then compile. I tried that way and I'm still getting Build failed errors, at different code lines every time.

Any thoughts?

Konstantinos

unread,
Nov 27, 2016, 6:11:48 PM11/27/16
to ns-3-users
Hi,

Since mmwave is not a ns-3 native module, we can not provide much of help, especially without the error information.
The module's developers/maintainers are the best point of contact for such issues.

K
Reply all
Reply to author
Forward
0 new messages