dumpelf.c:447:4: warning: this statement may fall through [-Wimplicit-fallthrough=] printf("\t */\n"); \ ^~~~~~~~~~~~~~~~~ dumpelf.c:466:2: note: in expansion of macro 'DUMP_SHDR' DUMP_SHDR(32) ^~~~~~~~~ dumpelf.c:449:3: note: here default: { \ ^ dumpelf.c:466:2: note: in expansion of macro 'DUMP_SHDR' DUMP_SHDR(32) ^~~~~~~~~ dumpelf.c:447:4: warning: this statement may fall through [-Wimplicit-fallthrough=] printf("\t */\n"); \ ^~~~~~~~~~~~~~~~~ dumpelf.c:467:2: note: in expansion of macro 'DUMP_SHDR' DUMP_SHDR(64) ^~~~~~~~~ dumpelf.c:449:3: note: here default: { \ ^ dumpelf.c:467:2: note: in expansion of macro 'DUMP_SHDR' DUMP_SHDR(64) ^~~~~~~~~ scanelf.c: In function 'scanelf_file_phdr': scanelf.c:489:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (offset >= elf->len - sizeof(NOTE_GNU_STACK)) \ ^ scanelf.c:73:4: note: in expansion of macro 'SHOW_PHDR' x(B); \ ^ scanelf.c:79:3: note: in expansion of macro '_SCANELF_IF_ELF_SIZE' _SCANELF_IF_ELF_SIZE(64, x); \ ^~~~~~~~~~~~~~~~~~~~ scanelf.c:515:2: note: in expansion of macro 'SCANELF_ELF_SIZED' SCANELF_ELF_SIZED(SHOW_PHDR); ^~~~~~~~~~~~~~~~~ paxelf.c: In function 'get_elfeitype': paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:71:27: note: called from here case EI_CLASS: return find_pairtype(elf_ei_class, type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:72:27: note: called from here case EI_DATA: return find_pairtype(elf_ei_data, type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:73:27: note: called from here case EI_VERSION: return find_pairtype(elf_ei_version, type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:74:27: note: called from here case EI_OSABI: return find_pairtype(elf_ei_osabi, type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxelf.c: In function 'get_elfetype': paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:99:9: note: called from here return find_pairtype(elf_etypes, get_etype(elf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxmacho.c: In function 'get_machomhtype': paxmacho.c:28:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxmacho.c:53:9: note: called from here return find_pairtype(macho_mh_type, MOBJGET(fobj, mhdr.hdr32->filetype)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC pspax.o CC scanmacho.o cp lddtree.sh lddtree paxmacho.c: In function 'get_machocputype': paxmacho.c:28:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxmacho.c:103:14: note: called from here const char *ret = find_pairtype(macho_cputype, MOBJGET(fobj, mhdr.hdr32->cputype)); ^~~ cp symtree.sh symtree paxmacho.c: In function 'get_machosubcputype': paxmacho.c:28:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxmacho.c:149:7: note: called from here ret = find_pairtype(pt, type); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ paxmacho.c: In function 'readmacho_buffer': paxmacho.c:160:24: warning: inlining failed in call to 'read_mach_header': call is unlikely and code size would grow [-Winline] inline static uint32_t read_mach_header(fatobj *fobj, void *addr) ^~~~~~~~~~~~~~~~ paxmacho.c:285:6: note: called from here read_mach_header(fobj, ret->data + offset) == 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxmacho.c:160:24: warning: inlining failed in call to 'read_mach_header': call is unlikely and code size would grow [-Winline] inline static uint32_t read_mach_header(fatobj *fobj, void *addr) ^~~~~~~~~~~~~~~~ paxmacho.c:302:5: note: called from here read_mach_header(ret, ret->data) == 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxelf.c: In function 'get_elfemtype': paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:292:9: note: called from here return find_pairtype(elf_emtypes, get_emtype(elf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxelf.c: In function 'get_elfptype': paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:313:9: note: called from here return find_pairtype(elf_ptypes, type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxelf.c: In function 'get_elfdtype': paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:384:9: note: called from here return find_pairtype(elf_dtypes, type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxelf.c: In function 'get_elfshttype': paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:420:9: note: called from here return find_pairtype(elf_shttypes, type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxelf.c: In function 'get_elfstttype': paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:437:9: note: called from here return find_pairtype(elf_stttypes, type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxelf.c: In function 'get_elfstbtype': paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:450:9: note: called from here return find_pairtype(elf_stbtypes, type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxelf.c: In function 'get_elfstvtype': paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:463:9: note: called from here return find_pairtype(elf_stvtypes, type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxelf.c: In function 'get_elfshntype': paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:480:9: note: called from here return find_pairtype(elf_shntypes, type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxelf.c: In function 'get_elfnttype': paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:540:11: note: called from here return find_pairtype(elf_nttypes_GNU, type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:546:10: note: called from here return find_pairtype(elf_nttypes_core, type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paxelf.c:22:27: warning: inlining failed in call to 'find_pairtype': call is unlikely and code size would grow [-Winline] static inline const char *find_pairtype(pairtype *pt, unsigned int type) ^~~~~~~~~~~~~ paxelf.c:548:10: note: called from here return find_pairtype(elf_nttypes_fallback, type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scanmacho.c: In function 'scanmacho_fatobj': scanmacho.c:297:43: warning: '%llu' directive output may be truncated writing between 1 and 10 bytes into a region of size 8 [-Wformat-truncation=] case 'Z': snprintf(ubuf, sizeof(ubuf), "%llu", (unsigned long long int)fobj->len); out = ubuf; break;; ^~~~ scanmacho.c:297:42: note: directive argument in the range [0, 4294967295] case 'Z': snprintf(ubuf, sizeof(ubuf), "%llu", (unsigned long long int)fobj->len); out = ubuf; break;; ^~~~~~ scanmacho.c:297:13: note: 'snprintf' output between 2 and 11 bytes into a destination of size 8 case 'Z': snprintf(ubuf, sizeof(ubuf), "%llu", (unsigned long long int)fobj->len); out = ubuf; break;; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CCLD libpaxutils.la CCLD scanmacho CCLD pspax CCLD dumpelf CCLD scanelf >>> pax-utils 1.2.2 Installing to target PATH="/home/peko/autobuild/instance-0/output/host/bin:/home/peko/autobuild/instance-0/output/host/sbin:/home/peko/host/usr/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/peko/.local/bin:/home/peko/bin" /usr/bin/make -j8 DESTDIR=/home/peko/autobuild/instance-0/output/target install -C /home/peko/autobuild/instance-0/output/build/pax-utils-1.2.2/ Making install in autotools/gnulib /usr/bin/make install-recursive make[6]: Nothing to be done for `install-exec-am'. make[6]: Nothing to be done for `install-data-am'. /usr/bin/mkdir -p '/home/peko/autobuild/instance-0/output/target/usr/bin' /usr/bin/mkdir -p '/home/peko/autobuild/instance-0/output/target/usr/bin' /usr/bin/mkdir -p '/home/peko/autobuild/instance-0/output/target/usr/share/man/man1' /usr/bin/install -c lddtree symtree '/home/peko/autobuild/instance-0/output/target/usr/bin' /bin/sh ./libtool --mode=install /usr/bin/install -c scanelf dumpelf pspax scanmacho '/home/peko/autobuild/instance-0/output/target/usr/bin' /usr/bin/install -c -m 644 man/dumpelf.1 man/pspax.1 man/scanelf.1 man/scanmacho.1 '/home/peko/autobuild/instance-0/output/target/usr/share/man/man1' libtool: install: /usr/bin/install -c scanelf /home/peko/autobuild/instance-0/output/target/usr/bin/scanelf libtool: install: /usr/bin/install -c dumpelf /home/peko/autobuild/instance-0/output/target/usr/bin/dumpelf libtool: install: /usr/bin/install -c pspax /home/peko/autobuild/instance-0/output/target/usr/bin/pspax libtool: install: /usr/bin/install -c scanmacho /home/peko/autobuild/instance-0/output/target/usr/bin/scanmacho rm -f /home/peko/autobuild/instance-0/output/target/usr/bin/{lddtree,symtree} PATH="/home/peko/autobuild/instance-0/output/host/bin:/home/peko/autobuild/instance-0/output/host/sbin:/home/peko/host/usr/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/peko/.local/bin:/home/peko/bin" BR2_DL_DIR=/home/peko/autobuild/instance-0/dl BUILD_DIR=/home/peko/autobuild/instance-0/output/build O=/home/peko/autobuild/instance-0/output flock /home/peko/autobuild/instance-0/dl/dtc/ support/download/dl-wrapper -c '1.4.7' -d '/home/peko/autobuild/instance-0/dl/dtc' -D '/home/peko/autobuild/instance-0/dl' -f 'dtc-1.4.7.tar.xz' -H 'package/dtc//dtc.hash' -n 'dtc-1.4.7' -N 'dtc' -o '/home/peko/autobuild/instance-0/dl/dtc/dtc-1.4.7.tar.xz' -u https+https://www.kernel.org/pub/software/utils/dtc -u http\|urlencode+http://sources.buildroot.net/dtc -u http\|urlencode+http://sources.buildroot.net -- dtc-1.4.7.tar.xz: OK (sha256: 6643e8f00ff86350f465bb54b2185058b5b1b7bac01a0842c81a52b86589cde7) >>> host-dtc 1.4.7 Extracting xzcat /home/peko/autobuild/instance-0/dl/dtc/dtc-1.4.7.tar.xz | /home/peko/autobuild/instance-0/output/host/bin/tar --strip-components=1 -C /home/peko/autobuild/instance-0/output/build/host-dtc-1.4.7 -xf - >>> host-dtc 1.4.7 Patching >>> host-dtc 1.4.7 Configuring >>> host-dtc 1.4.7 Building PATH="/home/peko/autobuild/instance-0/output/host/bin:/home/peko/autobuild/instance-0/output/host/sbin:/home/peko/host/usr/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/peko/.local/bin:/home/peko/bin" PKG_CONFIG="/home/peko/autobuild/instance-0/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/peko/autobuild/instance-0/output/host/lib/pkgconfig:/home/peko/autobuild/instance-0/output/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/home/peko/autobuild/instance-0/output/host/include" CFLAGS="-O2 -I/home/peko/autobuild/instance-0/output/host/include" CXXFLAGS="-O2 -I/home/peko/autobuild/instance-0/output/host/include" LDFLAGS="-L/home/peko/autobuild/instance-0/output/host/lib -Wl,-rpath,/home/peko/autobuild/instance-0/output/host/lib" INTLTOOL_PERL=/usr/bin/perl /usr/bin/make -j8 CFLAGS="-O2 -I/home/peko/autobuild/instance-0/output/host/include -fPIC" -C /home/peko/autobuild/instance-0/output/build/host-dtc-1.4.7 PREFIX=/home/peko/autobuild/instance-0/output/host DEP tests/trees.S DEP tests/dumptrees.c DEP tests/testutils.c DEP tests/value-labels.c DEP tests/asm_tree_dump.c DEP tests/truncated_memrsv.c DEP tests/truncated_string.c DEP tests/truncated_property.c DEP tests/check_full.c DEP tests/check_header.c DEP tests/check_path.c DEP tests/overlay_bad_fixup.c DEP tests/overlay.c DEP tests/subnode_iterate.c DEP tests/property_iterate.c DEP tests/integer-expressions.c DEP tests/utilfdt_test.c DEP tests/path_offset_aliases.c DEP tests/add_subnode_with_nops.c DEP tests/dtbs_equal_unordered.c DEP tests/dtb_reverse.c DEP tests/dtbs_equal_ordered.c DEP tests/extra-terminating-null.c DEP tests/incbin.c DEP tests/boot-cpuid.c DEP tests/phandle_format.c DEP tests/path-references.c DEP tests/references.c DEP tests/string_escapes.c DEP tests/propname_escapes.c DEP tests/appendprop2.c DEP tests/appendprop1.c DEP tests/del_node.c DEP tests/del_property.c DEP tests/setprop.c DEP tests/set_name.c DEP tests/rw_tree1.c DEP tests/open_pack.c DEP tests/nopulate.c DEP tests/mangle-layout.c DEP tests/move_and_save.c DEP tests/sw_states.c DEP tests/sw_tree1.c DEP tests/nop_node.c DEP tests/nop_property.c DEP tests/setprop_inplace.c DEP tests/stringlist.c DEP tests/addr_size_cells2.c DEP tests/addr_size_cells.c DEP tests/notfound.c DEP tests/sized_cells.c DEP tests/char_literal.c DEP tests/get_alias.c DEP tests/node_offset_by_compatible.c DEP tests/node_check_compatible.c DEP tests/node_offset_by_phandle.c DEP tests/node_offset_by_prop_value.c DEP tests/parent_offset.c DEP tests/supernode_atdepth_offset.c DEP tests/get_path.c DEP tests/get_phandle.c DEP tests/getprop.c DEP tests/get_name.c DEP tests/path_offset.c DEP tests/subnode_offset.c DEP tests/find_property.c DEP tests/root_node.c DEP tests/get_mem_rsv.c DEP libfdt/fdt_overlay.c DEP libfdt/fdt_addresses.c DEP libfdt/fdt_empty_tree.c DEP libfdt/fdt_strerror.c DEP libfdt/fdt_rw.c DEP libfdt/fdt_sw.c DEP libfdt/fdt_wip.c DEP libfdt/fdt_ro.c DEP libfdt/fdt.c DEP util.c DEP fdtoverlay.c DEP fdtput.c DEP fdtget.c DEP fdtdump.c LEX convert-dtsv0-lexer.lex.c DEP srcpos.c BISON dtc-parser.tab.c LEX dtc-lexer.lex.c DEP treesource.c DEP livetree.c DEP fstree.c DEP flattree.c DEP dtc.c DEP data.c DEP checks.c DEP convert-dtsv0-lexer.lex.c DEP dtc-parser.tab.c DEP dtc-lexer.lex.c CHK version_gen.h UPD version_gen.h DEP util.c CHK version_gen.h CC srcpos.o CC util.o CC convert-dtsv0-lexer.lex.o CC dtc.o CC checks.o CC data.o CC flattree.o CC fstree.o CC livetree.o CC treesource.o CC dtc-lexer.lex.o CC dtc-parser.tab.o CC fdtdump.o CC fdtget.o CC libfdt/fdt.o CC libfdt/fdt_ro.o CC libfdt/fdt_wip.o CC libfdt/fdt_sw.o CC libfdt/fdt_rw.o CC libfdt/fdt_strerror.o CC libfdt/fdt_empty_tree.o CC libfdt/fdt_addresses.o CC libfdt/fdt_overlay.o CC fdtput.o CC fdtoverlay.o LD convert-dtsv0 make[3]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. LD dtc CHK version_gen.h PYMOD pylibfdt/_libfdt.so LD fdtdump LD libfdt/libfdt-1.4.7.so AR libfdt/libfdt.a LD fdtput LD fdtget LD fdtoverlay >>> host-dtc 1.4.7 Installing to host directory PATH="/home/peko/autobuild/instance-0/output/host/bin:/home/peko/autobuild/instance-0/output/host/sbin:/home/peko/host/usr/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/peko/.local/bin:/home/peko/bin" PKG_CONFIG="/home/peko/autobuild/instance-0/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/peko/autobuild/instance-0/output/host/lib/pkgconfig:/home/peko/autobuild/instance-0/output/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/home/peko/autobuild/instance-0/output/host/include" CFLAGS="-O2 -I/home/peko/autobuild/instance-0/output/host/include" CXXFLAGS="-O2 -I/home/peko/autobuild/instance-0/output/host/include" LDFLAGS="-L/home/peko/autobuild/instance-0/output/host/lib -Wl,-rpath,/home/peko/autobuild/instance-0/output/host/lib" INTLTOOL_PERL=/usr/bin/perl /usr/bin/make -j8 -C /home/peko/autobuild/instance-0/output/build/host-dtc-1.4.7 PREFIX=/home/peko/autobuild/instance-0/output/host install CHK version_gen.h INSTALL-INC make[3]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. make[3]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. CHK version_gen.h CHK version_gen.h INSTALL-LIB INSTALL-BIN INSTALL-PYLIB pylibfdt/libfdt_wrap.c: In function 'SWIG_Python_NewShadowInstance': pylibfdt/libfdt_wrap.c:2483:65: error: declaration of 'swig_this' shadows a global declaration [-Werror=shadow] SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) ^ pylibfdt/libfdt_wrap.c:2224:18: error: shadowed declaration is here [-Werror=shadow] static PyObject *swig_this = NULL; ^ pylibfdt/libfdt_wrap.c: In function 'SWIG_Python_SetSwigThis': pylibfdt/libfdt_wrap.c:2558:51: error: declaration of 'swig_this' shadows a global declaration [-Werror=shadow] SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) ^ pylibfdt/libfdt_wrap.c:2224:18: error: shadowed declaration is here [-Werror=shadow] static PyObject *swig_this = NULL; ^ pylibfdt/libfdt_wrap.c: In function 'SWIG_FromCharPtrAndSize': pylibfdt/libfdt_wrap.c:3371:29: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] SWIG_InternalNewPointerObj((char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void(); ^ pylibfdt/libfdt_wrap.c:1166:86: note: in definition of macro 'SWIG_InternalNewPointerObj' #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) ^ pylibfdt/libfdt_wrap.c: In function '_wrap_new_fdt_header': pylibfdt/libfdt_wrap.c:3027:28: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] #define SWIG_as_voidptr(a) (void *)((const void *)(a)) ^ pylibfdt/libfdt_wrap.c:1163:89: note: in definition of macro 'SWIG_NewPointerObj' #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) ^ pylibfdt/libfdt_wrap.c:4111:34: note: in expansion of macro 'SWIG_as_voidptr' resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_fdt_header, SWIG_POINTER_NEW | 0 ); ^ pylibfdt/libfdt_wrap.c: In function '_wrap_new_fdt_reserve_entry': pylibfdt/libfdt_wrap.c:3027:28: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] #define SWIG_as_voidptr(a) (void *)((const void *)(a)) ^ pylibfdt/libfdt_wrap.c:1163:89: note: in definition of macro 'SWIG_NewPointerObj' #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) ^ pylibfdt/libfdt_wrap.c:4268:34: note: in expansion of macro 'SWIG_as_voidptr' resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_fdt_reserve_entry, SWIG_POINTER_NEW | 0 ); ^ pylibfdt/libfdt_wrap.c: In function '_wrap_new_fdt_node_header': pylibfdt/libfdt_wrap.c:3027:28: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] #define SWIG_as_voidptr(a) (void *)((const void *)(a)) ^ pylibfdt/libfdt_wrap.c:1163:89: note: in definition of macro 'SWIG_NewPointerObj' #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) ^ pylibfdt/libfdt_wrap.c:4420:34: note: in expansion of macro 'SWIG_as_voidptr' resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_fdt_node_header, SWIG_POINTER_NEW | 0 ); ^ pylibfdt/libfdt_wrap.c: In function '_wrap_new_fdt_property': pylibfdt/libfdt_wrap.c:3027:28: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] #define SWIG_as_voidptr(a) (void *)((const void *)(a)) ^ pylibfdt/libfdt_wrap.c:1163:89: note: in definition of macro 'SWIG_NewPointerObj' #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) ^ pylibfdt/libfdt_wrap.c:4676:34: note: in expansion of macro 'SWIG_as_voidptr' resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_fdt_property, SWIG_POINTER_NEW | 0 ); ^ pylibfdt/libfdt_wrap.c: In function '_wrap_fdt_offset_ptr_w': pylibfdt/libfdt_wrap.c:3027:28: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] #define SWIG_as_voidptr(a) (void *)((const void *)(a)) ^ pylibfdt/libfdt_wrap.c:1163:89: note: in definition of macro 'SWIG_NewPointerObj' #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) ^ pylibfdt/libfdt_wrap.c:5150:34: note: in expansion of macro 'SWIG_as_voidptr' resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); ^ pylibfdt/libfdt_wrap.c: In function '_wrap_fdt_get_string': pylibfdt/libfdt_wrap.c:5869:12: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] result = (char *)fdt_get_string((void const *)arg1,arg2,arg3); ^ pylibfdt/libfdt_wrap.c: In function '_wrap_fdt_string': pylibfdt/libfdt_wrap.c:5909:12: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] result = (char *)fdt_string((void const *)arg1,arg2); ^ pylibfdt/libfdt_wrap.c: In function '_wrap_fdt_get_name': pylibfdt/libfdt_wrap.c:6142:12: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] result = (char *)fdt_get_name((void const *)arg1,arg2,arg3); ^ pylibfdt/libfdt_wrap.c: In function '_wrap_fdt_get_property_by_offset': pylibfdt/libfdt_wrap.c:6254:12: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] result = (struct fdt_property *)fdt_get_property_by_offset((void const *)arg1,arg2,arg3); ^ pylibfdt/libfdt_wrap.c: In function '_wrap_fdt_get_property': pylibfdt/libfdt_wrap.c:6318:12: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] result = (struct fdt_property *)fdt_get_property((void const *)arg1,arg2,(char const *)arg3,arg4); ^ pylibfdt/libfdt_wrap.c: In function '_wrap_fdt_getprop': pylibfdt/libfdt_wrap.c:6450:12: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] result = (void *)fdt_getprop((void const *)arg1,arg2,(char const *)arg3,arg4); ^ pylibfdt/libfdt_wrap.c: In function '_wrap_fdt_getprop_w': pylibfdt/libfdt_wrap.c:3027:28: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] #define SWIG_as_voidptr(a) (void *)((const void *)(a)) ^ pylibfdt/libfdt_wrap.c:1163:89: note: in definition of macro 'SWIG_NewPointerObj' #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) ^ pylibfdt/libfdt_wrap.c:6512:34: note: in expansion of macro 'SWIG_as_voidptr' resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); ^ pylibfdt/libfdt_wrap.c: In function '_wrap_fdt_get_alias': pylibfdt/libfdt_wrap.c:6588:12: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] result = (char *)fdt_get_alias((void const *)arg1,(char const *)arg2); ^ pylibfdt/libfdt_wrap.c: In function '_wrap_fdt_stringlist_get': pylibfdt/libfdt_wrap.c:7165:12: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] result = (char *)fdt_stringlist_get((void const *)arg1,arg2,(char const *)arg3,arg4,arg5); ^ pylibfdt/libfdt_wrap.c: In function '_wrap_fdt_strerror': pylibfdt/libfdt_wrap.c:8763:12: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] result = (char *)fdt_strerror(arg1); ^ pylibfdt/libfdt_wrap.c: At top level: pylibfdt/libfdt_wrap.c:3018:24: error: no previous prototype for 'init_libfdt' [-Werror=missing-prototypes] # define SWIG_init init_libfdt ^ pylibfdt/libfdt_wrap.c:9569:1: note: in expansion of macro 'SWIG_init' SWIG_init(void) { ^ cc1: all warnings being treated as errors error: command '/usr/bin/gcc' failed with exit status 1 make[3]: *** [install_pylibfdt] Error 1 make[2]: *** [maybe_install_pylibfdt] Error 2 make[1]: *** [/home/peko/autobuild/instance-0/output/build/host-dtc-1.4.7/.stamp_host_installed] Error 2 make: *** [_all] Error 2 make: Leaving directory `/home/peko/autobuild/instance-0/buildroot'