>>> c-periphery 2.2.1 Extracting gzip -d -c /home/naourr/work/instance-1/dl/c-periphery/c-periphery-2.2.1.tar.gz | /home/naourr/work/instance-1/output-1/host/bin/tar --strip-components=1 -C /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1 -xf - >>> c-periphery 2.2.1 Patching >>> c-periphery 2.2.1 Configuring (mkdir -p /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/ && cd /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/ && rm -f CMakeCache.txt && PATH="/home/naourr/work/instance-1/output-1/host/bin:/home/naourr/work/instance-1/output-1/host/sbin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/naourr/bin:/home/naourr/git/git-wrappers:/home/naourr/.local/bin:/home/naourr/bin" /usr/bin/cmake /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/ -DCMAKE_TOOLCHAIN_FILE="/home/naourr/work/instance-1/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=OFF ) -- The C compiler identification is GNU 8.3.0 -- Check for working C compiler: /home/naourr/work/instance-1/output-1/host/bin/arm-linux-gcc -- Check for working C compiler: /home/naourr/work/instance-1/output-1/host/bin/arm-linux-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_TESTS -- Build files have been written to: /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1 >>> c-periphery 2.2.1 Building PATH="/home/naourr/work/instance-1/output-1/host/bin:/home/naourr/work/instance-1/output-1/host/sbin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/naourr/bin:/home/naourr/git/git-wrappers:/home/naourr/.local/bin:/home/naourr/bin" /usr/bin/make -j4 -C /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/ make[1]: Entering directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[2]: Entering directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[3]: Entering directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' Scanning dependencies of target periphery make[3]: Leaving directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[3]: Entering directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' [ 16%] Building C object CMakeFiles/periphery.dir/src/gpio.c.o [ 16%] Building C object CMakeFiles/periphery.dir/src/mmio.c.o [ 16%] Building C object CMakeFiles/periphery.dir/src/i2c.c.o [ 16%] Building C object CMakeFiles/periphery.dir/src/led.c.o /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/src/gpio.c: In function '_gpio_error': /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/src/gpio.c:225:9: warning: implicit declaration of function 'strerror_r'; did you mean 'strerror'? [-Wimplicit-function-declaration] strerror_r(c_errno, buf, sizeof(buf)); ^~~~~~~~~~ strerror /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/src/gpio.c: In function 'gpio_sysfs_chip_name': /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/src/gpio.c:620:16: warning: implicit declaration of function 'readlink'; did you mean 'unlink'? [-Wimplicit-function-declaration] if ((ret = readlink(gpio_path, gpiochip_path, sizeof(gpiochip_path))) < 0) ^~~~~~~~ unlink /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/src/gpio.c: In function 'gpio_open_sysfs': /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/src/gpio.c:775:13: warning: implicit declaration of function 'usleep'; did you mean 'sleep'? [-Wimplicit-function-declaration] usleep(GPIO_SYSFS_OPEN_DELAY); ^~~~~~ sleep [ 20%] Building C object CMakeFiles/periphery.dir/src/pwm.c.o [ 24%] Building C object CMakeFiles/periphery.dir/src/serial.c.o [ 28%] Building C object CMakeFiles/periphery.dir/src/spi.c.o /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/src/spi.c: In function 'spi_tostring': /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/src/spi.c:300:65: warning: '%u' directive output may be truncated writing between 1 and 3 bytes into a region of size 2 [-Wformat-truncation=] snprintf(bits_per_word_str, sizeof(bits_per_word_str), "%u", bits_per_word); ^~ /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/src/spi.c:300:64: note: directive argument in the range [0, 255] snprintf(bits_per_word_str, sizeof(bits_per_word_str), "%u", bits_per_word); ^~~~ /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/src/spi.c:300:9: note: 'snprintf' output between 2 and 4 bytes into a destination of size 2 snprintf(bits_per_word_str, sizeof(bits_per_word_str), "%u", bits_per_word); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 32%] Building C object CMakeFiles/periphery.dir/src/version.c.o [ 36%] Linking C static library libperiphery.a make[3]: Leaving directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' [ 36%] Built target periphery make[3]: Entering directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[3]: Entering directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[3]: Entering directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[3]: Entering directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' Scanning dependencies of target test_i2c Scanning dependencies of target test_spi Scanning dependencies of target test_gpio Scanning dependencies of target test_pwm make[3]: Leaving directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[3]: Leaving directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[3]: Leaving directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[3]: Leaving directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[3]: Entering directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[3]: Entering directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[3]: Entering directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[3]: Entering directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' [ 52%] Building C object CMakeFiles/test_pwm.dir/tests/test_pwm.c.o [ 52%] Building C object CMakeFiles/test_gpio.dir/tests/test_gpio.c.o [ 52%] Building C object CMakeFiles/test_i2c.dir/tests/test_i2c.c.o [ 52%] Building C object CMakeFiles/test_spi.dir/tests/test_spi.c.o /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/tests/test_gpio.c:14:10: fatal error: pthread.h: No such file or directory #include ^~~~~~~~~~~ compilation terminated. make[3]: *** [CMakeFiles/test_gpio.dir/build.make:83: CMakeFiles/test_gpio.dir/tests/test_gpio.c.o] Error 1 make[3]: Leaving directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[2]: *** [CMakeFiles/Makefile2:140: CMakeFiles/test_gpio.dir/all] Error 2 make[2]: *** Waiting for unfinished jobs.... [ 56%] Linking C executable test_i2c /home/naourr/work/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: cannot find -lpthread collect2: error: ld returned 1 exit status make[3]: *** [CMakeFiles/test_i2c.dir/build.make:105: test_i2c] Error 1 make[3]: Leaving directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[2]: *** [CMakeFiles/Makefile2:221: CMakeFiles/test_i2c.dir/all] Error 2 [ 60%] Linking C executable test_spi /home/naourr/work/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: cannot find -lpthread collect2: error: ld returned 1 exit status make[3]: *** [CMakeFiles/test_spi.dir/build.make:105: test_spi] Error 1 make[3]: Leaving directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[2]: *** [CMakeFiles/Makefile2:113: CMakeFiles/test_spi.dir/all] Error 2 [ 64%] Linking C executable test_pwm /home/naourr/work/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: cannot find -lpthread collect2: error: ld returned 1 exit status make[3]: *** [CMakeFiles/test_pwm.dir/build.make:105: test_pwm] Error 1 make[3]: Leaving directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[2]: *** [CMakeFiles/Makefile2:167: CMakeFiles/test_pwm.dir/all] Error 2 make[2]: Leaving directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make[1]: *** [Makefile:150: all] Error 2 make[1]: Leaving directory '/home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1' make: *** [package/pkg-generic.mk:269: /home/naourr/work/instance-1/output-1/build/c-periphery-2.2.1/.stamp_built] Error 2 make: Leaving directory '/home/naourr/work/instance-1/buildroot'