You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a fresh Debian 13 installation, srsRAN fails to build from source, failing with one of two kinds of errors:
(if UHD deps are installed)
-- Could NOT find Boost: missing: system (found /usr/lib/x86_64-linux-gnu/cmake/Boost-1.83.0/BoostConfig.cmake (found suitable version "1.83.0", minimum required is "1.35"))
(if UHD deps aren't installed or disabled with -DENABLE_UHD=no)
In file included from /srsRAN_4G/srsue/hdr/phy/phy_metrics.h:26,
from /srsRAN_4G/srsue/hdr/phy/phy_common.h:25,
from /srsRAN_4G/srsue/src/phy/phy_common.cc:26:
In member function 'std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::operator[](size_type) [with _Tp = float; long unsigned int _Nm = 5]',
inlined from 'void srsue::phy_common::reset_measurements(uint32_t)' at /srsRAN_4G/srsue/src/phy/phy_common.cc:662:18,
inlined from 'void srsue::phy_common::reset()' at /srsRAN_4G/srsue/src/phy/phy_common.cc:918:21:
/usr/include/c++/13/array:203:24: error: array subscript 5 is above array bounds of 'std::__array_traits<float, 5>::_Type' {aka 'float [5]'} [-Werror=array-bounds=]
203 | return _M_elems[__n];
| ~~~~~~~~^
srsRAN builds fine on Debian 12, so it might be due to new compiler and boost versions with Debian 13:
Had the same problem, to fix it in the cmake step: cmake .. -DCMAKE_CXX_FLAGS="-Wno-array-bounds -Wno-error=stringop-overflow -Wno-error=stringop-overread"
Issue Description
On a fresh Debian 13 installation, srsRAN fails to build from source, failing with one of two kinds of errors:
(if UHD deps are installed)
(if UHD deps aren't installed or disabled with
-DENABLE_UHD=no
)srsRAN builds fine on Debian 12, so it might be due to new compiler and boost versions with Debian 13:
Setup Details
dpkg -l
Expected Behavior
srsRAN builds successfully
Actual Behaviour
srsRAN fails to build
Steps to reproduce the problem
sudo apt update && sudo apt upgrade
sudo apt install git
sudo apt install build-essential cmake libfftw3-dev libmbedtls-dev libboost-program-options-dev libconfig++-dev libsctp-dev
sudo apt install libsoapysdr-dev libbladerf-dev libuhd-dev libzmq3-dev uhd-host --no-install-recommends
git clone https://github.com/srsran/srsRAN_4G.git && mkdir srsRAN_4G/build && cd srsRAN_4G/build && cmake ..
cmake .. -DENABLE_UHD=no && make -j
The text was updated successfully, but these errors were encountered: