f0cal / google-coral

Community gathering point for Google Coral dev board and dongle knowledge.
109 stars 14 forks source link

Error attempting to install driver for Environmental Sensor Board on RPi 2 Model B #23

Closed smithatlanta closed 4 years ago

smithatlanta commented 5 years ago

On a Raspberry Pi 2 Model B running Raspbian GNU/Linux 9 (stretch).

Using the install instructions here: https://coral.withgoogle.com/docs/enviro-board/get-started/

I am receiving the following error during the last step of:

sudo apt install python3-coral-enviro

The error is:

Error! Bad return status for module build on kernel: 3.6-trunk-rpi (armv7l) Consult /var/lib/dkms/coral-enviro-drivers/1.3/build/make.log for more information.

The cat of the log file at /var/lib/dkms/coral-enviro-drivers/1.3/build/make.log is:

DKMS make.log for coral-enviro-drivers-1.3 for kernel 3.6-trunk-rpi (armv7l) Mon May 27 11:45:50 EDT 2019 make: Entering directory '/usr/src/linux-headers-3.6-trunk-rpi' LD /var/lib/dkms/coral-enviro-drivers/1.3/build/built-in.o LD /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/built-in.o LD /var/lib/dkms/coral-enviro-drivers/1.3/build/light/built-in.o LD /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/built-in.o LD /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/built-in.o CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.o CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.o CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.o CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.o /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:70:21: error: variable ‘hdc20x0_regmap_config’ has initializer but incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:71:2: error: unknown field ‘reg_bits’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:71:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:71:2: warning: (near initialization for ‘hdc20x0_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:72:2: error: unknown field ‘val_bits’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:72:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:72:2: warning: (near initialization for ‘hdc20x0_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:73:2: error: unknown field ‘max_register’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:73:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:73:2: warning: (near initialization for ‘hdc20x0_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:90:3: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:94:11: error: ‘IIO_HUMIDITYRELATIVE’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:96:3: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:101:3: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: In function ‘hdc20x0_get_measurement’: /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:122:9: error: implicit declaration of function ‘regmap_get_device’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:122:23: warning: initialization makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: In function ‘hdc20x0_read_raw’: /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:212:11: error: ‘IIO_VAL_FRACTIONAL’ undeclared (first use in this function) /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:212:11: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:212:4: warning: return makes integer from pointer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:213:25: warning: comparison between pointer and integer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:216:4: warning: return makes integer from pointer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: In function ‘hdc20x0_probe’: /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:268:2: error: implicit declaration of function ‘i2c_check_functionality’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:272:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:272:12: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:278:2: error: implicit declaration of function ‘devm_regmap_init_i2c’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:278:15: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:289:2: error: implicit declaration of function ‘devm_iio_device_register’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:313:1: warning: data definition has no type or storage class [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:313:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:313:1: warning: parameter names (without types) in function declaration [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:92:11: error: ‘IIO_PRESSURE’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:93:3: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:97:3: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:129:21: error: variable ‘bmp280_regmap_config’ has initializer but incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:130:2: error: unknown field ‘reg_bits’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:130:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:130:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:131:2: error: unknown field ‘val_bits’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:131:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:131:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:133:2: error: unknown field ‘max_register’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:133:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:133:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:134:2: error: unknown field ‘cache_type’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:134:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:134:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:136:2: error: unknown field ‘writeable_reg’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:136:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:136:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:137:2: error: unknown field ‘volatile_reg’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:137:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:137:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:304:26: warning: ‘hdc20x0_driver’ defined but not used [-Wunused-variable] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c: In function ‘bmp280_read_press’: /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:277:9: error: ‘IIO_VAL_FRACTIONAL’ undeclared (first use in this function) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:277:9: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:277:2: warning: return makes integer from pointer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c: In function ‘bmp280_probe’: /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:355:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:355:12: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:370:2: error: implicit declaration of function ‘devm_regmap_init_i2c’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:370:15: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:371:2: error: implicit declaration of function ‘IS_ERR’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:373:3: error: implicit declaration of function ‘PTR_ERR’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:389:2: error: implicit declaration of function ‘devm_iio_device_register’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: unknown field ‘acpi_match_table’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: implicit declaration of function ‘ACPI_PTR’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: (near initialization for ‘bmp280_driver.driver.bus’) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:412:1: warning: data definition has no type or storage class [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:412:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:412:1: warning: parameter names (without types) in function declaration [enabled by default] cc1: some warnings being treated as errors /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:404:26: warning: ‘bmp280_driver’ defined but not used [-Wunused-variable] /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.o' failed make[4]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.o] Error 1 /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity' failed make[3]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity] Error 2 make[3]: Waiting for unfinished jobs.... cc1: some warnings being treated as errors /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.o' failed make[4]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.o] Error 1 /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure' failed make[3]: *** [/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure] Error 2 /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:131:36: error: array type has incomplete element type /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:133:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:133:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:134:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:134:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:135:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:135:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:135:20: error: ‘IIO_EV_INFO_VALUE’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:136:5: error: ‘IIO_EV_INFO_ENABLE’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:138:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:138:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:139:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:139:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:140:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:140:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:142:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:142:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:143:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:143:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:144:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:144:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:145:5: error: ‘IIO_EV_INFO_PERIOD’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:194:38: error: expected declaration specifiers or ‘...’ before string constant /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:197:3: error: ‘iio_const_attr_integration_time_available’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:205:36: error: array type has incomplete element type /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:207:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:207:3: error: (near initialization for ‘opt3001_event_spec’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:294:21: error: variable ‘ads1015_regmap_config’ has initializer but incomplete type/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:208:3: error: field name not in record or union initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:208:3: error: (near initialization for ‘opt3001_event_spec’)/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:295:2: error: unknown field ‘reg_bits’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:3: error: field name not in record or union initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:295:2: warning: excess elements in struct initializer [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:3: error: (near initialization for ‘opt3001_event_spec’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:295:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:296:2: error: unknown field ‘val_bits’ specified in initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:20: error: ‘IIO_EV_INFO_VALUE’ undeclared here (not in a function)

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:296:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:20: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:296:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:210:4: error: ‘IIO_EV_INFO_ENABLE’ undeclared here (not in a function)/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:297:2: error: unknown field ‘max_register’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:210:4: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’)/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:297:2: warning: excess elements in struct initializer [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:297:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:43: error: invalid operands to binary | (have ‘struct attribute ’ and ‘struct attribute ’)

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:298:2: error: unknown field ‘writeable_reg’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:213:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:298:2: warning: excess elements in struct initializer [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:213:3: error: (near initialization for ‘opt3001_event_spec’)

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:298:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:214:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:214:3: error: (near initialization for ‘opt3001_event_spec’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:3: error: (near initialization for ‘opt3001_event_spec’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:20: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’)/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: unknown field ‘info_mask_separate’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:216:4: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute ’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:43: error: invalid operands to binary | (have ‘struct attribute ’ and ‘struct attribute **’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: unknown field ‘event_spec’ specified in initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:223:3: error: unknown field ‘info_mask_separate’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: ‘IIO_CHAN_INFO_INT_TIME’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute ’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:223:54: error: invalid operands to binary | (have ‘long unsigned int’ and ‘struct attribute ’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: (near initialization for ‘opt3001_channels[0].channel’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:225:3: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:225:3: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:225:3: error: (near initialization for ‘opt3001_channels[0].channel2’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:3: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:22: error: invalid operands to binary / (have ‘struct attribute **’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:22: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:22: error: (near initialization for ‘opt3001_channels[0].address’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_get_lux’: /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:246:3: error: implicit declaration of function ‘i2c_smbus_write_word_swapped’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:263:2: error: implicit declaration of function ‘i2c_smbus_read_word_swapped’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: negative width in bit-field ‘’/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_write_raw’:

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:437:11: warning: comparison between pointer and integer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:453:3: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:453:3: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:452:53: error: parameter 5 (‘info’) has incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:450:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:481:3: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:480:53: error: parameter 5 (‘info’) has incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:478:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: (near initialization for ‘ads1115_channels[0].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: (near initialization for ‘ads1115_channels[0].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: (near initialization for ‘ads1115_channels[1].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: (near initialization for ‘ads1115_channels[1].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:593:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:593:2: warning: (near initialization for ‘opt3001_info.read_event_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:594:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:594:2: warning: (near initialization for ‘opt3001_info.write_event_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: (near initialization for ‘ads1115_channels[2].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: (near initialization for ‘ads1115_channels[2].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: (near initialization for ‘ads1115_channels[3].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: (near initialization for ‘ads1115_channels[3].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: (near initialization for ‘ads1115_channels[4].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec *’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: (near initialization for ‘ads1115_channels[4].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_irq’: /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:715:6: error: too many arguments to function ‘iio_get_time_ns’ /usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:721:6: error: too many arguments to function ‘iio_get_time_ns’ /usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: unknown field ‘event_spec’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: (near initialization for ‘ads1115_channels[5].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec *’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: (near initialization for ‘ads1115_channels[5].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_probe’:/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: unknown field ‘info_mask_separate’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:751:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:751:6: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: (near initialization for ‘ads1115_channels[6].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: (near initialization for ‘ads1115_channels[6].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:778:2: error: implicit declaration of function ‘devm_iio_device_register’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: (near initialization for ‘ads1115_channels[7].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: (near initialization for ‘ads1115_channels[7].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_set_power_state’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:328:9: error: implicit declaration of function ‘regmap_get_device’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:328:23: warning: initialization makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_get_adc_result’: /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: At top level:/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:357:2: error: implicit declaration of function ‘GENMASK’ [-Werror=implicit-function-declaration]

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:855:1: warning: data definition has no type or storage class [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:855:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:855:1: warning: parameter names (without types) in function declaration [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_trigger_handler’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:411:2: error: implicit declaration of function ‘iio_push_to_buffers_with_timestamp’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:412:9: error: too many arguments to function ‘iio_get_time_ns’ /usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_read_raw’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:464:3: error: implicit declaration of function ‘iio_device_claim_direct_mode’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:492:3: error: implicit declaration of function ‘iio_device_release_direct_mode’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:205:36: warning: ‘opt3001_event_spec’ defined but not used [-Wunused-variable] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:844:26: warning: ‘opt3001_driver’ defined but not used [-Wunused-variable] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:499:9: error: ‘IIO_VAL_FRACTIONAL_LOG2’ undeclared (first use in this function) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:499:9: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:499:7: warning: assignment makes integer from pointer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:542:2: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:542:2: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:541:52: error: parameter 5 (‘info’) has incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:539:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:582:2: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:581:52: error: parameter 5 (‘info’) has incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:579:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_event_handler’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:773:3: error: too many arguments to function ‘iio_get_time_ns’ /usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here cc1: some warnings being treated as errors /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:800:25: error: ‘iio_validate_scan_mask_onehot’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:800:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:800:2: error: (near initialization for ‘ads1015_buffer_setup_ops.validate_scan_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:838:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:838:2: warning: (near initialization for ‘ads1015_info.read_event_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:839:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:839:2: warning: (near initialization for ‘ads1015_info.write_event_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:848:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:848:2: warning: (near initialization for ‘ads1115_info.read_event_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:849:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:849:2: warning: (near initialization for ‘ads1115_info.write_event_config’) [enabled by default] /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.o' failed make[4]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.o] Error 1 /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/light' failed make[3]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/light] Error 2 /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_probe’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:955:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:955:12: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:970:16: error: implicit declaration of function ‘of_device_get_match_data’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1003:2: error: implicit declaration of function ‘devm_regmap_init_i2c’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1003:15: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1004:2: error: implicit declaration of function ‘IS_ERR’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1006:3: error: implicit declaration of function ‘PTR_ERR’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1009:2: error: implicit declaration of function ‘devm_iio_triggered_buffer_setup’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1153:1: warning: data definition has no type or storage class [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1153:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1153:1: warning: parameter names (without types) in function declaration [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:131:36: warning: ‘ads1015_events’ defined but not used [-Wunused-variable] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1142:26: warning: ‘ads1015_driver’ defined but not used [-Wunused-variable] cc1: some warnings being treated as errors /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.o' failed make[4]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.o] Error 1 /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/adc' failed make[3]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/adc] Error 2 /usr/src/linux-headers-3.6-trunk-common/Makefile:1208: recipe for target 'module/var/lib/dkms/coral-enviro-drivers/1.3/build' failed make[2]: [module/var/lib/dkms/coral-enviro-drivers/1.3/build] Error 2 Makefile:130: recipe for target 'sub-make' failed make[1]: [sub-make] Error 2 Makefile:8: recipe for target 'all' failed make: *** [all] Error 2 make: Leaving directory '/usr/src/linux-headers-3.6-trunk-rpi'

mbrooksx commented 5 years ago

Raspbian decided to be difficult and switch from linux-headers to raspberrypi-kernel-headers but leave an antiquated (3.6) linux-headers package available. So if this is installed, modern drivers won't compile (the Enviro drivers compile for all installed kernel versions). Kill that version with fire:

sudo apt purge linux-headers sudo rm -rf /usr/lib/modules/3.6*

Then you can install.

The package definition has also been changed to only allow installation of linux-headers > 4.9.

smithatlanta commented 5 years ago

Looks like I'm still having header issues...

When I run the above, I get the following:

_sudo apt purge linux-headers

Reading package lists... Done Building dependency tree
Reading state information... Done Virtual packages like 'linux-headers' can't be removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded._

I went ahead and ran the rm -rf /usr/lib/modules/3.6* then I did an apt remove python3-coral-enviro and then I did an apt update and reran apt install python3-coral-enviro

This was the result:

sudo apt install python3-coral-enviro

Reading package lists... Done Building dependency tree
Reading state information... Done The following additional packages will be installed: coral-enviro-drivers-dkms dkms linux-headers-3.6-trunk-common linux-headers-3.6-trunk-rpi linux-kbuild-3.6 python3-coral-cloudiot python3-cryptoauthlib python3-luma-core python3-luma-oled python3-paho-mqtt python3-smbus2 Suggested packages: python3-apport menu The following NEW packages will be installed: coral-enviro-drivers-dkms dkms linux-headers-3.6-trunk-common linux-headers-3.6-trunk-rpi linux-kbuild-3.6 python3-coral-cloudiot python3-coral-enviro python3-cryptoauthlib python3-luma-core python3-luma-oled python3-paho-mqtt python3-smbus2 0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/5,001 kB of archives. After this operation, 30.8 MB of additional disk space will be used. Do you want to continue? [Y/n] Y sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory Selecting previously unselected package dkms. (Reading database ... 133096 files and directories currently installed.) Preparing to unpack .../00-dkms_2.3-2_all.deb ... Unpacking dkms (2.3-2) ... Selecting previously unselected package linux-headers-3.6-trunk-common. Preparing to unpack .../01-linux-headers-3.6-trunk-common_3.6.9-1~experimental.1+rpi7_armhf.deb ... Unpacking linux-headers-3.6-trunk-common (3.6.9-1~experimental.1+rpi7) ... Selecting previously unselected package linux-kbuild-3.6. Preparing to unpack .../02-linux-kbuild-3.6_3.6-1~experimental.1+rpi2+b2_armhf.deb ... Unpacking linux-kbuild-3.6 (3.6-1~experimental.1+rpi2+b2) ... Selecting previously unselected package linux-headers-3.6-trunk-rpi. Preparing to unpack .../03-linux-headers-3.6-trunk-rpi_3.6.9-1~experimental.1+rpi7_armhf.deb ... Unpacking linux-headers-3.6-trunk-rpi (3.6.9-1~experimental.1+rpi7) ... Selecting previously unselected package coral-enviro-drivers-dkms. Preparing to unpack .../04-coral-enviro-drivers-dkms_1.3_all.deb ... Unpacking coral-enviro-drivers-dkms (1.3) ... Selecting previously unselected package python3-paho-mqtt. Preparing to unpack .../05-python3-paho-mqtt_1.4.0~dev0-1_all.deb ... Unpacking python3-paho-mqtt (1.4.0~dev0-1) ... Selecting previously unselected package python3-cryptoauthlib. Preparing to unpack .../06-python3-cryptoauthlib_20190304-1_armhf.deb ... Unpacking python3-cryptoauthlib (20190304-1) ... Selecting previously unselected package python3-coral-cloudiot. Preparing to unpack .../07-python3-coral-cloudiot_1.0_all.deb ... Unpacking python3-coral-cloudiot (1.0) ... Selecting previously unselected package python3-smbus2. Preparing to unpack .../08-python3-smbus2_0.2.2-1_all.deb ... Unpacking python3-smbus2 (0.2.2-1) ... Selecting previously unselected package python3-luma-core. Preparing to unpack .../09-python3-luma-core_1.8.3-1_all.deb ... Unpacking python3-luma-core (1.8.3-1) ... Selecting previously unselected package python3-luma-oled. Preparing to unpack .../10-python3-luma-oled_3.2.0-1_all.deb ... Unpacking python3-luma-oled (3.2.0-1) ... Selecting previously unselected package python3-coral-enviro. Preparing to unpack .../11-python3-coral-enviro_1.0_all.deb ... Unpacking python3-coral-enviro (1.0) ... Setting up linux-headers-3.6-trunk-common (3.6.9-1~experimental.1+rpi7) ... Setting up python3-cryptoauthlib (20190304-1) ... Setting up python3-paho-mqtt (1.4.0~dev0-1) ... Setting up python3-smbus2 (0.2.2-1) ... Setting up dkms (2.3-2) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up linux-kbuild-3.6 (3.6-1~experimental.1+rpi2+b2) ... Setting up python3-luma-core (1.8.3-1) ... Setting up python3-coral-cloudiot (1.0) ... Setting up linux-headers-3.6-trunk-rpi (3.6.9-1~experimental.1+rpi7) ... Examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/header_postinst.d/dkms 3.6-trunk-rpi Setting up coral-enviro-drivers-dkms (1.3) ... Loading new coral-enviro-drivers-1.3 DKMS files... It is likely that 4.19.42-v7+ belongs to a chroot's host Building for 3.6-trunk-rpi, 4.19.42+ and 4.19.42-v7+ Building initial module for 3.6-trunk-rpi Error! Bad return status for module build on kernel: 3.6-trunk-rpi (armv7l) Consult /var/lib/dkms/coral-enviro-drivers/1.3/build/make.log for more information. Setting up python3-luma-oled (3.2.0-1) ... Setting up python3-coral-enviro (1.0) ...

Looks like it's grabbing the old headers still.

The make log looks like this:

DKMS make.log for coral-enviro-drivers-1.3 for kernel 3.6-trunk-rpi (armv7l) Tue Jun 4 12:30:27 EDT 2019 make: Entering directory '/usr/src/linux-headers-3.6-trunk-rpi' LD /var/lib/dkms/coral-enviro-drivers/1.3/build/built-in.o LD /var/lib/dkms/coral-enviro-drivers/1.3/build/light/built-in.o LD /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/built-in.o LD /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/built-in.o CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.o CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.o LD /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/built-in.o CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.o CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.o /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:70:21: error: variable ‘hdc20x0_regmap_config’ has initializer but incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:92:11: error: ‘IIO_PRESSURE’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:71:2: error: unknown field ‘reg_bits’ specified in initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:93:3: error: unknown field ‘info_mask_separate’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:71:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:71:2: warning: (near initialization for ‘hdc20x0_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:72:2: error: unknown field ‘val_bits’ specified in initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:97:3: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:194:38: error: expected declaration specifiers or ‘...’ before string constant

/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:72:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:72:2: warning: (near initialization for ‘hdc20x0_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:197:3: error: ‘iio_const_attr_integration_time_available’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:73:2: error: unknown field ‘max_register’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:73:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:73:2: warning: (near initialization for ‘hdc20x0_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:205:36: error: array type has incomplete element type /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:207:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:207:3: error: (near initialization for ‘opt3001_event_spec’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:208:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:208:3: error: (near initialization for ‘opt3001_event_spec’) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:129:21: error: variable ‘bmp280_regmap_config’ has initializer but incomplete type/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:3: error: field name not in record or union initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:3: error: (near initialization for ‘opt3001_event_spec’)/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:130:2: error: unknown field ‘reg_bits’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:130:2: warning: excess elements in struct initializer [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:20: error: ‘IIO_EV_INFO_VALUE’ undeclared here (not in a function)

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:130:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:20: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:131:2: error: unknown field ‘val_bits’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:210:4: error: ‘IIO_EV_INFO_ENABLE’ undeclared here (not in a function)/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:131:2: warning: excess elements in struct initializer [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:131:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:210:4: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’)/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:90:3: error: unknown field ‘info_mask_separate’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:133:2: error: unknown field ‘max_register’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:43: error: invalid operands to binary | (have ‘struct attribute ’ and ‘struct attribute ’) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:133:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:213:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:133:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:213:3: error: (near initialization for ‘opt3001_event_spec’) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:134:2: error: unknown field ‘cache_type’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:94:11: error: ‘IIO_HUMIDITYRELATIVE’ undeclared here (not in a function)/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:214:3: error: field name not in record or union initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:134:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:214:3: error: (near initialization for ‘opt3001_event_spec’) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:134:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:96:3: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:3: error: field name not in record or union initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:136:2: error: unknown field ‘writeable_reg’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:3: error: (near initialization for ‘opt3001_event_spec’) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:136:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:20: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’)/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:136:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:101:3: error: unknown field ‘info_mask_separate’ specified in initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:137:2: error: unknown field ‘volatile_reg’ specified in initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:216:4: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’)

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:137:2: warning: excess elements in struct initializer [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:43: error: invalid operands to binary | (have ‘struct attribute ’ and ‘struct attribute ’)

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:137:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:223:3: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: ‘IIO_CHAN_INFO_INT_TIME’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute ’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:223:54: error: invalid operands to binary | (have ‘long unsigned int’ and ‘struct attribute ’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: In function ‘hdc20x0_get_measurement’: /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: (near initialization for ‘opt3001_channels[0].channel’) /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:122:9: error: implicit declaration of function ‘regmap_get_device’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:225:3: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:122:23: warning: initialization makes pointer from integer without a cast [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:225:3: error: initializer element is not constant

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:225:3: error: (near initialization for ‘opt3001_channels[0].channel2’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:3: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:22: error: invalid operands to binary / (have ‘struct attribute **’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:22: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:22: error: (near initialization for ‘opt3001_channels[0].address’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_get_lux’: /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:246:3: error: implicit declaration of function ‘i2c_smbus_write_word_swapped’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:263:2: error: implicit declaration of function ‘i2c_smbus_read_word_swapped’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: In function ‘hdc20x0_read_raw’: /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:212:11: error: ‘IIO_VAL_FRACTIONAL’ undeclared (first use in this function) /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:212:11: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:212:4: warning: return makes integer from pointer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:213:25: warning: comparison between pointer and integer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:216:4: warning: return makes integer from pointer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c: In function ‘bmp280_read_press’: /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:277:9: error: ‘IIO_VAL_FRACTIONAL’ undeclared (first use in this function) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:277:9: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:277:2: warning: return makes integer from pointer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: In function ‘hdc20x0_probe’: /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:268:2: error: implicit declaration of function ‘i2c_check_functionality’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:272:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:272:12: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:278:2: error: implicit declaration of function ‘devm_regmap_init_i2c’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:278:15: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c: In function ‘bmp280_probe’: /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:355:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:289:2: error: implicit declaration of function ‘devm_iio_device_register’ [-Werror=implicit-function-declaration]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_write_raw’:

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:355:12: warning: assignment makes pointer from integer without a cast [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:437:11: warning: comparison between pointer and integer [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:453:3: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:453:3: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:452:53: error: parameter 5 (‘info’) has incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:450:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:370:2: error: implicit declaration of function ‘devm_regmap_init_i2c’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:370:15: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:313:1: warning: data definition has no type or storage class [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:371:2: error: implicit declaration of function ‘IS_ERR’ [-Werror=implicit-function-declaration]

/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:313:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:313:1: warning: parameter names (without types) in function declaration [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:373:3: error: implicit declaration of function ‘PTR_ERR’ [-Werror=implicit-function-declaration]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:481:3: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:480:53: error: parameter 5 (‘info’) has incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:478:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:389:2: error: implicit declaration of function ‘devm_iio_device_register’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: unknown field ‘acpi_match_table’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: implicit declaration of function ‘ACPI_PTR’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: (near initialization for ‘bmp280_driver.driver.bus’) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:412:1: warning: data definition has no type or storage class [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:412:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:412:1: warning: parameter names (without types) in function declaration [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:593:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:593:2: warning: (near initialization for ‘opt3001_info.read_event_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:594:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:594:2: warning: (near initialization for ‘opt3001_info.write_event_config’) [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:131:36: error: array type has incomplete element type

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:133:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:133:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:134:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:134:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:135:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:135:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:135:20: error: ‘IIO_EV_INFO_VALUE’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:136:5: error: ‘IIO_EV_INFO_ENABLE’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:138:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:138:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:139:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:139:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:140:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:140:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:142:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:142:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:143:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:143:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:144:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:144:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:145:5: error: ‘IIO_EV_INFO_PERIOD’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:304:26: warning: ‘hdc20x0_driver’ defined but not used [-Wunused-variable] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:294:21: error: variable ‘ads1015_regmap_config’ has initializer but incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:295:2: error: unknown field ‘reg_bits’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:295:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:295:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:296:2: error: unknown field ‘val_bits’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:296:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:296:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:297:2: error: unknown field ‘max_register’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:297:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_irq’:/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:404:26: warning: ‘bmp280_driver’ defined but not used [-Wunused-variable] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:297:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:715:6: error: too many arguments to function ‘iio_get_time_ns’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:298:2: error: unknown field ‘writeable_reg’ specified in initializer/usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:298:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:298:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:721:6: error: too many arguments to function ‘iio_get_time_ns’/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: unknown field ‘info_mask_separate’ specified in initializer

/usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_probe’: /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:751:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:751:6: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:778:2: error: implicit declaration of function ‘devm_iio_device_register’ [-Werror=implicit-function-declaration]/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: unknown field ‘info_mask_separate’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: unknown field ‘info_mask_separate’ specified in initializer cc1: some warnings being treated as errors /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: negative width in bit-field ‘’/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:855:1: warning: data definition has no type or storage class [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:855:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:855:1: warning: parameter names (without types) in function declaration [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: unknown field ‘info_mask_separate’ specified in initializer cc1: some warnings being treated as errors /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: unknown field ‘info_mask_separate’ specified in initializer /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.o' failed make[4]: ** [/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.o] Error 1 /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: (near initialization for ‘ads1115_channels[0].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: initializer element is not constant/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity' failed

make[3]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity] Error 2 /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: (near initialization for ‘ads1115_channels[0].event_mask’) make[3]: Waiting for unfinished jobs.... /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: unknown field ‘info_mask_separate’ specified in initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:205:36: warning: ‘opt3001_event_spec’ defined but not used [-Wunused-variable]

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:844:26: warning: ‘opt3001_driver’ defined but not used [-Wunused-variable] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: (near initialization for ‘ads1115_channels[1].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec *’ and ‘unsigned int’) /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.o' failed make[4]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.o] Error 1 make[4]: Waiting for unfinished jobs.... /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: (near initialization for ‘ads1115_channels[1].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: (near initialization for ‘ads1115_channels[2].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: (near initialization for ‘ads1115_channels[2].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: (near initialization for ‘ads1115_channels[3].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: (near initialization for ‘ads1115_channels[3].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: (near initialization for ‘ads1115_channels[4].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec *’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: (near initialization for ‘ads1115_channels[4].event_mask’) cc1: some warnings being treated as errors /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: initializer element is not constant /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure' failed /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: (near initialization for ‘ads1115_channels[5].info_mask’) make[3]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure] Error 2 /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: (near initialization for ‘ads1115_channels[5].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: (near initialization for ‘ads1115_channels[6].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: (near initialization for ‘ads1115_channels[6].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: (near initialization for ‘ads1115_channels[7].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: (near initialization for ‘ads1115_channels[7].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_set_power_state’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:328:9: error: implicit declaration of function ‘regmap_get_device’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:328:23: warning: initialization makes pointer from integer without a cast [enabled by default] /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.o' failed make[4]: ** [/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.o] Error 1 make[4]: Waiting for unfinished jobs.... /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_get_adc_result’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:357:2: error: implicit declaration of function ‘GENMASK’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_trigger_handler’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:411:2: error: implicit declaration of function ‘iio_push_to_buffers_with_timestamp’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:412:9: error: too many arguments to function ‘iio_get_time_ns’ /usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/light' failed make[3]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/light] Error 2 /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_read_raw’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:464:3: error: implicit declaration of function ‘iio_device_claim_direct_mode’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:492:3: error: implicit declaration of function ‘iio_device_release_direct_mode’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:499:9: error: ‘IIO_VAL_FRACTIONAL_LOG2’ undeclared (first use in this function) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:499:9: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:499:7: warning: assignment makes integer from pointer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:542:2: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:542:2: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:541:52: error: parameter 5 (‘info’) has incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:539:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:582:2: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:581:52: error: parameter 5 (‘info’) has incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:579:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_event_handler’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:773:3: error: too many arguments to function ‘iio_get_time_ns’ /usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:800:25: error: ‘iio_validate_scan_mask_onehot’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:800:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:800:2: error: (near initialization for ‘ads1015_buffer_setup_ops.validate_scan_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:838:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:838:2: warning: (near initialization for ‘ads1015_info.read_event_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:839:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:839:2: warning: (near initialization for ‘ads1015_info.write_event_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:848:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:848:2: warning: (near initialization for ‘ads1115_info.read_event_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:849:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:849:2: warning: (near initialization for ‘ads1115_info.write_event_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_probe’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:955:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:955:12: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:970:16: error: implicit declaration of function ‘of_device_get_match_data’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1003:2: error: implicit declaration of function ‘devm_regmap_init_i2c’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1003:15: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1004:2: error: implicit declaration of function ‘IS_ERR’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1006:3: error: implicit declaration of function ‘PTR_ERR’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1009:2: error: implicit declaration of function ‘devm_iio_triggered_buffer_setup’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1153:1: warning: data definition has no type or storage class [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1153:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1153:1: warning: parameter names (without types) in function declaration [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:131:36: warning: ‘ads1015_events’ defined but not used [-Wunused-variable] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1142:26: warning: ‘ads1015_driver’ defined but not used [-Wunused-variable] cc1: some warnings being treated as errors /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.o' failed make[4]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.o] Error 1 /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/adc' failed make[3]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/adc] Error 2 /usr/src/linux-headers-3.6-trunk-common/Makefile:1208: recipe for target 'module/var/lib/dkms/coral-enviro-drivers/1.3/build' failed make[2]: [module/var/lib/dkms/coral-enviro-drivers/1.3/build] Error 2 Makefile:130: recipe for target 'sub-make' failed make[1]: [sub-make] Error 2 Makefile:8: recipe for target 'all' failed make: [all] Error 2 make: Leaving directory '/usr/src/linux-headers-3.6-trunk-rpi' pi@denpi:/usr/lib/python3/dist-packages/coral/enviro $

mbrooksx commented 5 years ago

Try removing it again and then explicitly running

sudo apt install raspberrypi-kernel-headers

The Debian install should then see this is installed and skip installing linux-headers

On Tue, Jun 4, 2019, 18:35 Michael Smith notifications@github.com wrote:

Looks like I'm still having header issues...

When I run the above, I get the following:

_sudo apt purge linux-headers

Reading package lists... Done Building dependency tree Reading state information... Done Virtual packages like 'linux-headers' can't be removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded._

I went ahead and ran the *rm -rf /usr/lib/modules/3.6* then I did an apt remove python3-coral-enviro and then I did an apt update and reran apt install python3-coral-enviro*

This was the result:

_sudo apt install python3-coral-enviro

Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: coral-enviro-drivers-dkms dkms linux-headers-3.6-trunk-common linux-headers-3.6-trunk-rpi linux-kbuild-3.6 python3-coral-cloudiot python3-cryptoauthlib python3-luma-core python3-luma-oled python3-paho-mqtt python3-smbus2 Suggested packages: python3-apport menu The following NEW packages will be installed: coral-enviro-drivers-dkms dkms linux-headers-3.6-trunk-common linux-headers-3.6-trunk-rpi linux-kbuild-3.6 python3-coral-cloudiot python3-coral-enviro python3-cryptoauthlib python3-luma-core python3-luma-oled python3-paho-mqtt python3-smbus2 0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/5,001 kB of archives. After this operation, 30.8 MB of additional disk space will be used. Do you want to continue? [Y/n] Y sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory Selecting previously unselected package dkms. (Reading database ... 133096 files and directories currently installed.) Preparing to unpack .../00-dkms_2.3-2_all.deb ... Unpacking dkms (2.3-2) ... Selecting previously unselected package linux-headers-3.6-trunk-common. Preparing to unpack .../01-linux-headers-3.6-trunk-common_3.6.9-1experimental.1+rpi7_armhf.deb ... Unpacking linux-headers-3.6-trunk-common (3.6.9-1experimental.1+rpi7) ... Selecting previously unselected package linux-kbuild-3.6. Preparing to unpack .../02-linux-kbuild-3.6_3.6-1experimental.1+rpi2+b2_armhf.deb ... Unpacking linux-kbuild-3.6 (3.6-1experimental.1+rpi2+b2) ... Selecting previously unselected package linux-headers-3.6-trunk-rpi. Preparing to unpack .../03-linux-headers-3.6-trunk-rpi_3.6.9-1experimental.1+rpi7_armhf.deb ... Unpacking linux-headers-3.6-trunk-rpi (3.6.9-1experimental.1+rpi7) ... Selecting previously unselected package coral-enviro-drivers-dkms. Preparing to unpack .../04-coral-enviro-drivers-dkms_1.3_all.deb ... Unpacking coral-enviro-drivers-dkms (1.3) ... Selecting previously unselected package python3-paho-mqtt. Preparing to unpack .../05-python3-paho-mqtt_1.4.0dev0-1_all.deb ... Unpacking python3-paho-mqtt (1.4.0dev0-1) ... Selecting previously unselected package python3-cryptoauthlib. Preparing to unpack .../06-python3-cryptoauthlib_20190304-1_armhf.deb ... Unpacking python3-cryptoauthlib (20190304-1) ... Selecting previously unselected package python3-coral-cloudiot. Preparing to unpack .../07-python3-coral-cloudiot_1.0_all.deb ... Unpacking python3-coral-cloudiot (1.0) ... Selecting previously unselected package python3-smbus2. Preparing to unpack .../08-python3-smbus2_0.2.2-1_all.deb ... Unpacking python3-smbus2 (0.2.2-1) ... Selecting previously unselected package python3-luma-core. Preparing to unpack .../09-python3-luma-core_1.8.3-1_all.deb ... Unpacking python3-luma-core (1.8.3-1) ... Selecting previously unselected package python3-luma-oled. Preparing to unpack .../10-python3-luma-oled_3.2.0-1_all.deb ... Unpacking python3-luma-oled (3.2.0-1) ... Selecting previously unselected package python3-coral-enviro. Preparing to unpack .../11-python3-coral-enviro_1.0_all.deb ... Unpacking python3-coral-enviro (1.0) ... Setting up linux-headers-3.6-trunk-common (3.6.9-1experimental.1+rpi7) ... Setting up python3-cryptoauthlib (20190304-1) ... Setting up python3-paho-mqtt (1.4.0dev0-1) ... Setting up python3-smbus2 (0.2.2-1) ... Setting up dkms (2.3-2) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up linux-kbuild-3.6 (3.6-1experimental.1+rpi2+b2) ... Setting up python3-luma-core (1.8.3-1) ... Setting up python3-coral-cloudiot (1.0) ... Setting up linux-headers-3.6-trunk-rpi (3.6.9-1experimental.1+rpi7) ... Examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/headerpostinst.d/dkms 3.6-trunk-rpi Setting up coral-enviro-drivers-dkms (1.3) ... Loading new coral-enviro-drivers-1.3 DKMS files... It is likely that 4.19.42-v7+ belongs to a chroot's host Building for 3.6-trunk-rpi, 4.19.42+ and 4.19.42-v7+ Building initial module for 3.6-trunk-rpi Error! Bad return status for module build on kernel: 3.6-trunk-rpi (armv7l) Consult /var/lib/dkms/coral-enviro-drivers/1.3/build/make.log for more information. Setting up python3-luma-oled (3.2.0-1) ... Setting up python3-coral-enviro (1.0) ...

Looks like it's grabbing the old headers still.

The make log looks like this:

DKMS make.log for coral-enviro-drivers-1.3 for kernel 3.6-trunk-rpi (armv7l) Tue Jun 4 12:30:27 EDT 2019 make: Entering directory '/usr/src/linux-headers-3.6-trunk-rpi' LD /var/lib/dkms/coral-enviro-drivers/1.3/build/built-in.o LD /var/lib/dkms/coral-enviro-drivers/1.3/build/light/built-in.o LD /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/built-in.o LD /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/built-in.o CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.o CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.o LD /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/built-in.o CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.o CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.o /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:70:21: error: variable ‘hdc20x0_regmap_config’ has initializer but incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:92:11: error: ‘IIO_PRESSURE’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:71:2: error: unknown field ‘reg_bits’ specified in initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:93:3: error: unknown field ‘info_mask_separate’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:71:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:71:2: warning: (near initialization for ‘hdc20x0_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:72:2: error: unknown field ‘val_bits’ specified in initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:97:3: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:194:38: error: expected declaration specifiers or ‘...’ before string constant

/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:72:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:72:2: warning: (near initialization for ‘hdc20x0_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:197:3: error: ‘iio_const_attr_integration_time_available’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:73:2: error: unknown field ‘max_register’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:73:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:73:2: warning: (near initialization for ‘hdc20x0_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:205:36: error: array type has incomplete element type /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:207:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:207:3: error: (near initialization for ‘opt3001_event_spec’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:208:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:208:3: error: (near initialization for ‘opt3001_event_spec’) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:129:21: error: variable ‘bmp280_regmap_config’ has initializer but incomplete type/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:3: error: field name not in record or union initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:3: error: (near initialization for ‘opt3001_event_spec’)/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:130:2: error: unknown field ‘reg_bits’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:130:2: warning: excess elements in struct initializer [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:20: error: ‘IIO_EV_INFO_VALUE’ undeclared here (not in a function)

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:130:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:20: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:131:2: error: unknown field ‘val_bits’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:210:4: error: ‘IIO_EV_INFO_ENABLE’ undeclared here (not in a function)/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:131:2: warning: excess elements in struct initializer [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:131:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:210:4: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’)/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:90:3: error: unknown field ‘info_mask_separate’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:133:2: error: unknown field ‘max_register’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:43: error: invalid operands to binary | (have ‘struct attribute ’ and ‘struct attribute ’) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:133:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:213:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:133:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:213:3: error: (near initialization for ‘opt3001_event_spec’) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:134:2: error: unknown field ‘cache_type’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:94:11: error: ‘IIO_HUMIDITYRELATIVE’ undeclared here (not in a function)/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:214:3: error: field name not in record or union initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:134:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:214:3: error: (near initialization for ‘opt3001_event_spec’) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:134:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:96:3: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:3: error: field name not in record or union initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:136:2: error: unknown field ‘writeable_reg’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:3: error: (near initialization for ‘opt3001_event_spec’) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:136:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:20: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’)/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:136:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:101:3: error: unknown field ‘info_mask_separate’ specified in initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:137:2: error: unknown field ‘volatile_reg’ specified in initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:216:4: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’)

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:137:2: warning: excess elements in struct initializer [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:43: error: invalid operands to binary | (have ‘struct attribute ’ and ‘struct attribute ’)

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:137:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:223:3: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: ‘IIO_CHAN_INFO_INT_TIME’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute ’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:223:54: error: invalid operands to binary | (have ‘long unsigned int’ and ‘struct attribute ’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: In function ‘hdc20x0_get_measurement’: /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: (near initialization for ‘opt3001_channels[0].channel’) /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:122:9: error: implicit declaration of function ‘regmap_get_device’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:225:3: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:122:23: warning: initialization makes pointer from integer without a cast [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:225:3: error: initializer element is not constant

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:225:3: error: (near initialization for ‘opt3001_channels[0].channel2’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:3: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:22: error: invalid operands to binary / (have ‘struct attribute **’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:22: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:22: error: (near initialization for ‘opt3001_channels[0].address’) /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_get_lux’: /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:246:3: error: implicit declaration of function ‘i2c_smbus_write_word_swapped’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:263:2: error: implicit declaration of function ‘i2c_smbus_read_word_swapped’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: In function ‘hdc20x0_read_raw’: /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:212:11: error: ‘IIO_VAL_FRACTIONAL’ undeclared (first use in this function) /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:212:11: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:212:4: warning: return makes integer from pointer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:213:25: warning: comparison between pointer and integer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:216:4: warning: return makes integer from pointer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c: In function ‘bmp280_read_press’: /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:277:9: error: ‘IIO_VAL_FRACTIONAL’ undeclared (first use in this function) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:277:9: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:277:2: warning: return makes integer from pointer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: In function ‘hdc20x0_probe’: /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:268:2: error: implicit declaration of function ‘i2c_check_functionality’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:272:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:272:12: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:278:2: error: implicit declaration of function ‘devm_regmap_init_i2c’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:278:15: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c: In function ‘bmp280_probe’: /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:355:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:289:2: error: implicit declaration of function ‘devm_iio_device_register’ [-Werror=implicit-function-declaration]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_write_raw’:

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:355:12: warning: assignment makes pointer from integer without a cast [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:437:11: warning: comparison between pointer and integer [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:453:3: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:453:3: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:452:53: error: parameter 5 (‘info’) has incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:450:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:370:2: error: implicit declaration of function ‘devm_regmap_init_i2c’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:370:15: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:313:1: warning: data definition has no type or storage class [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:371:2: error: implicit declaration of function ‘IS_ERR’ [-Werror=implicit-function-declaration]

/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:313:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:313:1: warning: parameter names (without types) in function declaration [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:373:3: error: implicit declaration of function ‘PTR_ERR’ [-Werror=implicit-function-declaration]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:481:3: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:480:53: error: parameter 5 (‘info’) has incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:478:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:389:2: error: implicit declaration of function ‘devm_iio_device_register’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: unknown field ‘acpi_match_table’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: implicit declaration of function ‘ACPI_PTR’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: (near initialization for ‘bmp280_driver.driver.bus’) /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:412:1: warning: data definition has no type or storage class [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:412:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:412:1: warning: parameter names (without types) in function declaration [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:593:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:593:2: warning: (near initialization for ‘opt3001_info.read_event_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:594:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:594:2: warning: (near initialization for ‘opt3001_info.write_event_config’) [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:131:36: error: array type has incomplete element type

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:133:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:133:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:134:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:134:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:135:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:135:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:135:20: error: ‘IIO_EV_INFO_VALUE’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:136:5: error: ‘IIO_EV_INFO_ENABLE’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:138:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:138:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:139:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:139:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:140:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:140:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:142:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:142:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:143:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:143:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:144:3: error: field name not in record or union initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:144:3: error: (near initialization for ‘ads1015_events’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:145:5: error: ‘IIO_EV_INFO_PERIOD’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:304:26: warning: ‘hdc20x0_driver’ defined but not used [-Wunused-variable] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:294:21: error: variable ‘ads1015_regmap_config’ has initializer but incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:295:2: error: unknown field ‘reg_bits’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:295:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:295:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:296:2: error: unknown field ‘val_bits’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:296:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:296:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:297:2: error: unknown field ‘max_register’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:297:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_irq’:/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:404:26: warning: ‘bmp280_driver’ defined but not used [-Wunused-variable] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:297:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:715:6: error: too many arguments to function ‘iio_get_time_ns’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:298:2: error: unknown field ‘writeable_reg’ specified in initializer/usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:298:2: warning: excess elements in struct initializer [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:298:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:721:6: error: too many arguments to function ‘iio_get_time_ns’/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: unknown field ‘info_mask_separate’ specified in initializer

/usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_probe’: /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:751:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:751:6: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:778:2: error: implicit declaration of function ‘devm_iio_device_register’ [-Werror=implicit-function-declaration]/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: unknown field ‘info_mask_separate’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: unknown field ‘info_mask_separate’ specified in initializer cc1: some warnings being treated as errors /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: negative width in bit-field ‘’/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:855:1: warning: data definition has no type or storage class [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:855:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:855:1: warning: parameter names (without types) in function declaration [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: unknown field ‘info_mask_separate’ specified in initializer cc1: some warnings being treated as errors /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: negative width in bit-field ‘’ /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: unknown field ‘info_mask_separate’ specified in initializer /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.o' failed make[4]: ** [/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.o] Error 1 /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: (near initialization for ‘ads1115_channels[0].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: initializer element is not constant/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity' failed

make[3]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity] Error 2 /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: (near initialization for ‘ads1115_channels[0].event_mask’) make[3]: Waiting for unfinished jobs.... /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: unknown field ‘info_mask_separate’ specified in initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:205:36: warning: ‘opt3001_event_spec’ defined but not used [-Wunused-variable]

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:844:26: warning: ‘opt3001_driver’ defined but not used [-Wunused-variable] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: (near initialization for ‘ads1115_channels[1].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec *’ and ‘unsigned int’) /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.o' failed make[4]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.o] Error 1 make[4]: Waiting for unfinished jobs.... /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: (near initialization for ‘ads1115_channels[1].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: (near initialization for ‘ads1115_channels[2].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: (near initialization for ‘ads1115_channels[2].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: (near initialization for ‘ads1115_channels[3].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: (near initialization for ‘ads1115_channels[3].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: (near initialization for ‘ads1115_channels[4].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec *’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: (near initialization for ‘ads1115_channels[4].event_mask’) cc1: some warnings being treated as errors /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: initializer element is not constant /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure' failed /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: (near initialization for ‘ads1115_channels[5].info_mask’) make[3]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure] Error 2 /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: (near initialization for ‘ads1115_channels[5].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: (near initialization for ‘ads1115_channels[6].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: (near initialization for ‘ads1115_channels[6].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: unknown field ‘info_mask_separate’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: unknown field ‘event_spec’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: (near initialization for ‘ads1115_channels[7].info_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: unknown field ‘num_event_specs’ specified in initializer /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec ’ and ‘unsigned int’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: (near initialization for ‘ads1115_channels[7].event_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_set_power_state’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:328:9: error: implicit declaration of function ‘regmap_get_device’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:328:23: warning: initialization makes pointer from integer without a cast [enabled by default] /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.o' failed make[4]: ** [/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.o] Error 1 make[4]: Waiting for unfinished jobs.... /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_get_adc_result’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:357:2: error: implicit declaration of function ‘GENMASK’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_trigger_handler’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:411:2: error: implicit declaration of function ‘iio_push_to_buffers_with_timestamp’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:412:9: error: too many arguments to function ‘iio_get_time_ns’ /usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/light' failed make[3]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/light] Error 2 /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_read_raw’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:464:3: error: implicit declaration of function ‘iio_device_claim_direct_mode’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:492:3: error: implicit declaration of function ‘iio_device_release_direct_mode’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:499:9: error: ‘IIO_VAL_FRACTIONAL_LOG2’ undeclared (first use in this function) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:499:9: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:499:7: warning: assignment makes integer from pointer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:542:2: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:542:2: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:541:52: error: parameter 5 (‘info’) has incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:539:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:582:2: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:581:52: error: parameter 5 (‘info’) has incomplete type /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:579:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_event_handler’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:773:3: error: too many arguments to function ‘iio_get_time_ns’ /usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:800:25: error: ‘iio_validate_scan_mask_onehot’ undeclared here (not in a function) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:800:2: error: initializer element is not constant /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:800:2: error: (near initialization for ‘ads1015_buffer_setup_ops.validate_scan_mask’) /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:838:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:838:2: warning: (near initialization for ‘ads1015_info.read_event_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:839:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:839:2: warning: (near initialization for ‘ads1015_info.write_event_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:848:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:848:2: warning: (near initialization for ‘ads1115_info.read_event_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:849:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:849:2: warning: (near initialization for ‘ads1115_info.write_event_config’) [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_probe’: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:955:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:955:12: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:970:16: error: implicit declaration of function ‘of_device_get_match_data’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1003:2: error: implicit declaration of function ‘devm_regmap_init_i2c’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1003:15: warning: assignment makes pointer from integer without a cast [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1004:2: error: implicit declaration of function ‘IS_ERR’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1006:3: error: implicit declaration of function ‘PTR_ERR’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1009:2: error: implicit declaration of function ‘devm_iio_triggered_buffer_setup’ [-Werror=implicit-function-declaration] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: At top level: /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1153:1: warning: data definition has no type or storage class [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1153:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1153:1: warning: parameter names (without types) in function declaration [enabled by default] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:131:36: warning: ‘ads1015_events’ defined but not used [-Wunused-variable] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1142:26: warning: ‘ads1015_driver’ defined but not used [-Wunused-variable] cc1: some warnings being treated as errors /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.o' failed make[4]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.o] Error 1 /usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/adc' failed make[3]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/adc] Error 2 /usr/src/linux-headers-3.6-trunk-common/Makefile:1208: recipe for target ' module/var/lib/dkms/coral-enviro-drivers/1.3/build' failed make[2]: [module/var/lib/dkms/coral-enviro-drivers/1.3/build] Error 2 Makefile:130: recipe for target 'sub-make' failed make[1]: [sub-make] Error 2 Makefile:8: recipe for target 'all' failed make: [all] Error 2 make: Leaving directory '/usr/src/linux-headers-3.6-trunk-rpi' pi@denpi:/usr/lib/python3/dist-packages/coral/enviro $

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/f0cal/google-coral/issues/23?email_source=notifications&email_token=AAVHDICZM7QLZZ6OYE6SQ53PY2KVDA5CNFSM4HP5EOQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW5EVUA#issuecomment-498748112, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVHDIEFNXKOOAJHUMD34DLPY2KVDANCNFSM4HP5EOQQ .

smithatlanta commented 5 years ago

Getting much closer.

sudo apt install python3-coral-enviro

Reading package lists... Done Building dependency tree
Reading state information... Done The following additional packages will be installed: coral-enviro-drivers-dkms dkms python3-coral-cloudiot python3-cryptoauthlib python3-luma-core python3-luma-oled python3-paho-mqtt python3-smbus2 Suggested packages: python3-apport menu The following NEW packages will be installed: coral-enviro-drivers-dkms dkms python3-coral-cloudiot python3-coral-enviro python3-cryptoauthlib python3-luma-core python3-luma-oled python3-paho-mqtt python3-smbus2 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/262 kB of archives. After this operation, 1,463 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Selecting previously unselected package dkms. (Reading database ... 166466 files and directories currently installed.) Preparing to unpack .../0-dkms_2.3-2_all.deb ... Unpacking dkms (2.3-2) ... Selecting previously unselected package coral-enviro-drivers-dkms. Preparing to unpack .../1-coral-enviro-drivers-dkms_1.3_all.deb ... Unpacking coral-enviro-drivers-dkms (1.3) ... Selecting previously unselected package python3-paho-mqtt. Preparing to unpack .../2-python3-paho-mqtt_1.4.0~dev0-1_all.deb ... Unpacking python3-paho-mqtt (1.4.0~dev0-1) ... Selecting previously unselected package python3-cryptoauthlib. Preparing to unpack .../3-python3-cryptoauthlib_20190304-1_armhf.deb ... Unpacking python3-cryptoauthlib (20190304-1) ... Selecting previously unselected package python3-coral-cloudiot. Preparing to unpack .../4-python3-coral-cloudiot_1.0_all.deb ... Unpacking python3-coral-cloudiot (1.0) ... Selecting previously unselected package python3-smbus2. Preparing to unpack .../5-python3-smbus2_0.2.2-1_all.deb ... Unpacking python3-smbus2 (0.2.2-1) ... Selecting previously unselected package python3-luma-core. Preparing to unpack .../6-python3-luma-core_1.8.3-1_all.deb ... Unpacking python3-luma-core (1.8.3-1) ... Selecting previously unselected package python3-luma-oled. Preparing to unpack .../7-python3-luma-oled_3.2.0-1_all.deb ... Unpacking python3-luma-oled (3.2.0-1) ... Selecting previously unselected package python3-coral-enviro. Preparing to unpack .../8-python3-coral-enviro_1.0_all.deb ... Unpacking python3-coral-enviro (1.0) ... Setting up python3-cryptoauthlib (20190304-1) ... Setting up python3-paho-mqtt (1.4.0~dev0-1) ... Setting up python3-smbus2 (0.2.2-1) ... Setting up dkms (2.3-2) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up python3-luma-core (1.8.3-1) ... Setting up python3-coral-cloudiot (1.0) ... Setting up coral-enviro-drivers-dkms (1.3) ... Loading new coral-enviro-drivers-1.3 DKMS files... It is likely that 4.19.42-v7+ belongs to a chroot's host Building for 4.19.42+ and 4.19.42-v7+ Building initial module for 4.19.42+ Error! Bad return status for module build on kernel: 4.19.42+ (armv7l) Consult /var/lib/dkms/coral-enviro-drivers/1.3/build/make.log for more information. Setting up python3-luma-oled (3.2.0-1) ... Setting up python3-coral-enviro (1.0) ...

The make.log

cat /var/lib/dkms/coral-enviro-drivers/1.3/build/make.log DKMS make.log for coral-enviro-drivers-1.3 for kernel 4.19.42+ (armv7l) Tue Jun 4 14:11:56 EDT 2019 make: Entering directory '/usr/src/linux-headers-4.19.42+' CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.o CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.o CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.o CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.o /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:259:2: error: unknown field ‘driver_module’ specified in initializer .driver_module = THIS_MODULE, ^ In file included from ./include/linux/linkage.h:7:0, from ./include/linux/kernel.h:7, from ./include/linux/delay.h:22, from /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:18: ./include/linux/export.h:16:21: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]

define THIS_MODULE (&__this_module)

                 ^

/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:259:19: note: in expansion of macro ‘THIS_MODULE’ .driver_module = THIS_MODULE, ^~~ ./include/linux/export.h:16:21: note: (near initialization for ‘hdc20x0_info.read_raw’)

define THIS_MODULE (&__this_module)

                 ^

/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:259:19: note: in expansion of macro ‘THIS_MODULE’ .driver_module = THIS_MODULE, ^~~ cc1: some warnings being treated as errors scripts/Makefile.build:309: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.o' failed make[2]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.o] Error 1 scripts/Makefile.build:544: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity' failed make[1]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity] Error 2 make[1]: *** Waiting for unfinished jobs.... /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:314:2: error: unknown field ‘driver_module’ specified in initializer .driver_module = THIS_MODULE, ^ In file included from ./include/linux/linkage.h:7:0, from ./include/linux/kernel.h:7, from ./include/linux/list.h:9, from ./include/linux/module.h:9, from /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:14: ./include/linux/export.h:16:21: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]

define THIS_MODULE (&__this_module)

                 ^

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:314:19: note: in expansion of macro ‘THIS_MODULE’ .driver_module = THIS_MODULE, ^~~ ./include/linux/export.h:16:21: note: (near initialization for ‘bmp280_info.event_attrs’)

define THIS_MODULE (&__this_module)

                 ^

/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:314:19: note: in expansion of macro ‘THIS_MODULE’ .driver_module = THIS_MODULE, ^~~ cc1: some warnings being treated as errors scripts/Makefile.build:309: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.o' failed make[2]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.o] Error 1 scripts/Makefile.build:544: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure' failed make[1]: [/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure] Error 2 Makefile:1524: recipe for target 'module/var/lib/dkms/coral-enviro-drivers/1.3/build' failed make: *** [module/var/lib/dkms/coral-enviro-drivers/1.3/build] Error 2 make: Leaving directory '/usr/src/linux-headers-4.19.42+'

rdejana commented 5 years ago

I have the same issue. I think it is a kernel driver mismatch as if I stay on the kernel that came with raspbian-2019-04-09, 4.14.98-v7+, I can build and install the kernel mods once I install raspberrypi-kernel-headers. I'm I try the 4.9 kernel, I get the same error you do. I haven't tried 4.4.

smithatlanta commented 5 years ago

I ended up using this script: https://gist.github.com/psyke83/cb3ca50561480809c246f42727cb7cf2#file-downgrade_firmware-sh to downgrade my firmware and now I am good to go.

sudo ~/downgrade_firmware.sh downgrade sudo ~/downgrade_firmware.sh block sudo apt remove python3-coral-enviro sudo apt-get autoclean sudo apt-get autoremove sudo apt install python3-coral-enviro sudo reboot

kyletaylored commented 5 years ago

I ended up using this script: https://gist.github.com/psyke83/cb3ca50561480809c246f42727cb7cf2#file-downgrade_firmware-sh to downgrade my firmware and now I am good to go.

sudo ~/downgrade_firmware.sh downgrade sudo ~/downgrade_firmware.sh block sudo apt remove python3-coral-enviro sudo apt-get autoclean sudo apt-get autoremove sudo apt install python3-coral-enviro sudo reboot

I've had the same issues reported in this thread, and this worked for me. I folded all this work into a simple script that should help at https://github.com/kyletaylored/coraldev

curl -fsSL https://raw.githubusercontent.com/kyletaylored/coraldev/master/install.sh | bash
Namburger commented 4 years ago

Super late here, but the kernal-headers is a dependency for this package. This is maintained by the vendors (rpi for this example) so we won't really be able to fix this one.