$> PROJECT=Rockchip ARCH=arm DEVICE=RK3399 scripts/build radxa-mraa GET radxa-mraa (archive) --2021-05-02 09:53:21-- https://github.com/radxa/mraa/archive/refs/tags/v2.1.0.tar.gz Resolving github.com (github.com)... 140.82.121.4 Connecting to github.com (github.com)|140.82.121.4|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/radxa/mraa/tar.gz/refs/tags/v2.1.0 [following] --2021-05-02 09:53:21-- https://codeload.github.com/radxa/mraa/tar.gz/refs/tags/v2.1.0 Resolving codeload.github.com (codeload.github.com)... 140.82.121.9 Connecting to codeload.github.com (codeload.github.com)|140.82.121.9|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/x-gzip] Saving to: '/media/video/test/my.LibreELEC/sources/radxa-mraa/radxa-mraa-2.1.0.tar.gz' /media/video/test/my.L [ <=> ] 396.63K --.-KB/s in 0.08s 2021-05-02 09:53:22 (4.73 MB/s) - '/media/video/test/my.LibreELEC/sources/radxa-mraa/radxa-mraa-2.1.0.tar.gz' saved [406150] INFO Calculated checksum: 5351ce9eb654014d8ea7f43bdb2d17e6d1955536938a2ea0d467f4008e614345 UNPACK radxa-mraa BUILD radxa-mraa (target) TOOLCHAIN cmake (auto-detect) Executing (target): cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_TOOLCHAIN_FILE=/media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/toolchain/etc/cmake-armv8a-libreelec-linux-gnueabihf.conf -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILDSWIGNODE=OFF -DBUILDSWIGPYTHON=ON -DBUILDSWIGJAVA=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DUSBPLAT=ON -DJSONPLAT=OFF -DENABLEEXAMPLES=OFF -DBUILDTESTS=OFF /media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/build/radxa-mraa-2.1.0 CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- The C compiler identification is GNU 10.2.0 -- The CXX compiler identification is GNU 10.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Performing Test HAS_C__Wall -- Performing Test HAS_C__Wall - Success -- Performing Test HAS_C__Werror_main -- Performing Test HAS_C__Werror_main - Success -- Performing Test HAS_C__Wformat -- Performing Test HAS_C__Wformat - Success -- Performing Test HAS_C__Wmain -- Performing Test HAS_C__Wmain - Success -- Performing Test HAS_C__Wuninitialized -- Performing Test HAS_C__Wuninitialized - Success -- Performing Test HAS_C__Winit_self -- Performing Test HAS_C__Winit_self - Success -- Performing Test HAS_C__Werror_implicit -- Performing Test HAS_C__Werror_implicit - Success -- Performing Test HAS_C__Werror_missing_parameter_type -- Performing Test HAS_C__Werror_missing_parameter_type - Success -- Performing Test HAS_CXX__Wall -- Performing Test HAS_CXX__Wall - Success -- Performing Test HAS_CXX__Werror_main -- Performing Test HAS_CXX__Werror_main - Success -- Performing Test HAS_CXX__Wformat -- Performing Test HAS_CXX__Wformat - Success -- Performing Test HAS_CXX__Wmain -- Performing Test HAS_CXX__Wmain - Success -- Performing Test HAS_CXX__Wuninitialized -- Performing Test HAS_CXX__Wuninitialized - Success -- Performing Test HAS_CXX__Winit_self -- Performing Test HAS_CXX__Winit_self - Success -- Performing Test HAS_CXX__Wnon_virtual_dtor -- Performing Test HAS_CXX__Wnon_virtual_dtor - Success -- Performing Test HAS_CXX__Woverloaded_virtual -- Performing Test HAS_CXX__Woverloaded_virtual - Success -- Performing Test HAS_CXX__Wreorder -- Performing Test HAS_CXX__Wreorder - Success -- INFO - libmraa Version 9.95.2-53-gfd8a0b3b3b -- INFO - cmake Version 3.19.2 -- INFO - Target arch is arm -- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.16", minimum required is "2.7") -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "2.7") -- Found PythonInterp: /media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/toolchain/bin/python3 (found suitable version "3.8.9", minimum required is "3") -- Found PythonLibs: /media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/lib/libpython3.8.so (found suitable version "3.8.9", minimum required is "3.8") -- INFO - Adding onewire backend support -- INFO - Adding support for platform ALL -- INFO - Adding support for all platforms INFO - Adding ARM platforms -- INFO - Adding USB platforms -- Found SWIG: /media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/toolchain/bin/swig4.0 (found version "4.0.2") -- PYTHON3 attempting to build! CMake Warning (dev) at /media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/toolchain/share/cmake-3.19/Modules/UseSWIG.cmake:661 (message): Policy CMP0078 is not set: UseSWIG generates standard target names. Run "cmake --help-policy CMP0078" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): src/python/python3/CMakeLists.txt:9 (swig_add_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/toolchain/share/cmake-3.19/Modules/UseSWIG.cmake:513 (message): Policy CMP0086 is not set: UseSWIG honors SWIG_MODULE_NAME via -module flag. Run "cmake --help-policy CMP0086" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): /media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/toolchain/share/cmake-3.19/Modules/UseSWIG.cmake:764 (SWIG_ADD_SOURCE_TO_MODULE) src/python/python3/CMakeLists.txt:9 (swig_add_library) This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring done -- Generating done -- Build files have been written to: /media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/build/radxa-mraa-2.1.0/.armv8a-libreelec-linux-gnueabihf Executing (target): ninja [5/35] Building C object src/CMakeFiles/mraa.dir/mraa.c.o ../src/mraa.c: In function 'mraa_find_uart_bus_pci': ../src/mraa.c:1169:50: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 11 [-Wformat-truncation=] 1169 | snprintf(*dev_name, max_allowable_len, "/dev/%s", namelist[n - 1]->d_name); | ^~ ../src/mraa.c:1169:5: note: 'snprintf' output between 6 and 261 bytes into a destination of size 16 1169 | snprintf(*dev_name, max_allowable_len, "/dev/%s", namelist[n - 1]->d_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [6/35] Building C object src/CMakeFiles/mraa.dir/spi/spi.c.o ../src/spi/spi.c: In function 'mraa_spi_frequency': ../src/spi/spi.c:247:108: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] 247 | syslog(LOG_NOTICE, "spi: Selected speed (%d Hz) is higher than the kernel max allowed speed (%lu Hz)", hz, SPI_IOC_RD_MAX_SPEED_HZ); | ~~^ | | | long unsigned int | %u [10/35] Building C object src/CMakeFiles/mraa.dir/led/led.c.o ../src/led/led.c: In function 'mraa_led_get_brightfd': ../src/led/led.c:44:33: warning: '%s' directive output may be truncated writing 10 bytes into a region of size between 0 and 63 [-Wformat-truncation=] 44 | snprintf(buf, MAX_SIZE, "%s/%s", dev->led_path, "brightness"); | ^~ ~~~~~~~~~~~~ ../src/led/led.c:44:5: note: 'snprintf' output between 12 and 75 bytes into a destination of size 64 44 | snprintf(buf, MAX_SIZE, "%s/%s", dev->led_path, "brightness"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/led/led.c: In function 'mraa_led_read_max_brightness': ../src/led/led.c:59:33: warning: '%s' directive output may be truncated writing 14 bytes into a region of size between 0 and 63 [-Wformat-truncation=] 59 | snprintf(buf, MAX_SIZE, "%s/%s", dev->led_path, "max_brightness"); | ^~ ~~~~~~~~~~~~~~~~ ../src/led/led.c:59:5: note: 'snprintf' output between 16 and 79 bytes into a destination of size 64 59 | snprintf(buf, MAX_SIZE, "%s/%s", dev->led_path, "max_brightness"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/led/led.c: In function 'mraa_led_set_trigger': ../src/led/led.c:29:33: warning: '%s' directive output may be truncated writing 7 bytes into a region of size between 0 and 63 [-Wformat-truncation=] 29 | snprintf(buf, MAX_SIZE, "%s/%s", dev->led_path, "trigger"); | ^~ ~~~~~~~~~ ../src/led/led.c:29:5: note: 'snprintf' output between 9 and 72 bytes into a destination of size 64 29 | snprintf(buf, MAX_SIZE, "%s/%s", dev->led_path, "trigger"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [13/35] Building C object src/CMakeFiles/mraa.dir/iio/iio.c.o ../src/iio/iio.c: In function 'mraa_iio_get_channel_data': ../src/iio/iio.c:165:44: warning: format '%d' expects a matching 'int' argument [-Wformat=] 165 | syslog(LOG_ERR, "iio: Channel %d with channel bytes value <= 0"); | ~^ | | | int ../src/iio/iio.c:23:26: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 71 and 81 [-Wformat-truncation=] 23 | #define IIO_SYSFS_DEVICE "/sys/bus/iio/devices/" IIO_DEVICE | ^~~~~~~~~~~~~~~~~~~~~~~ ../src/iio/iio.c:96:37: note: in expansion of macro 'IIO_SYSFS_DEVICE' 96 | snprintf(buf, MAX_SIZE, IIO_SYSFS_DEVICE "%d/" IIO_SCAN_ELEM "/%s", dev->num, ent->d_name); | ^~~~~~~~~~~~~~~~ ../src/iio/iio.c:595:80: note: format string is defined here 595 | snprintf(buf, MAX_SIZE, IIO_SYSFS_DEVICE "%d/" IIO_SCAN_ELEM "/%s", dev->num, ent->d_name); | ^~ ../src/iio/iio.c:96:13: note: 'snprintf' output between 48 and 313 bytes into a destination of size 128 96 | snprintf(buf, MAX_SIZE, IIO_SYSFS_DEVICE "%d/" IIO_SCAN_ELEM "/%s", dev->num, ent->d_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/iio/iio.c: In function 'mraa_iio_get_event_data': ../src/iio/iio.c:23:26: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 78 and 88 [-Wformat-truncation=] 23 | #define IIO_SYSFS_DEVICE "/sys/bus/iio/devices/" IIO_DEVICE | ^~~~~~~~~~~~~~~~~~~~~~~ ../src/iio/iio.c:399:41: note: in expansion of macro 'IIO_SYSFS_DEVICE' 399 | snprintf(buf, MAX_SIZE, IIO_SYSFS_DEVICE "%d/" IIO_EVENTS "/%s", dev->num, ent->d_name); | ^~~~~~~~~~~~~~~~ ../src/iio/iio.c:21:31: note: format string is defined here 21 | #define IIO_SCAN_ELEM "scan_elements" | ^~ ../src/iio/iio.c:399:17: note: 'snprintf' output between 41 and 306 bytes into a destination of size 128 399 | snprintf(buf, MAX_SIZE, IIO_SYSFS_DEVICE "%d/" IIO_EVENTS "/%s", dev->num, ent->d_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/iio/iio.c: In function 'mraa_iio_update_channels': ../src/iio/iio.c:23:26: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 71 and 81 [-Wformat-truncation=] 23 | #define IIO_SYSFS_DEVICE "/sys/bus/iio/devices/" IIO_DEVICE | ^~~~~~~~~~~~~~~~~~~~~~~ ../src/iio/iio.c:595:41: note: in expansion of macro 'IIO_SYSFS_DEVICE' 595 | snprintf(buf, MAX_SIZE, IIO_SYSFS_DEVICE "%d/" IIO_SCAN_ELEM "/%s", dev->num, ent->d_name); | ^~~~~~~~~~~~~~~~ ../src/iio/iio.c:595:80: note: format string is defined here 595 | snprintf(buf, MAX_SIZE, IIO_SYSFS_DEVICE "%d/" IIO_SCAN_ELEM "/%s", dev->num, ent->d_name); | ^~ ../src/iio/iio.c:595:17: note: 'snprintf' output between 48 and 313 bytes into a destination of size 128 595 | snprintf(buf, MAX_SIZE, IIO_SYSFS_DEVICE "%d/" IIO_SCAN_ELEM "/%s", dev->num, ent->d_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [16/35] Building C object src/CMakeFiles/mraa.dir/arm/raspberry_pi.c.o ../src/arm/raspberry_pi.c: In function 'mraa_raspberry_pi': ../src/arm/raspberry_pi.c:630:49: warning: '%s' directive writing up to 255 bytes into a region of size 48 [-Wformat-overflow=] 630 | sprintf(chip_path, "/sys/class/gpio/%s/label", child->d_name); | ^~ ../src/arm/raspberry_pi.c:630:13: note: 'sprintf' output between 23 and 278 bytes into a destination of size 64 630 | sprintf(chip_path, "/sys/class/gpio/%s/label", child->d_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [17/35] Building C object src/CMakeFiles/mraa.dir/arm/beaglebone.c.o ../src/arm/beaglebone.c: In function 'mraa_beaglebone': ../src/arm/beaglebone.c:363:18: warning: variable 'uart3_enabled' set but not used [-Wunused-but-set-variable] 363 | unsigned int uart3_enabled = 0; | ^~~~~~~~~~~~~ ../src/arm/beaglebone.c: In function 'set_pin_mode': ../src/arm/beaglebone.c:170:51: warning: '%s' directive output may be truncated writing up to 63 bytes into a region of size 60 [-Wformat-truncation=] 170 | snprintf(pinmux_dir, sizeof(pinmux_dir), "ocp:%s_pinmux", pin_str); | ^~ ~~~~~~~ ../src/arm/beaglebone.c:170:5: note: 'snprintf' output between 12 and 75 bytes into a destination of size 64 170 | snprintf(pinmux_dir, sizeof(pinmux_dir), "ocp:%s_pinmux", pin_str); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/arm/beaglebone.c:171:38: warning: '%s' directive output may be truncated writing up to 63 bytes into a region of size 37 [-Wformat-truncation=] 171 | snprintf(path, sizeof(path), "%s/%s/state", PLATFORM_OCP_PATH, pinmux_dir); | ^~ ~~~~~~~~~~ ../src/arm/beaglebone.c:171:5: note: 'snprintf' output between 34 and 97 bytes into a destination of size 64 171 | snprintf(path, sizeof(path), "%s/%s/state", PLATFORM_OCP_PATH, pinmux_dir); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/arm/beaglebone.c: In function 'mraa_beaglebone_pwm_init_replace': ../src/arm/beaglebone.c:323:32: warning: '/export' directive writing 7 bytes into a region of size between 1 and 64 [-Wformat-overflow=] 323 | sprintf(exportpath, "%s/export", chippath); | ^~~~~~~ ../src/arm/beaglebone.c:323:9: note: 'sprintf' output between 8 and 71 bytes into a destination of size 64 323 | sprintf(exportpath, "%s/export", chippath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [22/35] Building C object src/CMakeFiles/mraa.dir/arm/adlink_ipi.c.o ../src/arm/adlink_ipi.c: In function 'gpio_init_pre': ../src/arm/adlink_ipi.c:275:49: warning: '~' on a boolean expression [-Wbool-operation] 275 | rx_tx_buf[1] &= ~(1 < (pin % 8)); | ^ ../src/arm/adlink_ipi.c:275:49: note: did you mean to use logical not? 275 | rx_tx_buf[1] &= ~(1 < (pin % 8)); | ^ | ! ../src/arm/adlink_ipi.c:285:49: warning: '~' on a boolean expression [-Wbool-operation] 285 | rx_tx_buf[1] &= ~(1 < (pin % 8)); | ^ ../src/arm/adlink_ipi.c:285:49: note: did you mean to use logical not? 285 | rx_tx_buf[1] &= ~(1 < (pin % 8)); | ^ | ! ../src/arm/adlink_ipi.c: In function 'mraa_adlink_ipi': ../src/arm/adlink_ipi.c:405:9: warning: variable 'pwm1' set but not used [-Wunused-but-set-variable] 405 | int pwm1 = -1; | ^~~~ ../src/arm/adlink_ipi.c:404:9: warning: variable 'pwm0' set but not used [-Wunused-but-set-variable] 404 | int pwm0 = -1; | ^~~~ At top level: ../src/arm/adlink_ipi.c:54:1: warning: 'mraa_pwm_setup_duty_fp' defined but not used [-Wunused-function] 54 | mraa_pwm_setup_duty_fp(mraa_pwm_context dev) | ^~~~~~~~~~~~~~~~~~~~~~ ../src/arm/adlink_ipi.c: In function 'mraa_adlink_ipi': ../src/arm/adlink_ipi.c:343:9: warning: 'bus_num' may be used uninitialized in this function [-Wmaybe-uninitialized] 343 | sprintf(rx_tx_buf, "/dev/i2c-%d",bus_num); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/arm/adlink_ipi.c:305:9: note: 'bus_num' was declared here 305 | int i, bus_num, fd; | ^~~~~~~ [23/35] Building C object tools/CMakeFiles/mraa-gpio.dir/mraa-gpio.c.o ../tools/mraa-gpio.c: In function 'gpio_set': ../tools/mraa-gpio.c:99:13: warning: 'mraa_gpio_use_mmaped' is deprecated [-Wdeprecated-declarations] 99 | if (mraa_gpio_use_mmaped(gpio, 1) != MRAA_SUCCESS) { | ^~ In file included from ../tools/mraa-gpio.c:13: ../api/mraa/gpio.h:289:26: note: declared here 289 | DEPRECATED mraa_result_t mraa_gpio_use_mmaped(mraa_gpio_context dev, mraa_boolean_t mmap); | ^~~~~~~~~~~~~~~~~~~~ ../tools/mraa-gpio.c: In function 'gpio_get': ../tools/mraa-gpio.c:117:13: warning: 'mraa_gpio_use_mmaped' is deprecated [-Wdeprecated-declarations] 117 | if (mraa_gpio_use_mmaped(gpio, 1) != MRAA_SUCCESS) { | ^~ In file included from ../tools/mraa-gpio.c:13: ../api/mraa/gpio.h:289:26: note: declared here 289 | DEPRECATED mraa_result_t mraa_gpio_use_mmaped(mraa_gpio_context dev, mraa_boolean_t mmap); | ^~~~~~~~~~~~~~~~~~~~ [27/35] Linking C shared library src/libmra...9.95.2-53-gfd8a0b3b3b.9.95.2-53-gfd8a0b3b3b FAILED: src/libmraa.so.9.95.2-53-gfd8a0b3b3b.9.95.2-53-gfd8a0b3b3b.9.95.2-53-gfd8a0b3b3b : && /media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf-gcc -fPIC -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -mabi=aapcs-linux -Wno-psabi -Wa,-mno-warn-deprecated -mfloat-abi=hard -mfpu=crypto-neon-fp-armv8 -Wall -pipe -O2 -fomit-frame-pointer -Wall -Werror=main -Wformat -Wmain -Wuninitialized -Winit-self -Werror=implicit -Werror=missing-parameter-type -DONEWIRE=1 -DARMPLAT=1 -DUSBPLAT=1 -Os -DNDEBUG -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -Wl,--as-needed -fuse-ld=gold -shared -Wl,-soname,libmraa.so.9.95.2-53-gfd8a0b3b3b -o src/libmraa.so.9.95.2-53-gfd8a0b3b3b.9.95.2-53-gfd8a0b3b3b.9.95.2-53-gfd8a0b3b3b src/CMakeFiles/mraa.dir/mraa.c.o src/CMakeFiles/mraa.dir/gpio/gpio.c.o src/CMakeFiles/mraa.dir/gpio/gpio_chardev.c.o src/CMakeFiles/mraa.dir/i2c/i2c.c.o src/CMakeFiles/mraa.dir/pwm/pwm.c.o src/CMakeFiles/mraa.dir/spi/spi.c.o src/CMakeFiles/mraa.dir/aio/aio.c.o src/CMakeFiles/mraa.dir/uart/uart.c.o src/CMakeFiles/mraa.dir/led/led.c.o src/CMakeFiles/mraa.dir/initio/initio.c.o src/CMakeFiles/mraa.dir/grovepi/grovepi.c.o src/CMakeFiles/mraa.dir/uart_ow/uart_ow.c.o src/CMakeFiles/mraa.dir/iio/iio.c.o src/CMakeFiles/mraa.dir/arm/arm.c.o src/CMakeFiles/mraa.dir/arm/96boards.c.o src/CMakeFiles/mraa.dir/arm/raspberry_pi.c.o src/CMakeFiles/mraa.dir/arm/beaglebone.c.o src/CMakeFiles/mraa.dir/arm/phyboard.c.o src/CMakeFiles/mraa.dir/arm/banana.c.o src/CMakeFiles/mraa.dir/arm/de_nano_soc.c.o src/CMakeFiles/mraa.dir/arm/rockpi4.c.o src/CMakeFiles/mraa.dir/arm/adlink_ipi.c.o src/CMakeFiles/mraa.dir/version.c.o -lpthread -ldl && : /media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/toolchain/lib/gcc/armv8a-libreelec-linux-gnueabihf/10.2.0/../../../../armv8a-libreelec-linux-gnueabihf/bin/ld.gold: error: src/CMakeFiles/mraa.dir/version.c.o: multiple definition of 'gVERSION_SHORT' /media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/toolchain/lib/gcc/armv8a-libreelec-linux-gnueabihf/10.2.0/../../../../armv8a-libreelec-linux-gnueabihf/bin/ld.gold: src/CMakeFiles/mraa.dir/mraa.c.o: previous definition here /media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/toolchain/lib/gcc/armv8a-libreelec-linux-gnueabihf/10.2.0/../../../../armv8a-libreelec-linux-gnueabihf/bin/ld.gold: error: src/CMakeFiles/mraa.dir/version.c.o: multiple definition of 'gVERSION' /media/video/test/my.LibreELEC/build.LibreELEC-RK3399.arm-10.0-devel/toolchain/lib/gcc/armv8a-libreelec-linux-gnueabihf/10.2.0/../../../../armv8a-libreelec-linux-gnueabihf/bin/ld.gold: src/CMakeFiles/mraa.dir/mraa.c.o: previous definition here collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. FAILURE: scripts/build radxa-mraa during make_target (default)