[srslte-users] Need help build error when make on srsLTE with LimeSDR
Sandi Suhendro
djks74 at gmail.com
Wed Oct 31 11:43:20 UTC 2018
Dear list,
hope someone can give me advise what is wrong?
Im runing fine with osmocom or openbts-umts. (2g/3g)
but....
Im facing SoapySDR range error when build srsLTE :
[ 40%] Linking C executable pdsch_test
[ 40%] Built target pdsch_test
[ 40%] Building C object
lib/src/phy/rf/CMakeFiles/srslte_rf_utils.dir/rf_utils.c.o
[ 40%] Linking C static library libsrslte_rf_utils.a
[ 40%] Built target srslte_rf_utils
[ 41%] Building C object lib/src/phy/rf/CMakeFiles/srslte_rf.dir/rf_imp.c.o
[ 41%] Building C object
lib/src/phy/rf/CMakeFiles/srslte_rf.dir/rf_uhd_imp.c.o
[ 41%] Building CXX object
lib/src/phy/rf/CMakeFiles/srslte_rf.dir/uhd_c_api.cpp.o
[ 41%] Building C object
lib/src/phy/rf/CMakeFiles/srslte_rf.dir/rf_soapy_imp.c.o
In file included from /home/duo/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/duo/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/duo/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/duo/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/duo/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 *markup);
^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
from /home/duo/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 *markup);
^
In file included from /home/duo/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 *args);
^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
from /home/duo/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 *args);
^
In file included from /home/duo/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/duo/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/duo/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/duo/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/duo/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/duo/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/duo/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/duo/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/duo/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/duo/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/duo/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/duo/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/duo/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 char
*key, co
^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
from /home/duo/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 char
*key, con
^
In file included from /home/duo/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, const
char *
^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
from /home/duo/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 *args,
const
^
In file included from /home/duo/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/duo/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/duo/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, const
size_t
^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
from /home/duo/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, const
size_t
^
In file included from /home/duo/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/duo/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/duo/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, const
size_
^
In file included from /usr/local/include/SoapySDR/Device.h:18:0,
from /home/duo/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, const
size_
^
/home/duo/srsLTE/lib/src/phy/rf/rf_soapy_imp.c: In function
‘rf_soapy_open_multi’:
/home/duo/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,
&length);
^
/home/duo/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/duo/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 SoapySDRKwargs
*args);
^
/home/duo/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:380:28: error: invalid
initializer
SoapySDRRange tx_range = SoapySDRDevice_getGainRange(handler->device,
SOAPY_S
^
/home/duo/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:381:28: error: invalid
initializer
SoapySDRRange rx_range = SoapySDRDevice_getGainRange(handler->device,
SOAPY_S
^
/home/duo/srsLTE/lib/src/phy/rf/rf_soapy_imp.c: In function
‘rf_soapy_set_rx_srate’:
/home/duo/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(handler->device, S
^
/home/duo/srsLTE/lib/src/phy/rf/rf_soapy_imp.c: In function
‘rf_soapy_set_tx_srate’:
/home/duo/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(handler->device, S
^
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
Please advise! Thanks
--
Best Regards,
DUO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20181031/36a490eb/attachment.htm>
More information about the srsran-users
mailing list