>>> c-periphery 2.2.2 Downloading --2020-08-26 16:53:19-- https://github.com/vsergeev/c-periphery/archive/v2.2.2/c-periphery-2.2.2.tar.gz Resolving github.com (github.com)... 140.82.114.3 Connecting to github.com (github.com)|140.82.114.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/vsergeev/c-periphery/tar.gz/v2.2.2 [following] --2020-08-26 16:53:20-- https://codeload.github.com/vsergeev/c-periphery/tar.gz/v2.2.2 Resolving codeload.github.com (codeload.github.com)... 140.82.112.9 Connecting to codeload.github.com (codeload.github.com)|140.82.112.9|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/x-gzip] Saving to: '/tmp/instance-0/output-1/build/.c-periphery-2.2.2.tar.gz.tMB1ol/output' 0K .......... .......... .......... .......... ... 410K=0.1s 2020-08-26 16:53:20 (410 KB/s) - '/tmp/instance-0/output-1/build/.c-periphery-2.2.2.tar.gz.tMB1ol/output' saved [44645] c-periphery-2.2.2.tar.gz: OK (sha256: e1ad855dfe8595d0aff306a23eee1d4c4a140212d3cbdc7a6bef5e4d39dc70cc) >>> c-periphery 2.2.2 Extracting gzip -d -c /tmp/instance-0/dl/c-periphery/c-periphery-2.2.2.tar.gz | /tmp/instance-0/output-1/host/bin/tar --strip-components=1 -C /tmp/instance-0/output-1/build/c-periphery-2.2.2 -xf - >>> c-periphery 2.2.2 Patching >>> c-periphery 2.2.2 Configuring (mkdir -p /tmp/instance-0/output-1/build/c-periphery-2.2.2/ && cd /tmp/instance-0/output-1/build/c-periphery-2.2.2/ && rm -f CMakeCache.txt && PATH="/tmp/instance-0/output-1/host/bin:/tmp/instance-0/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" /usr/bin/cmake /tmp/instance-0/output-1/build/c-periphery-2.2.2/ -DCMAKE_TOOLCHAIN_FILE="/tmp/instance-0/output-1/host/share/buildroot/toolchainfile.cmake" -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON ) -- The C compiler identification is GNU 6.2.0 -- Check for working C compiler: /tmp/instance-0/output-1/host/bin/x86_64-amd-linux-gnu-gcc -- Check for working C compiler: /tmp/instance-0/output-1/host/bin/x86_64-amd-linux-gnu-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Looking for include file linux/gpio.h -- Looking for include file linux/gpio.h - found -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: BUILD_DOC BUILD_DOCS BUILD_EXAMPLE BUILD_EXAMPLES BUILD_TEST BUILD_TESTING -- Build files have been written to: /tmp/instance-0/output-1/build/c-periphery-2.2.2 >>> c-periphery 2.2.2 Building PATH="/tmp/instance-0/output-1/host/bin:/tmp/instance-0/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" /usr/bin/make -j32 -C /tmp/instance-0/output-1/build/c-periphery-2.2.2/ make[1]: Entering directory '/tmp/instance-0/output-1/build/c-periphery-2.2.2' make[2]: Entering directory '/tmp/instance-0/output-1/build/c-periphery-2.2.2' make[3]: Entering directory '/tmp/instance-0/output-1/build/c-periphery-2.2.2' Scanning dependencies of target periphery make[3]: Leaving directory '/tmp/instance-0/output-1/build/c-periphery-2.2.2' make[3]: Entering directory '/tmp/instance-0/output-1/build/c-periphery-2.2.2' [ 11%] Building C object CMakeFiles/periphery.dir/src/gpio.c.o [ 22%] Building C object CMakeFiles/periphery.dir/src/i2c.c.o [ 44%] Building C object CMakeFiles/periphery.dir/src/spi.c.o [ 44%] Building C object CMakeFiles/periphery.dir/src/led.c.o [ 55%] Building C object CMakeFiles/periphery.dir/src/mmio.c.o [ 66%] Building C object CMakeFiles/periphery.dir/src/serial.c.o [ 88%] Building C object CMakeFiles/periphery.dir/src/version.c.o [ 88%] Building C object CMakeFiles/periphery.dir/src/pwm.c.o /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c: In function '_gpio_cdev_reopen': /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:871:18: error: 'GPIOHANDLE_REQUEST_ACTIVE_LOW' undeclared (first use in this function) flags |= GPIOHANDLE_REQUEST_ACTIVE_LOW; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:871:18: note: each undeclared identifier is reported only once for each function it appears in /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:886:20: error: variable 'request' has initializer but incomplete type struct gpiohandle_request request = {0}; ^~~~~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:886:50: warning: excess elements in struct initializer struct gpiohandle_request request = {0}; ^ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:886:50: note: (near initialization for 'request') /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:886:39: error: storage size of 'request' isn't known struct gpiohandle_request request = {0}; ^~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:889:37: error: 'GPIOHANDLE_REQUEST_INPUT' undeclared (first use in this function) request.flags = flags | GPIOHANDLE_REQUEST_INPUT; ^~~~~~~~~~~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:893:45: error: 'GPIO_GET_LINEHANDLE_IOCTL' undeclared (first use in this function) if (ioctl(gpio->u.cdev.chip_fd, GPIO_GET_LINEHANDLE_IOCTL, &request) < 0) ^~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:886:39: warning: unused variable 'request' [-Wunused-variable] struct gpiohandle_request request = {0}; ^~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:898:20: error: variable 'request' has initializer but incomplete type struct gpioevent_request request = {0}; ^~~~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:898:49: warning: excess elements in struct initializer struct gpioevent_request request = {0}; ^ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:898:49: note: (near initialization for 'request') /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:898:38: error: storage size of 'request' isn't known struct gpioevent_request request = {0}; ^~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:902:63: error: 'GPIOEVENT_REQUEST_RISING_EDGE' undeclared (first use in this function) request.eventflags = (edge == GPIO_EDGE_RISING) ? GPIOEVENT_REQUEST_RISING_EDGE : ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:903:64: error: 'GPIOEVENT_REQUEST_FALLING_EDGE' undeclared (first use in this function) (edge == GPIO_EDGE_FALLING) ? GPIOEVENT_REQUEST_FALLING_EDGE : ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:904:64: error: 'GPIOEVENT_REQUEST_BOTH_EDGES' undeclared (first use in this function) GPIOEVENT_REQUEST_BOTH_EDGES; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:907:45: error: 'GPIO_GET_LINEEVENT_IOCTL' undeclared (first use in this function) if (ioctl(gpio->u.cdev.chip_fd, GPIO_GET_LINEEVENT_IOCTL, &request) < 0) ^~~~~~~~~~~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:898:38: warning: unused variable 'request' [-Wunused-variable] struct gpioevent_request request = {0}; ^~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:913:16: error: variable 'request' has initializer but incomplete type struct gpiohandle_request request = {0}; ^~~~~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:913:46: warning: excess elements in struct initializer struct gpiohandle_request request = {0}; ^ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:913:46: note: (near initialization for 'request') /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:913:35: error: storage size of 'request' isn't known struct gpiohandle_request request = {0}; ^~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:918:33: error: 'GPIOHANDLE_REQUEST_OUTPUT' undeclared (first use in this function) request.flags = flags | GPIOHANDLE_REQUEST_OUTPUT; ^~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:913:35: warning: unused variable 'request' [-Wunused-variable] struct gpiohandle_request request = {0}; ^~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c: In function 'gpio_cdev_read': /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:939:12: error: variable 'data' has initializer but incomplete type struct gpiohandle_data data = {0}; ^~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:939:36: warning: excess elements in struct initializer struct gpiohandle_data data = {0}; ^ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:939:36: note: (near initialization for 'data') /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:939:28: error: storage size of 'data' isn't known struct gpiohandle_data data = {0}; ^~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:941:37: error: 'GPIOHANDLE_GET_LINE_VALUES_IOCTL' undeclared (first use in this function) if (ioctl(gpio->u.cdev.line_fd, GPIOHANDLE_GET_LINE_VALUES_IOCTL, &data) < 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:939:28: warning: unused variable 'data' [-Wunused-variable] struct gpiohandle_data data = {0}; ^~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c: In function 'gpio_cdev_write': /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:950:12: error: variable 'data' has initializer but incomplete type struct gpiohandle_data data = {0}; ^~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:950:36: warning: excess elements in struct initializer struct gpiohandle_data data = {0}; ^ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:950:36: note: (near initialization for 'data') /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:950:28: error: storage size of 'data' isn't known struct gpiohandle_data data = {0}; ^~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:954:37: error: 'GPIOHANDLE_SET_LINE_VALUES_IOCTL' undeclared (first use in this function) if (ioctl(gpio->u.cdev.line_fd, GPIOHANDLE_SET_LINE_VALUES_IOCTL, &data) < 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:950:28: warning: unused variable 'data' [-Wunused-variable] struct gpiohandle_data data = {0}; ^~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c: In function 'gpio_cdev_read_event': /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:961:12: error: variable 'event_data' has initializer but incomplete type struct gpioevent_data event_data = {0}; ^~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:961:41: warning: excess elements in struct initializer struct gpioevent_data event_data = {0}; ^ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:961:41: note: (near initialization for 'event_data') /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:961:27: error: storage size of 'event_data' isn't known struct gpioevent_data event_data = {0}; ^~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:970:35: error: 'GPIOEVENT_EVENT_RISING_EDGE' undeclared (first use in this function) *edge = (event_data.id == GPIOEVENT_EVENT_RISING_EDGE) ? GPIO_EDGE_RISING : ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:971:35: error: 'GPIOEVENT_EVENT_FALLING_EDGE' undeclared (first use in this function) (event_data.id == GPIOEVENT_EVENT_FALLING_EDGE) ? GPIO_EDGE_FALLING : GPIO_EDGE_NONE; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/instance-0/output-1/build/c-periphery-2.2.2/src/gpio.c:961:27: warning: unused variable 'event_data' [-Wunused-variable] struct gpioevent_data event_data = {0}; ^~~~~~~~~~ make[3]: *** [CMakeFiles/periphery.dir/build.make:63: CMakeFiles/periphery.dir/src/gpio.c.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory '/tmp/instance-0/output-1/build/c-periphery-2.2.2' make[2]: *** [CMakeFiles/Makefile2:76: CMakeFiles/periphery.dir/all] Error 2 make[2]: Leaving directory '/tmp/instance-0/output-1/build/c-periphery-2.2.2' make[1]: *** [Makefile:130: all] Error 2 make[1]: Leaving directory '/tmp/instance-0/output-1/build/c-periphery-2.2.2' make: *** [package/pkg-generic.mk:250: /tmp/instance-0/output-1/build/c-periphery-2.2.2/.stamp_built] Error 2 make: Leaving directory '/tmp/instance-0/buildroot'