srsran / srsRAN_4G

Open source SDR 4G software suite from Software Radio Systems (SRS) https://docs.srsran.com/projects/4g
https://www.srsran.com
GNU Affero General Public License v3.0
3.36k stars 1.1k forks source link

srsRAN_4G fails to build #1346

Open pkeyela opened 3 weeks ago

pkeyela commented 3 weeks ago

Issue Description

I'm building the srsRAN-4G from source but it repeatedly throws this error. I'm using a VM with Ubuntu 24 as OS, 4 CPU cores and 8GB as RAM. I thought increasing the ressources of the VM would help, but it didn't. I would be very grateful for any help out. On the same machine I built and installed srsRAN_Project whithout any issue. 002

icecool1987 commented 3 weeks ago

Thank this might be of help issue 1339

rob-the-dude commented 1 week ago

FYI, I found indications online that these were spurious warnings due to compiler bugs in GCC. I made a handful of modifications to various CMakeLists.txt files like this:

set_source_files_properties(FOO.cc PROPERTIES COMPILE_FLAGS "-Wno-array-bounds") or

set_source_files_properties(FOO.cc PROPERTIES COMPILE_FLAGS "-Wno-array-bounds -Wno-stringop-overflow") or even

set_source_files_properties(FOO.cc PROPERTIES COMPILE_FLAGS "-Wno-array-bounds -Wno-stringop-overflow -Wno-stringop-overread")

And I was able to get it to build (and run). I can provide a full 'git diff' if that helps. But I think the real fix requires an updated GCC (I think the bug is still open there).