-- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned short -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian -- Looking for string.h -- Looking for string.h - found -- Looking for memory.h -- Looking for memory.h - found -- Looking for stdlib.h -- Looking for stdlib.h - found -- Looking for stdio.h -- Looking for stdio.h - found -- Looking for math.h -- Looking for math.h - found -- Looking for float.h -- Looking for float.h - found -- Looking for time.h -- Looking for time.h - found -- Looking for stdarg.h -- Looking for stdarg.h - found -- Looking for ctype.h -- Looking for ctype.h - found -- Looking for assert.h -- Looking for assert.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for inttypes.h -- Looking for inttypes.h - found -- Looking for strings.h -- Looking for strings.h - found -- Looking for sys/stat.h -- Looking for sys/stat.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Checking for 64-bit off_t -- Checking for 64-bit off_t - present -- Checking for fseeko/ftello -- Checking for fseeko/ftello - present -- Large File support - found -- Looking for include file malloc.h -- Looking for include file malloc.h - found -- Looking for _aligned_malloc -- Looking for _aligned_malloc - not found -- Looking for posix_memalign -- Looking for posix_memalign - found -- Looking for memalign -- Looking for memalign - found -- Found PkgConfig: /tmp/instance-1/output-1/host/bin/pkg-config (found version "1.6.1") -- Found ZLIB: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/lib/libz.so (found version "1.2.11") -- Your system seems to have a Z lib available, we will use it to generate PNG lib -- Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) -- PNG lib not found, activate BUILD_THIRDPARTY if you want build it -- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) -- TIFF lib not found, activate BUILD_THIRDPARTY if you want build it -- Could NOT find LCMS2 (missing: LCMS2_LIBRARY LCMS2_INCLUDE_DIR) -- Could NOT find LCMS (missing: LCMS_LIBRARY LCMS_INCLUDE_DIR) -- LCMS2 or LCMS lib not found, activate BUILD_THIRDPARTY if you want build it -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: BUILD_DOCS BUILD_EXAMPLE BUILD_EXAMPLES BUILD_TEST BUILD_TESTS -- Build files have been written to: /tmp/instance-1/output-1/build/openjpeg-2.3.1 >>> openjpeg 2.3.1 Building PATH="/tmp/instance-1/output-1/host/bin:/tmp/instance-1/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-1/output-1/build/openjpeg-2.3.1/ make[1]: Entering directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' make[2]: Entering directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' make[3]: Entering directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' make[3]: Entering directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' Scanning dependencies of target openjp2 Scanning dependencies of target openjp2_static make[3]: Leaving directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' make[3]: Leaving directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' make[3]: Entering directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' make[3]: Entering directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' [ 1%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/event.c.o [ 3%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/mct.c.o [ 6%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/jp2.c.o [ 6%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/image.c.o [ 7%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/thread.c.o [ 10%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/bio.c.o [ 10%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/cio.c.o [ 12%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/j2k.c.o [ 15%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/tcd.c.o [ 15%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/cio.c.o [ 18%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/bio.c.o [ 18%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/openjpeg.c.o [ 20%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/pi.c.o [ 21%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/invert.c.o [ 26%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/mqc.c.o [ 26%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/dwt.c.o [ 26%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/thread.c.o [ 27%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/opj_clock.c.o [ 29%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/event.c.o [ 30%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/t1.c.o [ 32%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/t2.c.o [ 33%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/dwt.c.o [ 35%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/invert.c.o [ 36%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/function_list.c.o [ 38%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/tgt.c.o [ 40%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/image.c.o [ 41%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/j2k.c.o [ 43%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/sparse_array.c.o [ 44%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/opj_malloc.c.o [ 47%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/mct.c.o [ 47%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/jp2.c.o [ 49%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/mqc.c.o /tmp/instance-1/output-1/build/openjpeg-2.3.1/src/lib/openjp2/openjpeg.c: In function 'opj_stream_create_file_stream': /tmp/instance-1/output-1/build/openjpeg-2.3.1/src/lib/openjp2/openjpeg.c:1041:30: warning: cast between incompatible function types from 'int (*)(FILE *)' {aka 'int (*)(struct _IO_FILE *)'} to 'void (*)(void *)' [-Wcast-function-type] (opj_stream_free_user_data_fn) fclose); ^ [ 52%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/openjpeg.c.o [ 52%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/opj_clock.c.o [ 53%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/pi.c.o [ 55%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/t2.c.o [ 56%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/t1.c.o [ 58%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/tcd.c.o [ 60%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/tgt.c.o [ 61%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/function_list.c.o [ 63%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/opj_malloc.c.o [ 64%] Building C object src/lib/openjp2/CMakeFiles/openjp2_static.dir/sparse_array.c.o [ 66%] Linking C shared library ../../../bin/libopenjp2.so [ 67%] Linking C static library ../../../bin/libopenjp2.a make[3]: Leaving directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' make[3]: Leaving directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' [ 67%] Built target openjp2_static [ 67%] Built target openjp2 make[3]: Entering directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' make[3]: Entering directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' make[3]: Entering directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' Scanning dependencies of target opj_compress make[3]: Leaving directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' Scanning dependencies of target opj_dump make[3]: Entering directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' Scanning dependencies of target opj_decompress make[3]: Leaving directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' make[3]: Leaving directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' make[3]: Entering directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' make[3]: Entering directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' [ 69%] Building C object src/bin/jp2/CMakeFiles/opj_compress.dir/__/common/opj_getopt.c.o [ 70%] Building C object src/bin/jp2/CMakeFiles/opj_compress.dir/opj_compress.c.o [ 72%] Building C object src/bin/jp2/CMakeFiles/opj_compress.dir/convert.c.o [ 73%] Building C object src/bin/jp2/CMakeFiles/opj_dump.dir/index.c.o [ 75%] Building C object src/bin/jp2/CMakeFiles/opj_decompress.dir/__/common/opj_getopt.c.o [ 76%] Building C object src/bin/jp2/CMakeFiles/opj_compress.dir/__/common/color.c.o [ 80%] Building C object src/bin/jp2/CMakeFiles/opj_dump.dir/opj_dump.c.o [ 80%] Building C object src/bin/jp2/CMakeFiles/opj_compress.dir/convertbmp.c.o [ 81%] Building C object src/bin/jp2/CMakeFiles/opj_decompress.dir/opj_decompress.c.o [ 84%] Building C object src/bin/jp2/CMakeFiles/opj_decompress.dir/convertbmp.c.o [ 84%] Building C object src/bin/jp2/CMakeFiles/opj_dump.dir/__/common/color.c.o [ 86%] Building C object src/bin/jp2/CMakeFiles/opj_compress.dir/index.c.o [ 87%] Building C object src/bin/jp2/CMakeFiles/opj_decompress.dir/index.c.o [ 89%] Building C object src/bin/jp2/CMakeFiles/opj_dump.dir/convert.c.o [ 90%] Building C object src/bin/jp2/CMakeFiles/opj_dump.dir/__/common/opj_getopt.c.o [ 92%] Building C object src/bin/jp2/CMakeFiles/opj_decompress.dir/convert.c.o [ 93%] Building C object src/bin/jp2/CMakeFiles/opj_decompress.dir/__/common/color.c.o [ 95%] Building C object src/bin/jp2/CMakeFiles/opj_dump.dir/convertbmp.c.o /tmp/instance-1/output-1/build/openjpeg-2.3.1/src/bin/jp2/opj_decompress.c: In function 'get_next_file': /tmp/instance-1/output-1/build/openjpeg-2.3.1/src/bin/jp2/opj_decompress.c:482:36: warning: '.' directive writing 1 byte into a region of size between 0 and 4095 [-Wformat-overflow=] sprintf(outfilename, "%s/%s.%s", img_fol->imgdirpath, temp_ofname, ^ In file included from /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/stdio.h:867, from /tmp/instance-1/output-1/build/openjpeg-2.3.1/src/bin/jp2/opj_decompress.c:42: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 3 or more bytes (assuming 4098) into a destination of size 4096 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/instance-1/output-1/build/openjpeg-2.3.1/src/bin/jp2/opj_compress.c: In function 'main': /tmp/instance-1/output-1/build/openjpeg-2.3.1/src/bin/jp2/opj_compress.c:543:31: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf(infilename, "%s/%s", img_fol->imgdirpath, image_filename); ^ In file included from /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/stdio.h:867, from /tmp/instance-1/output-1/build/openjpeg-2.3.1/src/bin/jp2/opj_compress.c:42: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 4097) into a destination of size 4096 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/instance-1/output-1/build/openjpeg-2.3.1/src/bin/jp2/opj_compress.c:556:36: warning: '.' directive writing 1 byte into a region of size between 0 and 4095 [-Wformat-overflow=] sprintf(outfilename, "%s/%s.%s", img_fol->imgdirpath, temp_ofname, ^ In file included from /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/stdio.h:867, from /tmp/instance-1/output-1/build/openjpeg-2.3.1/src/bin/jp2/opj_compress.c:42: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 3 or more bytes (assuming 4098) into a destination of size 4096 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 96%] Linking C executable ../../../bin/opj_dump make[3]: Leaving directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' [ 96%] Built target opj_dump [ 98%] Linking C executable ../../../bin/opj_compress [100%] Linking C executable ../../../bin/opj_decompress make[3]: Leaving directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' [100%] Built target opj_compress make[3]: Leaving directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' [100%] Built target opj_decompress make[2]: Leaving directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' make[1]: Leaving directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' >>> openjpeg 2.3.1 Installing to staging directory PATH="/tmp/instance-1/output-1/host/bin:/tmp/instance-1/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" /usr/bin/make -j32 DESTDIR=/tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot install/fast -C /tmp/instance-1/output-1/build/openjpeg-2.3.1/ make[1]: Entering directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' Install the project... -- Install configuration: "Release" -- Installing: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/lib/openjpeg-2.3/OpenJPEGTargets.cmake -- Installing: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/lib/openjpeg-2.3/OpenJPEGTargets-release.cmake -- Installing: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/lib/openjpeg-2.3/OpenJPEGConfig.cmake -- Installing: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/lib/pkgconfig/libopenjp2.pc -- Installing: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/openjpeg-2.3/opj_config.h -- Installing: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/lib/libopenjp2.so.2.3.1 -- Installing: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/lib/libopenjp2.so.7 -- Installing: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/lib/libopenjp2.so -- Installing: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/lib/libopenjp2.a -- Installing: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/openjpeg-2.3/openjpeg.h -- Installing: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/openjpeg-2.3/opj_stdint.h -- Installing: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/bin/opj_decompress -- Set runtime path of "/tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/bin/opj_decompress" to "" -- Installing: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/bin/opj_compress -- Set runtime path of "/tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/bin/opj_compress" to "" -- Installing: /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/bin/opj_dump -- Set runtime path of "/tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/bin/opj_dump" to "" make[1]: Leaving directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' >>> openjpeg 2.3.1 Fixing libtool files for la in $(find /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/lib* -name "*.la"); do \ cp -a "${la}" "${la}.fixed" && \ /bin/sed -i -e "s:/tmp/instance-1/output-1:@BASE_DIR@:g" \ -e "s:/tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot:@STAGING_DIR@:g" \ -e "s:/tmp/instance-1/output-1/host/opt/ext-toolchain:@TOOLCHAIN_EXTERNAL_INSTALL_DIR@:g" \ -e "s:\(['= ]\)/usr:\\1@STAGING_DIR@/usr:g" \ -e "s:\(['= ]\)/lib:\\1@STAGING_DIR@/lib:g" \ -e "s:@TOOLCHAIN_EXTERNAL_INSTALL_DIR@:/tmp/instance-1/output-1/host/opt/ext-toolchain:g" \ -e "s:@STAGING_DIR@:/tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot:g" \ -e "s:@BASE_DIR@:/tmp/instance-1/output-1:g" \ "${la}.fixed" && \ if cmp -s "${la}" "${la}.fixed"; then \ rm -f "${la}.fixed"; \ else \ mv "${la}.fixed" "${la}"; \ fi || exit 1; \ done >>> openjpeg 2.3.1 Installing to target PATH="/tmp/instance-1/output-1/host/bin:/tmp/instance-1/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" /usr/bin/make -j32 DESTDIR=/tmp/instance-1/output-1/target install/fast -C /tmp/instance-1/output-1/build/openjpeg-2.3.1/ make[1]: Entering directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' Install the project... -- Install configuration: "Release" -- Installing: /tmp/instance-1/output-1/target/usr/lib/openjpeg-2.3/OpenJPEGTargets.cmake -- Installing: /tmp/instance-1/output-1/target/usr/lib/openjpeg-2.3/OpenJPEGTargets-release.cmake -- Installing: /tmp/instance-1/output-1/target/usr/lib/openjpeg-2.3/OpenJPEGConfig.cmake -- Installing: /tmp/instance-1/output-1/target/usr/lib/pkgconfig/libopenjp2.pc -- Installing: /tmp/instance-1/output-1/target/usr/include/openjpeg-2.3/opj_config.h -- Installing: /tmp/instance-1/output-1/target/usr/lib/libopenjp2.so.2.3.1 -- Installing: /tmp/instance-1/output-1/target/usr/lib/libopenjp2.so.7 -- Installing: /tmp/instance-1/output-1/target/usr/lib/libopenjp2.so -- Installing: /tmp/instance-1/output-1/target/usr/lib/libopenjp2.a -- Installing: /tmp/instance-1/output-1/target/usr/include/openjpeg-2.3/openjpeg.h -- Installing: /tmp/instance-1/output-1/target/usr/include/openjpeg-2.3/opj_stdint.h -- Installing: /tmp/instance-1/output-1/target/usr/bin/opj_decompress -- Set runtime path of "/tmp/instance-1/output-1/target/usr/bin/opj_decompress" to "" -- Installing: /tmp/instance-1/output-1/target/usr/bin/opj_compress -- Set runtime path of "/tmp/instance-1/output-1/target/usr/bin/opj_compress" to "" -- Installing: /tmp/instance-1/output-1/target/usr/bin/opj_dump -- Set runtime path of "/tmp/instance-1/output-1/target/usr/bin/opj_dump" to "" make[1]: Leaving directory '/tmp/instance-1/output-1/build/openjpeg-2.3.1' patchelf-0.9.tar.bz2: OK (sha256: a0f65c1ba148890e9f2f7823f4bedf7ecad5417772f64f994004f59a39014f83) >>> host-patchelf 0.9 Extracting bzcat /tmp/instance-1/dl/patchelf/patchelf-0.9.tar.bz2 | /tmp/instance-1/output-1/host/bin/tar --strip-components=1 -C /tmp/instance-1/output-1/build/host-patchelf-0.9 -xf - >>> host-patchelf 0.9 Patching Applying 0001-Remove-apparently-incorrect-usage-of-static.patch using patch: patching file src/patchelf.cc Applying 0002-Extract-a-function-for-splitting-a-colon-separated-s.patch using patch: patching file src/patchelf.cc Applying 0003-Add-option-to-make-the-rpath-relative-under-a-specif.patch using patch: patching file src/patchelf.cc Applying 0004-patchelf-Check-ELF-endianness-before-writing-new-run.patch using patch: patching file src/patchelf.cc Hunk #1 succeeded at 1309 (offset -6 lines). >>> host-patchelf 0.9 Updating config.sub and config.guess for file in config.guess config.sub; do for i in $(find /tmp/instance-1/output-1/build/host-patchelf-0.9 -name $file); do cp support/gnuconfig/$file $i; done; done >>> host-patchelf 0.9 Patching libtool >>> host-patchelf 0.9 Configuring (cd /tmp/instance-1/output-1/build/host-patchelf-0.9/ && rm -rf config.cache; PATH="/tmp/instance-1/output-1/host/bin:/tmp/instance-1/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" PKG_CONFIG="/tmp/instance-1/output-1/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/tmp/instance-1/output-1/host/lib/pkgconfig:/tmp/instance-1/output-1/host/share/pkgconfig" AR="/usr/bin/ar" AS="/usr/bin/as" LD="/usr/bin/ld" NM="/usr/bin/nm" CC="/usr/bin/gcc" GCC="/usr/bin/gcc" CXX="/usr/bin/g++" CPP="/usr/bin/cpp" OBJCOPY="/usr/bin/objcopy" RANLIB="/usr/bin/ranlib" CPPFLAGS="-I/tmp/instance-1/output-1/host/include" CFLAGS="-O2 -I/tmp/instance-1/output-1/host/include" CXXFLAGS="-O2 -I/tmp/instance-1/output-1/host/include" LDFLAGS="-L/tmp/instance-1/output-1/host/lib -Wl,-rpath,/tmp/instance-1/output-1/host/lib" INTLTOOL_PERL=/usr/bin/perl CFLAGS="-O2 -I/tmp/instance-1/output-1/host/include" LDFLAGS="-L/tmp/instance-1/output-1/host/lib -Wl,-rpath,/tmp/instance-1/output-1/host/lib" CONFIG_SITE=/dev/null ./configure --prefix="/tmp/instance-1/output-1/host" --sysconfdir="/tmp/instance-1/output-1/host/etc" --localstatedir="/tmp/instance-1/output-1/host/var" --enable-shared --disable-static --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-documentation --disable-debug --with-xmlto=no --with-fop=no --disable-nls --disable-dependency-tracking ) configure: WARNING: unrecognized options: --enable-shared, --disable-static, --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --disable-debug, --with-xmlto, --with-fop, --disable-nls checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for gcc... /usr/bin/gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc accepts -g... yes checking for /usr/bin/gcc option to accept ISO C89... none needed checking whether /usr/bin/gcc understands -c and -o together... yes checking dependency style of /usr/bin/gcc... none checking whether we are using the GNU C++ compiler... yes checking whether /usr/bin/g++ accepts -g... yes checking dependency style of /usr/bin/g++... none Setting page size to 4096 checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating tests/Makefile config.status: creating patchelf.spec config.status: executing depfiles commands configure: WARNING: unrecognized options: --enable-shared, --disable-static, --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --disable-debug, --with-xmlto, --with-fop, --disable-nls >>> host-patchelf 0.9 Building PATH="/tmp/instance-1/output-1/host/bin:/tmp/instance-1/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" PKG_CONFIG="/tmp/instance-1/output-1/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/tmp/instance-1/output-1/host/lib/pkgconfig:/tmp/instance-1/output-1/host/share/pkgconfig" /usr/bin/make -j32 -C /tmp/instance-1/output-1/build/host-patchelf-0.9/ make[1]: Entering directory '/tmp/instance-1/output-1/build/host-patchelf-0.9' Making all in src make[2]: Entering directory '/tmp/instance-1/output-1/build/host-patchelf-0.9/src' /usr/bin/g++ -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.9\" -DPACKAGE_STRING=\"patchelf\ 0.9\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.9\" -DPAGESIZE=4096 -I. -I/tmp/instance-1/output-1/host/include -Wall -O2 -I/tmp/instance-1/output-1/host/include -c -o patchelf.o patchelf.cc /usr/bin/g++ -Wall -O2 -I/tmp/instance-1/output-1/host/include -L/tmp/instance-1/output-1/host/lib -Wl,-rpath,/tmp/instance-1/output-1/host/lib -o patchelf patchelf.o make[2]: Leaving directory '/tmp/instance-1/output-1/build/host-patchelf-0.9/src' Making all in tests make[2]: Entering directory '/tmp/instance-1/output-1/build/host-patchelf-0.9/tests' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/tmp/instance-1/output-1/build/host-patchelf-0.9/tests' make[2]: Entering directory '/tmp/instance-1/output-1/build/host-patchelf-0.9' make[2]: Nothing to be done for 'all-am'. make[2]: Leaving directory '/tmp/instance-1/output-1/build/host-patchelf-0.9' make[1]: Leaving directory '/tmp/instance-1/output-1/build/host-patchelf-0.9' >>> host-patchelf 0.9 Installing to host directory PATH="/tmp/instance-1/output-1/host/bin:/tmp/instance-1/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" PKG_CONFIG="/tmp/instance-1/output-1/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/tmp/instance-1/output-1/host/lib/pkgconfig:/tmp/instance-1/output-1/host/share/pkgconfig" /usr/bin/make -j32 install -C /tmp/instance-1/output-1/build/host-patchelf-0.9/ make[1]: Entering directory '/tmp/instance-1/output-1/build/host-patchelf-0.9' Making install in src make[2]: Entering directory '/tmp/instance-1/output-1/build/host-patchelf-0.9/src' make[3]: Entering directory '/tmp/instance-1/output-1/build/host-patchelf-0.9/src' make[3]: Nothing to be done for 'install-data-am'. /bin/mkdir -p '/tmp/instance-1/output-1/host/bin' /usr/bin/install -c patchelf '/tmp/instance-1/output-1/host/bin' make[3]: Leaving directory '/tmp/instance-1/output-1/build/host-patchelf-0.9/src' make[2]: Leaving directory '/tmp/instance-1/output-1/build/host-patchelf-0.9/src' Making install in tests make[2]: Entering directory '/tmp/instance-1/output-1/build/host-patchelf-0.9/tests' make[3]: Entering directory '/tmp/instance-1/output-1/build/host-patchelf-0.9/tests' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/tmp/instance-1/output-1/build/host-patchelf-0.9/tests' make[2]: Leaving directory '/tmp/instance-1/output-1/build/host-patchelf-0.9/tests' make[2]: Entering directory '/tmp/instance-1/output-1/build/host-patchelf-0.9' make[3]: Entering directory '/tmp/instance-1/output-1/build/host-patchelf-0.9' make[3]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/tmp/instance-1/output-1/host/share/doc/patchelf' /bin/mkdir -p '/tmp/instance-1/output-1/host/share/man/man1' /usr/bin/install -c -m 644 README '/tmp/instance-1/output-1/host/share/doc/patchelf' /usr/bin/install -c -m 644 patchelf.1 '/tmp/instance-1/output-1/host/share/man/man1' make[3]: Leaving directory '/tmp/instance-1/output-1/build/host-patchelf-0.9' make[2]: Leaving directory '/tmp/instance-1/output-1/build/host-patchelf-0.9' make[1]: Leaving directory '/tmp/instance-1/output-1/build/host-patchelf-0.9' >>> Finalizing host directory >>> Finalizing target directory mkdir -p /tmp/instance-1/output-1/host/etc/meson sed -e 's%@TARGET_CROSS@%/tmp/instance-1/output-1/host/bin/mipsel-linux-%g' -e 's%@TARGET_ARCH@%mips%g' -e 's%@TARGET_CPU@%%g' -e 's%@TARGET_ENDIAN@%little%g' -e 's%@TARGET_CFLAGS@%"-D_LARGEFILE_SOURCE", "-D_LARGEFILE64_SOURCE", "-D_FILE_OFFSET_BITS=64", "-Os", "-D_FORTIFY_SOURCE=1"@PKG_TARGET_CFLAGS@%g' -e 's%@TARGET_LDFLAGS@%@PKG_TARGET_CFLAGS@%g' -e 's%@TARGET_CXXFLAGS@%"-D_LARGEFILE_SOURCE", "-D_LARGEFILE64_SOURCE", "-D_FILE_OFFSET_BITS=64", "-Os", "-D_FORTIFY_SOURCE=1"@PKG_TARGET_CFLAGS@%g' -e 's%@HOST_DIR@%/tmp/instance-1/output-1/host%g' -e 's%@STAGING_DIR@%/tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot%g' -e 's%@STATIC@%$(if $(BR2_STATIC_LIBS),true,false)%g' package/meson//cross-compilation.conf.in > /tmp/instance-1/output-1/host/etc/meson/cross-compilation.conf.in sed -e 's%@PKG_TARGET_CFLAGS@%%g' -e 's%@PKG_TARGET_LDFLAGS@%%g' -e 's%@PKG_TARGET_CXXFLAGS@%%g' /tmp/instance-1/output-1/host/etc/meson/cross-compilation.conf.in > /tmp/instance-1/output-1/host/etc/meson/cross-compilation.conf mkdir -p /tmp/instance-1/output-1/target/etc echo "buildroot" > /tmp/instance-1/output-1/target/etc/hostname /bin/sed -i -e '$a \127.0.1.1\tbuildroot' -e '/^127.0.1.1/d' /tmp/instance-1/output-1/target/etc/hosts mkdir -p /tmp/instance-1/output-1/target/etc echo "Welcome to Buildroot" > /tmp/instance-1/output-1/target/etc/issue /bin/sed -i -e s,^root:[^:]*:,root::, /tmp/instance-1/output-1/target/etc/shadow rm -f /tmp/instance-1/output-1/target/bin/sh rm -f /tmp/instance-1/output-1/build/locales.nopurge for i in C en_US locale-archive; do echo $i >> /tmp/instance-1/output-1/build/locales.nopurge; done for dir in /tmp/instance-1/output-1/target/usr/share/locale /tmp/instance-1/output-1/target/usr/share/X11/locale /tmp/instance-1/output-1/target/usr/lib/locale; do if [ ! -d $dir ]; then continue; fi; for langdir in $dir/*; do if [ -e "${langdir}" ]; then grep -qx "${langdir##*/}" /tmp/instance-1/output-1/build/locales.nopurge || rm -rf $langdir; fi done; done if [ -d /tmp/instance-1/output-1/target/usr/share/X11/locale ]; then for lang in C en_US; do if [ -f /tmp/instance-1/output-1/target/usr/share/X11/locale/$lang/XLC_LOCALE ]; then echo "$lang/XLC_LOCALE: $lang"; fi done > /tmp/instance-1/output-1/target/usr/share/X11/locale/locale.dir; fi rm -rf /tmp/instance-1/output-1/target/usr/include /tmp/instance-1/output-1/target/usr/share/aclocal \ /tmp/instance-1/output-1/target/usr/lib/pkgconfig /tmp/instance-1/output-1/target/usr/share/pkgconfig \ /tmp/instance-1/output-1/target/usr/lib/cmake /tmp/instance-1/output-1/target/usr/share/cmake \ /tmp/instance-1/output-1/target/usr/doc find /tmp/instance-1/output-1/target/usr/{lib,share}/ -name '*.cmake' -print0 | xargs -0 rm -f find /tmp/instance-1/output-1/target/lib/ /tmp/instance-1/output-1/target/usr/lib/ /tmp/instance-1/output-1/target/usr/libexec/ \ \( -name '*.a' -o -name '*.la' -o -name '*.prl' \) -print0 | xargs -0 rm -f find: '/tmp/instance-1/output-1/target/usr/libexec/': No such file or directory rm -rf /tmp/instance-1/output-1/target/usr/share/gdb rm -rf /tmp/instance-1/output-1/target/usr/share/bash-completion rm -rf /tmp/instance-1/output-1/target/etc/bash_completion.d rm -rf /tmp/instance-1/output-1/target/usr/share/zsh rm -rf /tmp/instance-1/output-1/target/usr/man /tmp/instance-1/output-1/target/usr/share/man rm -rf /tmp/instance-1/output-1/target/usr/info /tmp/instance-1/output-1/target/usr/share/info rm -rf /tmp/instance-1/output-1/target/usr/doc /tmp/instance-1/output-1/target/usr/share/doc rm -rf /tmp/instance-1/output-1/target/usr/share/gtk-doc rmdir /tmp/instance-1/output-1/target/usr/share 2>/dev/null || true rm -rf /tmp/instance-1/output-1/target/lib/debug /tmp/instance-1/output-1/target/usr/lib/debug find /tmp/instance-1/output-1/target -type f \( -perm /111 -o -name '*.so*' \) -not \( -name 'libpthread*.so*' -o -name 'ld-*.so*' -o -name '*.ko' \) -print0 | xargs -0 /tmp/instance-1/output-1/host/bin/mipsel-linux-strip --remove-section=.comment --remove-section=.note 2>/dev/null || true find /tmp/instance-1/output-1/target \( -name 'ld-*.so*' -o -name 'libpthread*.so*' \) -print0 | xargs -0 -r /tmp/instance-1/output-1/host/bin/mipsel-linux-strip --remove-section=.comment --remove-section=.note --strip-debug 2>/dev/null || true test -f /tmp/instance-1/output-1/target/etc/ld.so.conf && \ { echo "ERROR: we shouldn't have a /etc/ld.so.conf file"; exit 1; } || true test -d /tmp/instance-1/output-1/target/etc/ld.so.conf.d && \ { echo "ERROR: we shouldn't have a /etc/ld.so.conf.d directory"; exit 1; } || true mkdir -p /tmp/instance-1/output-1/target/etc ( \ echo "NAME=Buildroot"; \ echo "VERSION=2020.05.2-54-g5935b68772"; \ echo "ID=buildroot"; \ echo "VERSION_ID=2020.05.2"; \ echo "PRETTY_NAME=\"Buildroot 2020.05.2\"" \ ) > /tmp/instance-1/output-1/target/usr/lib/os-release ln -sf ../usr/lib/os-release /tmp/instance-1/output-1/target/etc >>> Sanitizing RPATH in target tree PER_PACKAGE_DIR=/tmp/instance-1/output-1/per-package /tmp/instance-1/buildroot/support/scripts/fix-rpath target touch /tmp/instance-1/output-1/target/usr ln -snf /tmp/instance-1/output-1/host/mipsel-buildroot-linux-gnu/sysroot /tmp/instance-1/output-1/staging make: Leaving directory '/tmp/instance-1/buildroot' make: Entering directory '/tmp/instance-1/buildroot' >>> Buildroot 2020.05.2-54-g5935b68772 Collecting legal info COPYING: OK (sha256: 9755181e27175cb3510b4da8629caa406fb355a19aa8e7d55f06bf8ab33323c4) >>> toolchain-external Collecting legal info >>> host-skeleton Collecting legal info >>> host-tar 1.29 Collecting legal info COPYING: OK (sha256: 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903) >>> skeleton Collecting legal info >>> skeleton-init-none Collecting legal info >>> skeleton-init-common Collecting legal info >>> toolchain-external-custom Collecting legal info >>> toolchain Collecting legal info >>> alure 14beed2a86d5a36030e907b21c46614d505f07cd Collecting legal info LICENSE: OK (sha256: 7331ddc67daaf1a283c81e8dc17bac8dc40f54ed3fab3d3964616f4bd502a0a3) >>> host-pkgconf 1.6.1 Collecting legal info COPYING: OK (sha256: 07ee94b50a41ee3fc4e13a9b9c60b26fc28488494c465639f7e5f07a3952ec04) >>> openal 1.19.1 Collecting legal info COPYING: OK (sha256: d808ce217e5b611854da622b57ec29fe545584c48bc5352fae72a4b6e5074a15) >>> c-periphery 2.1.0 Collecting legal info LICENSE: OK (sha256: e7b9464cb8511f19ddb40f9cf52fe86b3dfe38b2faed9d7bbc3d5707677ffbe3) >>> eudev 3.2.9 Collecting legal info COPYING: OK (sha256: ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6) >>> host-gperf 3.1 Collecting legal info COPYING: OK (sha256: 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903) >>> kmod 27 Collecting legal info libkmod/COPYING: OK (sha256: 6095e9ffa777dd22839f7801aa845b31c9ed07f3d6bf8a26dc5d2dec8ccc0ef3) >>> zlib Collecting legal info >>> libzlib 1.2.11 Collecting legal info README: OK (sha256: 7960b6b1cc63e619abb77acaea5427159605afee8c8b362664f4effc7d7f7d15) >>> util-linux 2.35.1 Collecting legal info README.licensing: OK (sha256: 869660b5269f4f40a8a679da7f403ea3a6e71d46087aab5e14871b09bcb55955) Documentation/licenses/COPYING.BSD-3-Clause: OK (sha256: 9b718a9460fed5952466421235bc79eb49d4e9eacc920d7a9dd6285ab8fd6c6d) Documentation/licenses/COPYING.BSD-4-Clause-UC: OK (sha256: ba7640f00d93e72e92b94b9d71f25ec53bac2f1682f5c4adcccb0018359f60f8) Documentation/licenses/COPYING.GPL-2.0-or-later: OK (sha256: 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643) Documentation/licenses/COPYING.ISC: OK (sha256: e53348ce276358e9997014071c5294b36a18c4b34f32f00ee57b9acce0aafd63) Documentation/licenses/COPYING.LGPL-2.1-or-later: OK (sha256: dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551) >>> jpeg Collecting legal info >>> libjpeg 9d Collecting legal info README: OK (sha256: 3dc4e4a145c907a96bd6a0e40be3f722fecf061951909143cdff5365cba9c78c) >>> libconfig 1.7.2 Collecting legal info COPYING.LIB: OK (sha256: d80c9d084ebfb50ea1ed91bfbc2410d6ce542097a32c43b00781b83adcb8c77f) >>> host-autoconf 2.69 Collecting legal info COPYINGv3: OK (sha256: 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903) COPYING.EXCEPTION: OK (sha256: 23ed0b84fa023bfa33433b498192cd08a3bfb1f4864a8ed791a84f3eb48b2dd2) >>> host-libtool 2.4.6 Collecting legal info COPYING: OK (sha256: 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643) libltdl/COPYING.LIB: OK (sha256: dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551) >>> host-m4 1.4.18 Collecting legal info COPYING: OK (sha256: 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903) >>> host-automake 1.15.1 Collecting legal info COPYING: OK (sha256: ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6) >>> libid3tag 0.15.1b Collecting legal info COPYING: OK (sha256: 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670) COPYRIGHT: OK (sha256: 7f12ad28dc075763e91b91bfa60fad04062380011ddad8f6bac21dd7b1f44367) >>> libmad 0.15.1b Collecting legal info COPYING: OK (sha256: 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670) >>> libmng 2.0.3 Collecting legal info LICENSE: OK (sha256: ba280734838eb3f22a85b92a7e62de357d4d4c325029dce723b0cb125c417c35) >>> libupnp18 1.8.7 Collecting legal info COPYING: OK (sha256: c8b99423cad48bb44e2cf52a496361404290865eac259a82da6d1e4331ececb3) >>> libusbgx 0.2.0 Collecting legal info COPYING: OK (sha256: 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643) COPYING.LGPL: OK (sha256: dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551) >>> madplay 0.15.2b Collecting legal info COPYING: OK (sha256: 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670) COPYRIGHT: OK (sha256: 915bfd70548f31d11f9b4ffb21f343d1196af96c79d6aaac5663ea46c39dd3a3) >>> openjpeg 2.3.1 Collecting legal info LICENSE: OK (sha256: a6af136f3e15038a666b61f376612a07d9a4e48cb7c01adbf3e33b3f14ab49b6) >>> host-patchelf 0.9 Collecting legal info COPYING: OK (sha256: 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903) WARNING: the Buildroot source code has not been saved WARNING: toolchain-external-custom: cannot save license (TOOLCHAIN_EXTERNAL_CUSTOM_LICENSE_FILES not defined) Legal info produced in /tmp/instance-1/output-1/legal-info make: Leaving directory '/tmp/instance-1/buildroot'