Error while installing ns-3-oran while running ./ns3
Closed this issue · 1 comments
Hi,
Im trying to install ns-o-ran into my ns3, my ns3 version is 3.41
and i installed dependencies pytorch and onyxx with the mentioned versions from the repo and when i run ./ns3 im getting these erros:
/usr/bin/cmake -S /home/oran1/ns-allinone-3.41/ns-3.41 -B /home/oran1/ns-allinone-3.41/ns-3.41/cmake-cache -DNS3_EXAMPLES=ON --warn-uninitialized
[0/2] Re-checking globbed directories...
[6/77] Building CXX object contrib/oran/CMakeFiles/liboran-obj.dir/model/oran-near-rt-ric.cc.o
FAILED: contrib/oran/CMakeFiles/liboran-obj.dir/model/oran-near-rt-ric.cc.o
/usr/bin/ccache /usr/bin/c++ -DEIGEN_MPL2_ONLY -DHAVE_BOOST -DHAVE_BOOST_UNITS -DHAVE_EIGEN3 -DHAVE_GSL -DHAVE_LIBXML2 -DHAVE_PACKET_H -DHAVE_SQLITE3 -DNS3_ASSERT_ENABLE -DNS3_BUILD_PROFILE_DEBUG -DNS3_LOG_ENABLE -DPROJECT_SOURCE_PATH="/home/oran1/ns-allinone-3.41/ns-3.41" -DRAW_SOCK_CREATOR="/home/oran1/ns-allinone-3.41/ns-3.41/build/src/fd-net-device/ns3.41-raw-sock-creator-default" -DTAP_DEV_CREATOR="/home/oran1/ns-allinone-3.41/ns-3.41/build/src/fd-net-device/ns3.41-tap-device-creator-default" -D__LINUX__ -I/home/oran1/ns-allinone-3.41/ns-3.41/build/include -I/usr -I/usr/include/eigen3 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gtk-3.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/home/oran1/libtorch/include/torch -I/home/oran1/libtorch/include -I/home/oran1/onnxruntime-linux-x64-1.14.1/include -I/home/oran1/onnxruntime-linux-x64-1.14.1 -O2 -g -DNDEBUG -fPIC -fno-semantic-interposition -fdiagnostics-color=always -Wall -std=c++20 -Winvalid-pch -include /home/oran1/ns-allinone-3.41/ns-3.41/cmake-cache/CMakeFiles/stdlib_pch-default.dir/cmake_pch.hxx -MD -MT contrib/oran/CMakeFiles/liboran-obj.dir/model/oran-near-rt-ric.cc.o -MF contrib/oran/CMakeFiles/liboran-obj.dir/model/oran-near-rt-ric.cc.o.d -o contrib/oran/CMakeFiles/liboran-obj.dir/model/oran-near-rt-ric.cc.o -c /home/oran1/ns-allinone-3.41/ns-3.41/contrib/oran/model/oran-near-rt-ric.cc
/home/oran1/ns-allinone-3.41/ns-3.41/contrib/oran/model/oran-near-rt-ric.cc: In static member function ‘static ns3::TypeId ns3::OranNearRtRic::GetTypeId()’:
/home/oran1/ns-allinone-3.41/ns-3.41/contrib/oran/model/oran-near-rt-ric.cc:98:43: error: no matching function for call to ‘MakeEnumAccessor(ns3::OranNearRtRic::LateCommandPolicy ns3::OranNearRtRic::*)’
98 | MakeEnumAccessor(&OranNearRtRic::m_lmQueryLateCommandPolicy),
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/oran1/ns-allinone-3.41/ns-3.41/build/include/ns3/enum.h:1,
from /home/oran1/ns-allinone-3.41/ns-3.41/contrib/oran/model/oran-near-rt-ric.cc:42:
/home/oran1/ns-allinone-3.41/ns-3.41/src/core/model/enum.h:236:1: note: candidate: ‘template<class T, class T1> ns3::Ptr ns3::MakeEnumAccessor(T1)’
236 | MakeEnumAccessor(T1 a1)
| ^~~~~~~~~~~~~~~~
/home/oran1/ns-allinone-3.41/ns-3.41/src/core/model/enum.h:236:1: note: template argument deduction/substitution failed:
/home/oran1/ns-allinone-3.41/ns-3.41/contrib/oran/model/oran-near-rt-ric.cc:98:43: note: couldn’t deduce template parameter ‘T’
98 | MakeEnumAccessor(&OranNearRtRic::m_lmQueryLateCommandPolicy),
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/oran1/ns-allinone-3.41/ns-3.41/build/include/ns3/enum.h:1,
from /home/oran1/ns-allinone-3.41/ns-3.41/contrib/oran/model/oran-near-rt-ric.cc:42:
/home/oran1/ns-allinone-3.41/ns-3.41/src/core/model/enum.h:243:1: note: candidate: ‘template<class T, class T1, class T2> ns3::Ptr ns3::MakeEnumAccessor(T1, T2)’
243 | MakeEnumAccessor(T1 a1, T2 a2)
| ^~~~~~~~~~~~~~~~
/home/oran1/ns-allinone-3.41/ns-3.41/src/core/model/enum.h:243:1: note: template argument deduction/substitution failed:
/home/oran1/ns-allinone-3.41/ns-3.41/contrib/oran/model/oran-near-rt-ric.cc:98:43: note: candidate expects 2 arguments, 1 provided
98 | MakeEnumAccessor(&OranNearRtRic::m_lmQueryLateCommandPolicy),
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[12/77] Building CXX object contrib/oran/CMake....dir/model/oran-reporter-lte-ue-cell-info.cc.o
ninja: build stopped: subcommand failed.
Finished executing the following commands:
/usr/bin/cmake --build /home/oran1/ns-allinone-3.41/ns-3.41/cmake-cache -j 7
my gcc version is 11.4.0
The branch ns-3.41-enum-update has been created to address this issue. Please verify that using this branch works so that we can close the issue. Thanks!