>>> swupdate 2018.11 Extracting gzip -d -c /home/rclinux/rc-buildroot-test/scripts/instance-0/dl/swupdate/swupdate-2018.11.tar.gz | tar --strip-components=1 -C /home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11 -xf - >>> swupdate 2018.11 Patching Using /home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11/.config as base # # merged configuration written to /home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11/.config (needs make) # make[1]: Entering directory '/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11' HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/zconf.lex.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --olddefconfig Kconfig # # configuration written to .config # make[1]: Leaving directory '/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11' /bin/sed -i -e "/\\/d" /home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11/.config echo 'CONFIG_STATIC=y' >> /home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11/.config /bin/sed -i -e "/\\/d" /home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11/.config echo 'CONFIG_CROSS_COMPILE="/home/rclinux/rc-buildroot-test/scripts/instance-0/output/host/bin/arc-buildroot-linux-uclibc-"' >> /home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11/.config /bin/sed -i -e "/\\/d" /home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11/.config echo 'CONFIG_SYSROOT="/home/rclinux/rc-buildroot-test/scripts/instance-0/output/host/arc-buildroot-linux-uclibc/sysroot"' >> /home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11/.config /bin/sed -i -e "/\\/d" /home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11/.config echo 'CONFIG_EXTRA_CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -matomic -Os -g2 -static"' >> /home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11/.config /bin/sed -i -e "/\\/d" /home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11/.config echo 'CONFIG_EXTRA_LDFLAGS=" -static"' >> /home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11/.config make[1]: Entering directory '/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11' scripts/kconfig/conf --olddefconfig Kconfig # # configuration written to .config # make[1]: Leaving directory '/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11' >>> swupdate 2018.11 Configuring >>> swupdate 2018.11 Building PATH="/home/rclinux/rc-buildroot-test/scripts/instance-0/output/host/bin:/home/rclinux/rc-buildroot-test/scripts/instance-0/output/host/sbin:/home/rclinux/bin:/home/rclinux/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" CC="/home/rclinux/rc-buildroot-test/scripts/instance-0/output/host/bin/arc-buildroot-linux-uclibc-gcc" LD="/home/rclinux/rc-buildroot-test/scripts/instance-0/output/host/bin/arc-buildroot-linux-uclibc-gcc" HAVE_JSON_C=y HAVE_LIBARCHIVE=y HAVE_LIBCONFIG=y HAVE_LIBCURL=y HAVE_LUA=n HAVE_LIBMTD=n HAVE_LIBUBI=n HAVE_LIBSSL=y HAVE_LIBCRYPTO=y HAVE_LIBUBOOTENV=n HAVE_LIBZEROMQ=n HAVE_ZLIB=y /usr/bin/make -j3 -C /home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11 make[1]: Entering directory '/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11' HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --silentoldconfig Kconfig CC handlers/dummy_handler.o CC corelib/artifacts_versions.o CC core/swupdate.o CC handlers/raw_handler.o In file included from core/swupdate.c:30:0: core/swupdate.c: In function 'install_from_file': include/util.h:87:11: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'off_t {aka long long int}' [-Wformat=] "ERROR %s : %s : %d : " format, \ ^ include/util.h:105:2: note: in expansion of macro 'swupdate_notify' swupdate_notify(FAILURE, format, ERRORLEVEL, ## arg) ^~~~~~~~~~~~~~~ core/swupdate.c:337:3: note: in expansion of macro 'ERROR' ERROR("failed to scan for pos '%ld'!", pos); ^~~~~ core/swupdate.c:337:36: note: format string is defined here ERROR("failed to scan for pos '%ld'!", pos); ~~^ %lld In file included from core/swupdate.c:30:0: include/util.h:94:14: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'off_t {aka long long int}' [-Wformat=] "ERROR : " format, ## arg); \ ^ include/util.h:105:2: note: in expansion of macro 'swupdate_notify' swupdate_notify(FAILURE, format, ERRORLEVEL, ## arg) ^~~~~~~~~~~~~~~ core/swupdate.c:337:3: note: in expansion of macro 'ERROR' ERROR("failed to scan for pos '%ld'!", pos); ^~~~~ core/swupdate.c:337:36: note: format string is defined here ERROR("failed to scan for pos '%ld'!", pos); ~~^ %lld In file included from core/swupdate.c:30:0: include/util.h:98:13: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'off_t {aka long long int}' [-Wformat=] "[%s] : " format, __func__, ## arg); \ ^ include/util.h:105:2: note: in expansion of macro 'swupdate_notify' swupdate_notify(FAILURE, format, ERRORLEVEL, ## arg) ^~~~~~~~~~~~~~~ core/swupdate.c:337:3: note: in expansion of macro 'ERROR' ERROR("failed to scan for pos '%ld'!", pos); ^~~~~ core/swupdate.c:337:36: note: format string is defined here ERROR("failed to scan for pos '%ld'!", pos); ~~^ %lld CC corelib/installer.o LD handlers/built-in.o CC ipc/network_ipc.o CC ipc/progress_ipc.o CC core/cpio_utils.o AR ipc/lib.a CC corelib/network_thread.o CC mongoose/mongoose.o CC corelib/parsing_library.o In file included from corelib/parsing_library.c:19:0: corelib/parsing_library.c: In function 'set_find_path': include/util.h:87:11: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'size_t {aka unsigned int}' [-Wformat=] "ERROR %s : %s : %d : " format, \ ^ include/util.h:105:2: note: in expansion of macro 'swupdate_notify' swupdate_notify(FAILURE, format, ERRORLEVEL, ## arg) ^~~~~~~~~~~~~~~ corelib/parsing_library.c:217:3: note: in expansion of macro 'ERROR' ERROR("No memory: failed for %lu bytes", ^~~~~ corelib/parsing_library.c:217:34: note: format string is defined here ERROR("No memory: failed for %lu bytes", ~~^ %u In file included from corelib/parsing_library.c:19:0: include/util.h:94:14: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t {aka unsigned int}' [-Wformat=] "ERROR : " format, ## arg); \ ^ include/util.h:105:2: note: in expansion of macro 'swupdate_notify' swupdate_notify(FAILURE, format, ERRORLEVEL, ## arg) ^~~~~~~~~~~~~~~ corelib/parsing_library.c:217:3: note: in expansion of macro 'ERROR' ERROR("No memory: failed for %lu bytes", ^~~~~ corelib/parsing_library.c:217:34: note: format string is defined here ERROR("No memory: failed for %lu bytes", ~~^ %u In file included from corelib/parsing_library.c:19:0: include/util.h:98:13: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t {aka unsigned int}' [-Wformat=] "[%s] : " format, __func__, ## arg); \ ^ include/util.h:105:2: note: in expansion of macro 'swupdate_notify' swupdate_notify(FAILURE, format, ERRORLEVEL, ## arg) ^~~~~~~~~~~~~~~ corelib/parsing_library.c:217:3: note: in expansion of macro 'ERROR' ERROR("No memory: failed for %lu bytes", ^~~~~ corelib/parsing_library.c:217:34: note: format string is defined here ERROR("No memory: failed for %lu bytes", ~~^ %u In file included from corelib/parsing_library.c:19:0: include/util.h:87:11: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'unsigned int' [-Wformat=] "ERROR %s : %s : %d : " format, \ ^ include/util.h:105:2: note: in expansion of macro 'swupdate_notify' swupdate_notify(FAILURE, format, ERRORLEVEL, ## arg) ^~~~~~~~~~~~~~~ corelib/parsing_library.c:239:3: note: in expansion of macro 'ERROR' ERROR("No memory: calloc failed for %lu bytes", ^~~~~ corelib/parsing_library.c:239:41: note: format string is defined here ERROR("No memory: calloc failed for %lu bytes", ~~^ %u In file included from corelib/parsing_library.c:19:0: include/util.h:94:14: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] "ERROR : " format, ## arg); \ ^ include/util.h:105:2: note: in expansion of macro 'swupdate_notify' swupdate_notify(FAILURE, format, ERRORLEVEL, ## arg) ^~~~~~~~~~~~~~~ corelib/parsing_library.c:239:3: note: in expansion of macro 'ERROR' ERROR("No memory: calloc failed for %lu bytes", ^~~~~ corelib/parsing_library.c:239:41: note: format string is defined here ERROR("No memory: calloc failed for %lu bytes", ~~^ %u In file included from corelib/parsing_library.c:19:0: include/util.h:98:13: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=] "[%s] : " format, __func__, ## arg); \ ^ include/util.h:105:2: note: in expansion of macro 'swupdate_notify' swupdate_notify(FAILURE, format, ERRORLEVEL, ## arg) ^~~~~~~~~~~~~~~ corelib/parsing_library.c:239:3: note: in expansion of macro 'ERROR' ERROR("No memory: calloc failed for %lu bytes", ^~~~~ corelib/parsing_library.c:239:41: note: format string is defined here ERROR("No memory: calloc failed for %lu bytes", ~~^ %u In file included from corelib/parsing_library.c:19:0: include/util.h:87:11: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'size_t {aka unsigned int}' [-Wformat=] "ERROR %s : %s : %d : " format, \ ^ include/util.h:105:2: note: in expansion of macro 'swupdate_notify' swupdate_notify(FAILURE, format, ERRORLEVEL, ## arg) ^~~~~~~~~~~~~~~ corelib/parsing_library.c:254:3: note: in expansion of macro 'ERROR' ERROR("No memory: failed for %lu bytes", ^~~~~ corelib/parsing_library.c:254:34: note: format string is defined here ERROR("No memory: failed for %lu bytes", ~~^ %u In file included from corelib/parsing_library.c:19:0: include/util.h:94:14: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t {aka unsigned int}' [-Wformat=] "ERROR : " format, ## arg); \ ^ include/util.h:105:2: note: in expansion of macro 'swupdate_notify' swupdate_notify(FAILURE, format, ERRORLEVEL, ## arg) ^~~~~~~~~~~~~~~ corelib/parsing_library.c:254:3: note: in expansion of macro 'ERROR' ERROR("No memory: failed for %lu bytes", ^~~~~ corelib/parsing_library.c:254:34: note: format string is defined here ERROR("No memory: failed for %lu bytes", ~~^ %u In file included from corelib/parsing_library.c:19:0: include/util.h:98:13: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t {aka unsigned int}' [-Wformat=] "[%s] : " format, __func__, ## arg); \ ^ include/util.h:105:2: note: in expansion of macro 'swupdate_notify' swupdate_notify(FAILURE, format, ERRORLEVEL, ## arg) ^~~~~~~~~~~~~~~ corelib/parsing_library.c:254:3: note: in expansion of macro 'ERROR' ERROR("No memory: failed for %lu bytes", ^~~~~ corelib/parsing_library.c:254:34: note: format string is defined here ERROR("No memory: failed for %lu bytes", ~~^ %u CC core/notifier.o CC corelib/parsing_library_libconfig.o CC corelib/progress_thread.o CC core/handler.o CC core/util.o CC corelib/stream_interface.o CC corelib/swupdate_dict.o CC core/parser.o CC corelib/swupdate_settings.o CC core/pctl.o AR corelib/lib.a CC core/state.o CC core/syslog.o CC mongoose/mongoose_interface.o LD core/built-in.o CC parser/parse_external.o CC parser/parser.o AR suricatta/lib.a CC bootloader/none.o AR bootloader/lib.a CC tools/client.o CC tools/hawkbitcfg.o CC tools/progress.o AR parser/lib.a LD bindings/built-in.o CC tools/sendtohawkbit.o AR tools/lib.a AR mongoose/lib.a LD swupdate_unstripped LD tools/sendtohawkbit LD tools/client STRIP tools/sendtohawkbit LD tools/hawkbitcfg STRIP tools/client LD tools/progress STRIP tools/progress LD lua_swupdate.so Failed: -Wl,--start-group -lpthread -lconfig -lz -Wl,--end-group Output of: /home/rclinux/rc-buildroot-test/scripts/instance-0/output/host/bin/arc-buildroot-linux-uclibc-gcc -shared -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -Wno-format-truncation -Wold-style-definition -finline-limit=0 -fno-builtin-strlen -fomit-frame-pointer -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -static-libgcc -fno-unwind-tables -fno-asynchronous-unwind-tables -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -matomic -Os -g2 -static --sysroot=/home/rclinux/rc-buildroot-test/scripts/instance-0/output/host/arc-buildroot-linux-uclibc/sysroot -o lua_swupdate.so -Wl,--sort-common -Wl,--sort-section,alignment -Wl,--gc-sections -Wl,--start-group -static bindings/built-in.o ipc/lib.a -Wl,--end-group -Wl,--start-group -lpthread -lconfig -lz -Wl,--end-group ========== /home/rclinux/rc-buildroot-test/scripts/instance-0/output/host/lib/gcc/arc-buildroot-linux-uclibc/7.3.1/../../../../arc-buildroot-linux-uclibc/bin/ld: /home/rclinux/rc-buildroot-test/scripts/instance-0/output/host/lib/gcc/arc-buildroot-linux-uclibc/7.3.1/crtbeginT.o: relocation R_ARC_32_ME against `__TMC_END__' can not be used when making a shared object; recompile with -fPIC collect2: error: ld returned 1 exit status Makefile:414: recipe for target 'lua_swupdate.so' failed make[1]: *** [lua_swupdate.so] Error 1 make[1]: *** Waiting for unfinished jobs.... STRIP tools/hawkbitcfg make[1]: Leaving directory '/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11' package/pkg-generic.mk:237: recipe for target '/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11/.stamp_built' failed make: *** [/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/swupdate-2018.11/.stamp_built] Error 2 make: Leaving directory '/home/rclinux/rc-buildroot-test/scripts/instance-0/buildroot'