[srslte-users] build error on srsLTE when make with LimeSDR

Devora Greenbaum devorafabian at gmail.com
Thu Nov 8 10:09:42 UTC 2018


Hi,
I'm trying to install srsLTE on UBUNTU 16.04 and receiving the following
error:
I saw someone lese posted such an issue but didn't understand how he solved
it.


tester at JED01277:~/srsLTE/build$ make
[ 40%] Built target srslte_asn1
-- Generating build_info.h
[ 40%] Built target gen_build_info
[ 40%] Built target srslte_common
[ 40%] Built target srslte_enb
[ 40%] Built target srslte_agc
[ 40%] Built target srslte_ch_estimation
[ 40%] Built target srslte_phy_common
[ 40%] Built target srslte_fec
[ 40%] Built target srslte_mimo
[ 40%] Built target srslte_phch
[ 40%] Built target srslte_sync
[ 40%] Built target srslte_utils
[ 40%] Built target srslte_channel
[ 40%] Built target srslte_dft
[ 40%] Built target srslte_io
[ 40%] Built target srslte_modem
[ 40%] Built target srslte_resampling
[ 40%] Built target srslte_scrambling
[ 40%] Built target srslte_ue
[ 40%] Built target srslte_phy
[ 40%] Built target refsignal_ul_test_all
[ 40%] Built target chest_test_ul
[ 40%] Built target chest_test_dl
[ 40%] Built target rm_turbo_test
[ 40%] Built target turbocoder_test
[ 40%] Built target rm_conv_test
[ 40%] Built target viterbi_test
[ 40%] Built target crc_test
[ 40%] Built target turbodecoder_test
[ 40%] Built target pmi_select_test
[ 40%] Built target layermap_test
[ 40%] Built target precoding_test
[ 40%] Built target pdsch_test
[ 40%] Built target srslte_rf_utils
[ 40%] Building C object
lib/src/phy/rf/CMakeFiles/srslte_rf.dir/rf_soapy_imp.c.o
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:25:3: error: conflicting types for
‘SoapySDRRange’
 } SoapySDRRange;
   ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:25:3: note: previous declaration of
‘SoapySDRRange’ was here
 } SoapySDRRange;
   ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:33:3: error: conflicting types for
‘SoapySDRKwargs’
 } SoapySDRKwargs;
   ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:33:3: note: previous declaration of
‘SoapySDRKwargs’ was here
 } SoapySDRKwargs;
   ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:39:30: error: conflicting types for
‘SoapySDRKwargs_fromString’
 SOAPY_SDR_API SoapySDRKwargs SoapySDRKwargs_fromString(const char
                              ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:39:30: note: previous declaration of
‘SoapySDRKwargs_fromString’ was here
 SOAPY_SDR_API SoapySDRKwargs SoapySDRKwargs_fromString(const char
                              ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:45:21: error: conflicting types for
‘SoapySDRKwargs_toString’
 SOAPY_SDR_API char *SoapySDRKwargs_toString(const SoapySDRKwargs *
                     ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:45:21: note: previous declaration of
‘SoapySDRKwargs_toString’ was here
 SOAPY_SDR_API char *SoapySDRKwargs_toString(const SoapySDRKwargs *
                     ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:50:5: error: redeclaration of enumerator
‘SOAPY_SDR_ARG_INFO_BOOL’
     SOAPY_SDR_ARG_INFO_BOOL,
     ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:50:5: note: previous definition of
‘SOAPY_SDR_ARG_INFO_BOOL’ was here
     SOAPY_SDR_ARG_INFO_BOOL,
     ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:51:5: error: redeclaration of enumerator
‘SOAPY_SDR_ARG_INFO_INT’
     SOAPY_SDR_ARG_INFO_INT,
     ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:51:5: note: previous definition of
‘SOAPY_SDR_ARG_INFO_INT’ was here
     SOAPY_SDR_ARG_INFO_INT,
     ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:52:5: error: redeclaration of enumerator
‘SOAPY_SDR_ARG_INFO_FLOAT’
     SOAPY_SDR_ARG_INFO_FLOAT,
     ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:52:5: note: previous definition of
‘SOAPY_SDR_ARG_INFO_FLOAT’ was here
     SOAPY_SDR_ARG_INFO_FLOAT,
     ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:53:5: error: redeclaration of enumerator
‘SOAPY_SDR_ARG_INFO_STRING’
     SOAPY_SDR_ARG_INFO_STRING
     ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:53:5: note: previous definition of
‘SOAPY_SDR_ARG_INFO_STRING’ was here
     SOAPY_SDR_ARG_INFO_STRING
     ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:54:3: error: conflicting types for
‘SoapySDRArgInfoType’
 } SoapySDRArgInfoType;
   ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:54:3: note: previous declaration of
‘SoapySDRArgInfoType’ was here
 } SoapySDRArgInfoType;
   ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:103:3: error: conflicting types for
‘SoapySDRArgInfo’
 } SoapySDRArgInfo;
   ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:103:3: note: previous declaration of
‘SoapySDRArgInfo’ was here
 } SoapySDRArgInfo;
   ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:114:20: error: conflicting types for
‘SoapySDRKwargs_set’
 SOAPY_SDR_API void SoapySDRKwargs_set(SoapySDRKwargs *args, const
                    ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:120:19: note: previous declaration of
‘SoapySDRKwargs_set’ was here
 SOAPY_SDR_API int SoapySDRKwargs_set(SoapySDRKwargs *args, const c
                   ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:120:27: error: conflicting types for
‘SoapySDRKwargs_get’
 SOAPY_SDR_API const char *SoapySDRKwargs_get(SoapySDRKwargs *args,
                           ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:126:27: note: previous declaration of
‘SoapySDRKwargs_get’ was here
 SOAPY_SDR_API const char *SoapySDRKwargs_get(const SoapySDRKwargs
                           ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:126:20: error: conflicting types for
‘SoapySDRKwargs_clear’
 SOAPY_SDR_API void SoapySDRKwargs_clear(SoapySDRKwargs *args);
                    ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:132:20: note: previous declaration of
‘SoapySDRKwargs_clear’ was here
 SOAPY_SDR_API void SoapySDRKwargs_clear(SoapySDRKwargs *args);
                    ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:132:20: error: conflicting types for
‘SoapySDRKwargsList_clear’
 SOAPY_SDR_API void SoapySDRKwargsList_clear(SoapySDRKwargs *args,
                    ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:138:20: note: previous declaration of
‘SoapySDRKwargsList_clear’ was here
 SOAPY_SDR_API void SoapySDRKwargsList_clear(SoapySDRKwargs *args,
                    ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:138:20: error: conflicting types for
‘SoapySDRArgInfo_clear’
 SOAPY_SDR_API void SoapySDRArgInfo_clear(SoapySDRArgInfo *info);
                    ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:144:20: note: previous declaration of
‘SoapySDRArgInfo_clear’ was here
 SOAPY_SDR_API void SoapySDRArgInfo_clear(SoapySDRArgInfo *info);
                    ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:41:0:
/usr/include/SoapySDR/Types.h:144:20: error: conflicting types for
‘SoapySDRArgInfoList_clear’
 SOAPY_SDR_API void SoapySDRArgInfoList_clear(SoapySDRArgInfo *info
                    ^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
                 from /home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:
/usr/local/include/SoapySDR/Types.h:150:20: note: previous declaration of
‘SoapySDRArgInfoList_clear’ was here
 SOAPY_SDR_API void SoapySDRArgInfoList_clear(SoapySDRArgInfo *info
                    ^
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c: In function
‘rf_soapy_open_multi’:
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:296:38: error:
initialization from incompatible pointer type
[-Werror=incompatible-pointer-types]
   const SoapySDRKwargs *soapy_args = SoapySDRDevice_enumerate(NULL
                                      ^
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:316:45: error: passing
argument 1 of ‘SoapySDRDevice_make’ from incompatible pointer type
[-Werror=incompatible-pointer-types]
   SoapySDRDevice *sdr = SoapySDRDevice_make(&(soapy_args[0]));
                                             ^
In file included from
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:37:0:
/usr/local/include/SoapySDR/Device.h:78:31: note: expected ‘const
SoapySDRKwargs * {aka const struct <anonymous> *}’ but argument is of type
‘const SoapySDRKwargs * {aka const struct <anonymous> *}’
 SOAPY_SDR_API SoapySDRDevice *SoapySDRDevice_make(const SoapySDRKw
                               ^
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:380:28: error: invalid
initializer
   SoapySDRRange tx_range = SoapySDRDevice_getGainRange(handler->de
                            ^
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:381:28: error: invalid
initializer
   SoapySDRRange rx_range = SoapySDRDevice_getGainRange(handler->de
                            ^
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c: In function
‘rf_soapy_set_rx_srate’:
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:581:29: error:
initialization from incompatible pointer type
[-Werror=incompatible-pointer-types]
   SoapySDRRange *bw_range = SoapySDRDevice_getBandwidthRange(handl
                             ^
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c: In function
‘rf_soapy_set_tx_srate’:
/home/tester/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:617:29: error:
initialization from incompatible pointer type
[-Werror=incompatible-pointer-types]
   SoapySDRRange *bw_range = SoapySDRDevice_getBandwidthRange(handl
                             ^
cc1: some warnings being treated as errors
lib/src/phy/rf/CMakeFiles/srslte_rf.dir/build.make:134: recipe for target
'lib/src/phy/rf/CMakeFiles/srslte_rf.dir/rf_soapy_imp.c.o' failed
make[2]: *** [lib/src/phy/rf/CMakeFiles/srslte_rf.dir/rf_soapy_imp.c.o]
Error 1
CMakeFiles/Makefile2:2905: recipe for target
'lib/src/phy/rf/CMakeFiles/srslte_rf.dir/all' failed
make[1]: *** [lib/src/phy/rf/CMakeFiles/srslte_rf.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
tester at JED01277:~/srsLTE/build$

-- 
<http://www.sigbee.com/?utm_source=signature>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20181108/5404db27/attachment.htm>


More information about the srsran-users mailing list