[srslte-users] srsLTE does not build with latest Soapy...

Ralph A. Schmid, dk5ras ralph at schmid.xxx
Fri Feb 7 11:15:43 UTC 2020


Hi,

srsLTE with latest master or pr_tinyrfci does not build with latest Soapy
master - using Soapy maint works. System is a Kubuntu system, latest
release. 

This is the output I get:

[ 84%] Built target srsepc
[ 84%] Built target srsmbms
[ 85%] Built target refsignal_ul_test_all
[ 85%] Building C object
lib/src/phy/rf/CMakeFiles/srslte_rf.dir/rf_soapy_imp.c.o
[ 85%] Built target chest_test_ul
[ 86%] Built target thread_pool_test
/home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c: In function
‘rf_soapy_open_mult ’:
/home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:327:36: error: passing
argument 2 of ‘SoapySDRDevice_setupStream’ makes integer from pointer
without a cast [-Werror=int-conversion]
  327 |                                    &handler->rxStream,
      |                                    ^~~~~~~~~~~~~~~~~~
      |                                    |
      |                                    SoapySDRStream ** {aka struct
SoapySDRStream **}
In file included from /home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:31:
/usr/local/include/SoapySDR/Device.h:295:31: note: expected ‘int’ but
argument is of type ‘SoapySDRStream **’ {aka ‘struct SoapySDRStream **’}
  295 | SOAPY_SDR_API SoapySDRStream
*SoapySDRDevice_setupStream(SoapySDRDevice *device,
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:328:36: error: passing
argument 3 of ‘SoapySDRDevice_setupStream’ makes pointer from integer
without a cast [-Werror=int-conversion]
  328 |                                    SOAPY_SDR_RX,
      |                                    ^~~~~~~~~~~~
      |                                    |
      |                                    int
In file included from /home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:31:
/usr/local/include/SoapySDR/Device.h:295:31: note: expected ‘const char *’
but argument is of type ‘int’
  295 | SOAPY_SDR_API SoapySDRStream
*SoapySDRDevice_setupStream(SoapySDRDevice *device,
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:329:36: error: passing
argument 4 of ‘SoapySDRDevice_setupStream’ from incompatible pointer type
[-Werror=incompatible-pointer-types]
  329 |                                    SOAPY_SDR_CF32,
      |                                    ^~~~~~~~~~~~~~
      |                                    |
      |                                    char *
In file included from /home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:31:
/usr/local/include/SoapySDR/Device.h:295:31: note: expected ‘const size_t *’
{aka ‘const long unsigned int *’} but argument is of type ‘char *’
  295 | SOAPY_SDR_API SoapySDRStream
*SoapySDRDevice_setupStream(SoapySDRDevice *device,
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:330:36: error: passing
argument 5 of ‘SoapySDRDevice_setupStream’ makes integer from pointer
without a cast [-Werror=int-conversion]
  330 |                                    rx_channels,
      |                                    ^~~~~~~~~~~
      |                                    |
      |                                    size_t * {aka long unsigned int
*}
In file included from /home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:31:
/usr/local/include/SoapySDR/Device.h:295:31: note: expected ‘size_t’ {aka
‘const long unsigned int’} but argument is of type ‘size_t *’ {aka ‘long
unsigned int *’}
  295 | SOAPY_SDR_API SoapySDRStream
*SoapySDRDevice_setupStream(SoapySDRDevice *device,
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:331:43: error: passing
argument 6 of ‘SoapySDRDevice_setupStream’ makes pointer from integer
without a cast [-Werror=int-conversion]
  331 |                                    handler->num_rx_channels,
      |                                    ~~~~~~~^~~~~~~~~~~~~~~~~
      |                                           |
      |                                           size_t {aka long unsigned
int
In file included from /home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:31:
/usr/local/include/SoapySDR/Device.h:295:31: note: expected ‘const
SoapySDRKwargs *’ {aka ‘const struct <anonymous> *’} but argument is of type
‘size_t’ {aka ‘long unsigned int’}
  295 | SOAPY_SDR_API SoapySDRStream
*SoapySDRDevice_setupStream(SoapySDRDevice *device,
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:326:9: error: too many
arguments to function ‘SoapySDRDevice_setupStream’
  326 |     if (SoapySDRDevice_setupStream(handler->device,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:31:
/usr/local/include/SoapySDR/Device.h:295:31: note: declared here
  295 | SOAPY_SDR_API SoapySDRStream
*SoapySDRDevice_setupStream(SoapySDRDevice *device,
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:349:36: error: passing
argument 2 of ‘SoapySDRDevice_setupStream’ makes integer from pointer
without a cast [-Werror=int-conversion]
  349 |                                    &handler->txStream,
      |                                    ^~~~~~~~~~~~~~~~~~
      |                                    |
      |                                    SoapySDRStream ** {aka struct
SoapySDRStream **}
In file included from /home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:31:
/usr/local/include/SoapySDR/Device.h:295:31: note: expected ‘int’ but
argument is of type ‘SoapySDRStream **’ {aka ‘struct SoapySDRStream **’}
  295 | SOAPY_SDR_API SoapySDRStream
*SoapySDRDevice_setupStream(SoapySDRDevice *device,
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:351:36: error: passing
argument 4 of ‘SoapySDRDevice_setupStream’ from incompatible pointer type
[-Werror=incompatible-pointer-types]
  351 |                                    SOAPY_SDR_CF32,
      |                                    ^~~~~~~~~~~~~~
      |                                    |
      |                                    char *
In file included from /home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:31:
/usr/local/include/SoapySDR/Device.h:295:31: note: expected ‘const size_t *’
{aka ‘const long unsigned int *’} but argument is of type ‘char *’
  295 | SOAPY_SDR_API SoapySDRStream
*SoapySDRDevice_setupStream(SoapySDRDevice *device,
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:352:36: error: passing
argument 5 of ‘SoapySDRDevice_setupStream’ makes integer from pointer
without a cast [-Werror=int-conversion]
  352 |                                    tx_channels,
      |                                    ^~~~~~~~~~~
      |                                    |
      |                                    size_t * {aka long unsigned int
*}
In file included from /home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:31:
/usr/local/include/SoapySDR/Device.h:295:31: note: expected ‘size_t’ {aka
‘const long unsigned int’} but argument is of type ‘size_t *’ {aka ‘long
unsigned int *’}
  295 | SOAPY_SDR_API SoapySDRStream
*SoapySDRDevice_setupStream(SoapySDRDevice *device,
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:353:43: error: passing
argument 6 of ‘SoapySDRDevice_setupStream’ makes pointer from integer
without a cast [-Werror=int-conversion]
  353 |                                    handler->num_tx_channels,
      |                                    ~~~~~~~^~~~~~~~~~~~~~~~~
      |                                           |
      |                                           size_t {aka long unsigned
int
In file included from /home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:31:
/usr/local/include/SoapySDR/Device.h:295:31: note: expected ‘const
SoapySDRKwargs *’ {aka ‘const struct <anonymous> *’} but argument is of type
‘size_t’ {aka ‘long unsigned int’}
  295 | SOAPY_SDR_API SoapySDRStream
*SoapySDRDevice_setupStream(SoapySDRDevice *device,
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:348:9: error: too many
arguments to function ‘SoapySDRDevice_setupStream’
  348 |     if (SoapySDRDevice_setupStream(handler->device,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ras/srsLTE/lib/src/phy/rf/rf_soapy_imp.c:31:
/usr/local/include/SoapySDR/Device.h:295:31: note: declared here
  295 | SOAPY_SDR_API SoapySDRStream
*SoapySDRDevice_setupStream(SoapySDRDevice *device,
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [lib/src/phy/rf/CMakeFiles/srslte_rf.dir/build.make:102:
lib/src/phy/rf/CMakeFiles/srslte_rf.dir/rf_soapy_imp.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3519:
lib/src/phy/rf/CMakeFiles/srslte_rf.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
ras at eNB:~/srsLTE/build$


With best regards

Ralph.


--

Ralph A. Schmid
Mondstr. 10
90762 Fürth
+49-171-3631223
+49-911-21650056
ralph at schmid.xxx
http://www.bclog.de/





More information about the srsran-users mailing list