AnsweredAssumed Answered

IIO drivers Compilation Error For FMCOMMS2

Question asked by siddh4nt on Jul 7, 2018
Latest reply on Jul 12, 2018 by siddh4nt

Hi all,

 

I am trying to compile the IIO drivers in petalinux, but I am getting compilation errors I think some source files might be missing. 

I would like to know what are the all necessary and dependencies files which are required to compile complete IIO system for Analog Devices.

Please hint me the location of all those files available in the Linux Kernel source of Analog Devices.

 

Listed below is the error hint just for reference.

******************************

ERROR: 

 /kernel-source/include/linux/iio/consumer.h:276:39: warning: 'struct iio_buffer' declared inside parameter list will not be visible outside of this definition or declaration
|  void iio_buffer_channel_enable(struct iio_buffer *buffer,
|                                        ^~~~~~~~~~
kernel-source/include/linux/iio/consumer.h:278:40: warning: 'struct iio_buffer' declared inside parameter list will not be visible outside of this definition or declaration
|  void iio_buffer_channel_disable(struct iio_buffer *buffer,
|                                         ^~~~~~~~~~

/kernel-source/drivers/iio/industrialio-core.c:81:3: error: 'IIO_GENERIC_DATA' undeclared here (not in a function); did you mean 'IIO_SEPARATE'?
|   [IIO_GENERIC_DATA] = "data",
|    ^~~~~~~~~~~~~~~~
|    IIO_SEPARATE

/kernel-source/drivers/iio/industrialio-core.c:81:3: error: array index in initializer not of integer type

/kernel-source/drivers/iio/industrialio-core.c:81:3: note: (near initialization for 'iio_chan_type_name_spec')

type_name_spec')

make[2]: *** [kernel-source/Makefile:1024: drivers] Error 2
| make[4]: *** [kernel-source/scripts/Makefile.build:314: drivers/iio/industrialio-core.o] Error 1
| make[3]: *** [kernel-source/scripts/Makefile.build:573: drivers/iio] Error 2

 

********************************************************************

Please provide some useful guidance.

 

Thanks  & Regards

-Siddhant

Outcomes