[srslte-users] Building srsLTE on RasPi 4 Buster...

Vasil Velichkov vvvelichkov at gmail.com
Tue Oct 15 16:41:29 UTC 2019


Hi Ralph,

On 15/10/2019 13.29, Ralph A. Schmid, dk5ras wrote:
> Hi, 
> 
> building srsLTE on RasPi 4 Buster leads to this message: 
> 
> [ 10%] Built target srslte_fec
> Scanning dependencies of target srslte_mimo
> [ 10%] Building C object
> lib/src/phy/mimo/CMakeFiles/srslte_mimo.dir/layermap.c.o
> [ 10%] Building C object
> lib/src/phy/mimo/CMakeFiles/srslte_mimo.dir/precoding.c.o
> In file included from /home/pi/srsLTE/lib/src/phy/mimo/precoding.c:31:
> /home/pi/srsLTE/lib/src/phy/mimo/precoding.c: In function
> ‘srslte_predecoding_type’:
> /home/pi/srsLTE/lib/include/srslte/phy/utils/mat.h:149:20: error: inlining
> failed in call to ‘srslte_mat_2x2_mmse_csi_simd’: --param
> large-function-growth limit reached [-Werror=inline]
>  static inline void srslte_mat_2x2_mmse_csi_simd(simd_cf_t y0,
>                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/pi/srsLTE/lib/src/phy/mimo/precoding.c:1387:5: note: called from here
>      srslte_mat_2x2_mmse_csi_simd(y0, y1, h00, h01, h10, h11, &x0, &x1,
> &csi0, &csi1, noise_estimate, norm);
>  
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[2]: *** [lib/src/phy/mimo/CMakeFiles/srslte_mimo.dir/build.make:76:
> lib/src/phy/mimo/CMakeFiles/srslte_mimo.dir/precoding.c.o] Error 1
> make[1]: *** [CMakeFiles/Makefile2:2061:
> lib/src/phy/mimo/CMakeFiles/srslte_mimo.dir/all] Error 2
> make: *** [Makefile:163: all] Error 2
> 
> 
> Any ideas what do to with this? 

What compiler and what version do you use?

You could try increasing the large-function-growth limit by adding "--param large-function-growth=800" to CFLAGS and CXXFLAGS, it should be something like

   rm CMakeCache.txt
   CFLAGS="--param large-function-growth=800" CXXFLAGS="--param large-function-growth=800" cmake ..

I'm not sure what the default limit is so try different values.

Since commit dbd219e11 all warnings are treated as errors (-Werror was added) and most probably this is a warning converted to error so alternatively you could try commenting out lines 393 and 394 in CMakeLists.txt.

Hope this helps.

Regards,
Vasil



More information about the srsran-users mailing list