[srsran-users] error compiling srsRAN_4G on rpi4 ubuntu 22.04 LTS

alexander.serkin at gmail.com alexander.serkin at gmail.com
Sun May 14 15:59:17 UTC 2023


Hi,

I got an error below while compiling latest srsRAN_4G on raspberry pi4
platform running ubuntu server 22.04 LTS.

There were no problems on x86_64 platform and Ubuntu 20.04.6 LTS. Wasn't i
too fast to try Ubuntu 22?

Here is the error:

 

[ 42%] Building C object
lib/src/phy/rf/CMakeFiles/srsran_rf_blade.dir/rf_blade_imp.c.o

/usr/local/src/srsRAN_4G/lib/src/phy/rf/rf_blade_imp.c: In function
'rf_blade_set_rx_freq':

/usr/local/src/srsRAN_4G/lib/src/phy/rf/rf_blade_imp.c:375:33: error: format
'%lu' expects argument of type 'long unsigned int', but argument 2 has type
'bladerf_frequency' {aka 'long long unsigned int'} [-Werror=format=]

  375 |   printf("set RX frequency to %lu\n", f_int);

      |                               ~~^     ~~~~~

      |                                 |     |

      |                                 |     bladerf_frequency {aka long
long unsigned int}

      |                                 long unsigned int

      |                               %llu

/usr/local/src/srsRAN_4G/lib/src/phy/rf/rf_blade_imp.c: In function
'rf_blade_set_tx_freq':

/usr/local/src/srsRAN_4G/lib/src/phy/rf/rf_blade_imp.c:392:33: error: format
'%lu' expects argument of type 'long unsigned int', but argument 2 has type
'bladerf_frequency' {aka 'long long unsigned int'} [-Werror=format=]

  392 |   printf("set TX frequency to %lu\n", f_int);

      |                               ~~^     ~~~~~

      |                                 |     |

      |                                 |     bladerf_frequency {aka long
long unsigned int}

      |                                 long unsigned int

      |                               %llu

cc1: all warnings being treated as errors

make[2]: *** [lib/src/phy/rf/CMakeFiles/srsran_rf_blade.dir/build.make:76:
lib/src/phy/rf/CMakeFiles/srsran_rf_blade.dir/rf_blade_imp.c.o] Error 1

make[1]: *** [CMakeFiles/Makefile2:6200:
lib/src/phy/rf/CMakeFiles/srsran_rf_blade.dir/all] Error 2

make: *** [Makefile:166: all] Error 2

 

Thank you,

Alex

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 7554 bytes
Desc: not available
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20230514/1001f730/attachment.bin>


More information about the srsran-users mailing list