[srsran-users] Build issues (K)Ubuntu mantic...

ralph at schmid.xxx ralph at schmid.xxx
Sun Oct 22 12:31:19 UTC 2023


Hi,

I have issues building srsRAN when using actual (K)Ubuntu mantic systems. Normal machines, Intel i5 or i7, nothing special at all. 

These are the errors I get:

[ 50%] Building CXX object lib/src/radio/CMakeFiles/srsran_radio.dir/radio.cc.o
In file included from /home/ras/srsRAN/lib/include/srsran/radio/radio.h:22,
                 from /home/ras/srsRAN/lib/src/radio/radio.cc:22:
/home/ras/srsRAN/lib/include/srsran/radio/channel_mapping.h:142:8: error: ‘string’ in namespace ‘std’ does not name a type
  142 |   std::string to_string() const;
      |        ^~~~~~
/home/ras/srsRAN/lib/include/srsran/radio/channel_mapping.h:29:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
   28 | #include <mutex>
  +++ |+#include <string>
   29 |
make[2]: *** [lib/src/radio/CMakeFiles/srsran_radio.dir/build.make:76: lib/src/radio/CMakeFiles/srsran_radio.dir/radio.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:7858: lib/src/radio/CMakeFiles/srsran_radio.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

On a Raspberry Pi4 v8+ with Debian Bookworm it fails like this:

[  1%] Building C object lib/src/phy/ch_estimation/CMakeFiles/srsran_ch_estimation.dir/wiener_dl.c.o
In file included from /home/pi/srsRAN/lib/include/srsran/phy/utils/simd.h:36,
                 from /home/pi/srsRAN/lib/include/srsran/phy/utils/mat.h:26,
                 from /home/pi/srsRAN/lib/src/phy/ch_estimation/wiener_dl.c:24:
/usr/lib/gcc/arm-linux-gnueabihf/12/include/arm_neon.h: In function ‘srsran_simd_f_loadu’:
/usr/lib/gcc/arm-linux-gnueabihf/12/include/arm_neon.h:10446:1: error: inlining failed in call to ‘always_inline’ ‘vld1q_f32’: target specific option mismatch
10446 | vld1q_f32 (const float32_t * __a)
      | ^~~~~~~~~
/home/pi/srsRAN/lib/include/srsran/phy/utils/simd.h:238:10: note: called from here
  238 |   return vld1q_f32(ptr);
      |          ^~~~~~~~~~~~~~
make[2]: *** [lib/src/phy/ch_estimation/CMakeFiles/srsran_ch_estimation.dir/build.make:258: lib/src/phy/ch_estimation/CMakeFiles/srsran_ch_estimation.dir/wiener_dl.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:4159: lib/src/phy/ch_estimation/CMakeFiles/srsran_ch_estimation.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

Funny enough, on a Raspberry Pi3 v7 all builds and runs just fine.


All the machines are configured more or less identically, with the same installed packages and prerequisites, as all were set up with the same script, to get my standard SDR environment with UHD, Soapy, LimeUtils, Gnuradio and all the stuff I usually need 😊 As I am a hardware guy, not a coding guy, usually I am lost with such problems, sorry. 

Thanks for any input!

Ralph.




--

Ralph A. Schmid
Mondstr. 10
90762 Fürth
+49-171-3631223
+49-911-21650056
ralph at schmid.xxx
http://www.bclog.de/







More information about the srsran-users mailing list