[srslte-users] srsRAN failing to build

Tichaona Kadzinga tichaona at kadzinga.com
Mon Sep 13 10:15:52 UTC 2021


Hi Pedro
Thank you very much your suggestion solves the problem!
The fix_issue675 branch builds

Regards Tichaona

On 9/13/21 11:08 AM, Pedro Alvarez wrote:
> Tichaona --
>
> GCC 11 added some warnings, which are causing that issue.
> Can you try this branch and see if the problem persists:
> https://github.com/srsran/srsRAN/tree/fix_issue675 ?
>
> Regards,
> Pedro
>
> On Mon, Sep 13, 2021 at 9:22 AM Tichaona Kadzinga <tichaona at kadzinga.com> wrote:
>> I am trying to build srsRAN from source and running make fails with the
>> following error:
>>
>> home/soko/usr/src/srsRAN/lib/src/phy/mimo/precoding.c:783:47: error:
>> argument 4 of type ‘float *[2]’ with mismatched bound
>> [-Werror=array-parameter=]
>>     783 |                                        float*
>> csi[SRSRAN_MAX_CODEWORDS],
>>         | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
>> In file included from
>> /home/soko/usr/src/srsRAN/lib/src/phy/mimo/precoding.c:28:
>> /home/soko/usr/src/srsRAN/lib/include/srsran/phy/mimo/precoding.h:92:58:
>> note: previously declared as ‘float *[4]’
>>      92 |                                                   float*
>> csi[SRSRAN_MAX_LAYERS],
>>         | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
>> /home/soko/usr/src/srsRAN/lib/src/phy/mimo/precoding.c: In function
>> ‘srsran_predecoding_type’:
>> /home/soko/usr/src/srsRAN/lib/src/phy/mimo/precoding.c:1914:16: error:
>> ‘srsran_predecoding_diversity_multi’ accessing 32 bytes in a region of
>> size 16 [-Werror=stringop-overflow=]
>>    1914 |         return srsran_predecoding_diversity_multi(y, h, x, csi,
>> nof_rxant, nof_ports, nof_symbols, scaling);
>>         |
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> /home/soko/usr/src/srsRAN/lib/src/phy/mimo/precoding.c:1914:16: note:
>> referencing argument 4 of type ‘float **’
>> /home/soko/usr/src/srsRAN/lib/src/phy/mimo/precoding.c:780:5: note: in a
>> call to function ‘srsran_predecoding_diversity_multi’
>>     780 | int srsran_predecoding_diversity_multi(cf_t* y[SRSRAN_MAX_PORTS],
>>         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> cc1: all warnings being treated as errors
>> make[2]: *** [lib/src/phy/mimo/CMakeFiles/srsran_mimo.dir/build.make:90:
>> lib/src/phy/mimo/CMakeFiles/srsran_mimo.dir/precoding.c.o] Error 1
>> make[1]: *** [CMakeFiles/Makefile2:4282:
>> lib/src/phy/mimo/CMakeFiles/srsran_mimo.dir/all] Error 2
>> make: *** [Makefile:166: all] Error 2
>>
>>
>> I am running Fedora 34 and am using libbladeRF
>>
>> _______________________________________________
>> srslte-users mailing list
>> srslte-users at lists.softwareradiosystems.com
>> https://lists.softwareradiosystems.com/mailman/listinfo/srslte-users




More information about the srsran-users mailing list