Enforce gcc/g++-11 when building 7.2 FHI through xran

This commit is contained in:
Robert Schmidt
2024-06-05 17:01:35 +02:00
parent 98e9129d69
commit 489824fdcf
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -391,6 +391,8 @@ Compile the fronthaul interface library by calling `make` and the option
environment variables `RTE_SDK` for the path to the source tree of DPDK, and
`XRAN_DIR` to set the path to the fronthaul library.
**Note**: you need at least gcc-11 and g++-11.
```bash
cd ~/phy/fhi_lib/lib
make clean
+7
View File
@@ -1,3 +1,10 @@
# we need at least gcc-11 to build xran, so let's enforce it here
# (because xran might not check it, and we have control here)
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11.0
OR CMAKE_C_COMPILER_VERSION VERSION_LESS 11.0)
message(FATAL_ERROR "you need to have at least gcc/g++-11 to use 7.2 FHI through xran")
endif()
# use env var PKG_CONFIG_PATH to override paths to libdpdk.pc
pkg_check_modules(dpdk REQUIRED libdpdk)
pkg_check_modules(numa REQUIRED numa)