* dtc: build errors with swig
@ 2017-09-28 22:28 Héctor Orón Martínez
[not found] ` <CAODfWeERM-HwcdmsZi+Afo2i5M54rnQk8vRJ_3nOSsC5H0qhYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Héctor Orón Martínez @ 2017-09-28 22:28 UTC (permalink / raw)
To: sjg-F7+t8E8rja9g9hUCZPvPmw; +Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 467 bytes --]
Hello,
I have attempted to build python library for device tree compiler,
however I ran out into build issues with swig components due to -Wall.
I have tried to look for a bug tracking system to report it, but I
have been unable to find one.
Find log attached with build issues in Debian/unstable build.
P.S./ I am not in the mailing list, please keep me on CC
Regards,
--
Héctor Orón -.. . -... .. .- -. -.. . ...- . .-.. --- .--. . .-.
[-- Attachment #2: device-tree-compiler_v1.4.5.build.fail.txt --]
[-- Type: text/plain, Size: 14794 bytes --]
dpkg-buildpackage -rfakeroot -us -uc -i -I
dpkg-buildpackage: info: paquet font device-tree-compiler
dpkg-buildpackage: info: versió del font 1.4.5-1
dpkg-buildpackage: info: distribució del font unstable
dpkg-buildpackage: info: font canviat per Héctor Orón Martínez <zumbi@debian.org>
dpkg-source -i -I --before-build device-tree-compiler
dpkg-buildpackage: info: arquitectura de l'amfitrió amd64
fakeroot debian/rules clean
dh clean
debian/rules override_dh_auto_clean
make[1]: Entering directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
dh_auto_clean
make -j4 clean
make[2]: Entering directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
CLEAN (pylibfdt)
CLEAN (tests)
CLEAN (libfdt)
CLEAN
make[2]: Leaving directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
[ ! -f Documentation/Makefile ] || /usr/bin/make -C Documentation clean
make[2]: Entering directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler/Documentation'
rm -f *.aux *.log *.dvi *.ps *.pdf dtc-manual.txt
make[2]: Leaving directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler/Documentation'
[ ! -d build ] || rm -rf build
make[1]: Leaving directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
dh_autoreconf_clean
dh_clean
dpkg-source -i -I -b device-tree-compiler
dpkg-source: info: s'està emprant el format de font «3.0 (quilt)»
dpkg-source: info: s'està construint device-tree-compiler emprant ./device-tree-compiler_1.4.5.orig.tar.gz existent
dpkg-source: info: s'està construint device-tree-compiler a device-tree-compiler_1.4.5-1.debian.tar.xz
dpkg-source: info: s'està construint device-tree-compiler a device-tree-compiler_1.4.5-1.dsc
debian/rules build
dh build
dh_update_autotools_config
dh_autoreconf
dh_auto_configure
debian/rules override_dh_auto_build
make[1]: Entering directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
dh_auto_build
make -j4
make[2]: Entering directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
DEP tests/dumptrees.c
DEP tests/trees.S
DEP tests/testutils.c
DEP tests/value-labels.c
DEP tests/asm_tree_dump.c
DEP tests/truncated_property.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_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_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/get_path.c
DEP tests/supernode_atdepth_offset.c
DEP tests/get_phandle.c
DEP tests/get_name.c
DEP tests/getprop.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.c
DEP libfdt/fdt_ro.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_sw.o
CC libfdt/fdt_wip.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]: Entering directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
LD dtc
CHK version_gen.h
PYMOD pylibfdt/_libfdt.so
LD fdtdump
AR libfdt/libfdt.a
LD libfdt/libfdt-1.4.5.so
LD fdtget
LD fdtput
LD fdtoverlay
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: note: shadowed declaration is here
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: note: shadowed declaration is here
static PyObject *swig_this = NULL;
^~~~~~~~~
pylibfdt/libfdt_wrap.c: In function ‘SWIG_FromCharPtrAndSize’:
pylibfdt/libfdt_wrap.c:3354:29: error: cast discards ‘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 ‘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:4041: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 ‘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:4198: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 ‘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:4350: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 ‘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:4606: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 ‘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:4927: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_string’:
pylibfdt/libfdt_wrap.c:5515:12: error: cast discards ‘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:5738:12: error: cast discards ‘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:5850:12: error: cast discards ‘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:5914:12: error: cast discards ‘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:6046:12: error: cast discards ‘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 ‘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:6108: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:6184:12: error: cast discards ‘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:6761:12: error: cast discards ‘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:8451:12: error: cast discards ‘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:9249:1: note: in expansion of macro ‘SWIG_init’
SWIG_init(void) {
^~~~~~~~~
cc1: all warnings being treated as errors
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
pylibfdt/Makefile.pylibfdt:15: recipe for target 'pylibfdt/_libfdt.so' failed
make[3]: *** [pylibfdt/_libfdt.so] Error 1
make[3]: Leaving directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
Makefile:132: recipe for target 'maybe_pylibfdt' failed
make[2]: *** [maybe_pylibfdt] Error 2
make[2]: Leaving directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
dh_auto_build: make -j4 returned exit code 2
debian/rules:27: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
debian/rules:24: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build ha fallat amb el codi d'eixida d'error 2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dtc: build errors with swig
[not found] ` <CAODfWeERM-HwcdmsZi+Afo2i5M54rnQk8vRJ_3nOSsC5H0qhYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-09-29 0:34 ` David Gibson
[not found] ` <20170929003436.GA7712-K0bRW+63XPQe6aEkudXLsA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: David Gibson @ 2017-09-29 0:34 UTC (permalink / raw)
To: Héctor Orón Martínez
Cc: sjg-F7+t8E8rja9g9hUCZPvPmw,
devicetree-compiler-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 16521 bytes --]
On Fri, Sep 29, 2017 at 12:28:19AM +0200, Héctor Orón Martínez wrote:
> Hello,
>
> I have attempted to build python library for device tree compiler,
> however I ran out into build issues with swig components due to -Wall.
> I have tried to look for a bug tracking system to report it, but I
> have been unable to find one.
>
> Find log attached with build issues in Debian/unstable build.
>
> P.S./ I am not in the mailing list, please keep me on CC
Hrm, I haven't seen errors like that. What swig and compiler version
do you have?
>
> Regards,
> dpkg-buildpackage -rfakeroot -us -uc -i -I
> dpkg-buildpackage: info: paquet font device-tree-compiler
> dpkg-buildpackage: info: versió del font 1.4.5-1
> dpkg-buildpackage: info: distribució del font unstable
> dpkg-buildpackage: info: font canviat per Héctor Orón Martínez <zumbi-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
> dpkg-source -i -I --before-build device-tree-compiler
> dpkg-buildpackage: info: arquitectura de l'amfitrió amd64
> fakeroot debian/rules clean
> dh clean
> debian/rules override_dh_auto_clean
> make[1]: Entering directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
> dh_auto_clean
> make -j4 clean
> make[2]: Entering directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
> CLEAN (pylibfdt)
> CLEAN (tests)
> CLEAN (libfdt)
> CLEAN
> make[2]: Leaving directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
> [ ! -f Documentation/Makefile ] || /usr/bin/make -C Documentation clean
> make[2]: Entering directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler/Documentation'
> rm -f *.aux *.log *.dvi *.ps *.pdf dtc-manual.txt
> make[2]: Leaving directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler/Documentation'
> [ ! -d build ] || rm -rf build
> make[1]: Leaving directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
> dh_autoreconf_clean
> dh_clean
> dpkg-source -i -I -b device-tree-compiler
> dpkg-source: info: s'està emprant el format de font «3.0 (quilt)»
> dpkg-source: info: s'està construint device-tree-compiler emprant ./device-tree-compiler_1.4.5.orig.tar.gz existent
> dpkg-source: info: s'està construint device-tree-compiler a device-tree-compiler_1.4.5-1.debian.tar.xz
> dpkg-source: info: s'està construint device-tree-compiler a device-tree-compiler_1.4.5-1.dsc
> debian/rules build
> dh build
> dh_update_autotools_config
> dh_autoreconf
> dh_auto_configure
> debian/rules override_dh_auto_build
> make[1]: Entering directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
> dh_auto_build
> make -j4
> make[2]: Entering directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
> DEP tests/dumptrees.c
> DEP tests/trees.S
> DEP tests/testutils.c
> DEP tests/value-labels.c
> DEP tests/asm_tree_dump.c
> DEP tests/truncated_property.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_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_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/get_path.c
> DEP tests/supernode_atdepth_offset.c
> DEP tests/get_phandle.c
> DEP tests/get_name.c
> DEP tests/getprop.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.c
> DEP libfdt/fdt_ro.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_sw.o
> CC libfdt/fdt_wip.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]: Entering directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
> LD dtc
> CHK version_gen.h
> PYMOD pylibfdt/_libfdt.so
> LD fdtdump
> AR libfdt/libfdt.a
> LD libfdt/libfdt-1.4.5.so
> LD fdtget
> LD fdtput
> LD fdtoverlay
> 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: note: shadowed declaration is here
> 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: note: shadowed declaration is here
> static PyObject *swig_this = NULL;
> ^~~~~~~~~
> pylibfdt/libfdt_wrap.c: In function ‘SWIG_FromCharPtrAndSize’:
> pylibfdt/libfdt_wrap.c:3354:29: error: cast discards ‘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 ‘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:4041: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 ‘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:4198: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 ‘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:4350: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 ‘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:4606: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 ‘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:4927: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_string’:
> pylibfdt/libfdt_wrap.c:5515:12: error: cast discards ‘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:5738:12: error: cast discards ‘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:5850:12: error: cast discards ‘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:5914:12: error: cast discards ‘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:6046:12: error: cast discards ‘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 ‘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:6108: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:6184:12: error: cast discards ‘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:6761:12: error: cast discards ‘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:8451:12: error: cast discards ‘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:9249:1: note: in expansion of macro ‘SWIG_init’
> SWIG_init(void) {
> ^~~~~~~~~
> cc1: all warnings being treated as errors
> error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
> pylibfdt/Makefile.pylibfdt:15: recipe for target 'pylibfdt/_libfdt.so' failed
> make[3]: *** [pylibfdt/_libfdt.so] Error 1
> make[3]: Leaving directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
> Makefile:132: recipe for target 'maybe_pylibfdt' failed
> make[2]: *** [maybe_pylibfdt] Error 2
> make[2]: Leaving directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
> dh_auto_build: make -j4 returned exit code 2
> debian/rules:27: recipe for target 'override_dh_auto_build' failed
> make[1]: *** [override_dh_auto_build] Error 2
> make[1]: Leaving directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
> debian/rules:24: recipe for target 'build' failed
> make: *** [build] Error 2
> dpkg-buildpackage: error: debian/rules build ha fallat amb el codi d'eixida d'error 2
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dtc: build errors with swig
[not found] ` <20170929003436.GA7712-K0bRW+63XPQe6aEkudXLsA@public.gmane.org>
@ 2017-09-29 8:32 ` Héctor Orón Martínez
[not found] ` <CAODfWeHyJpGw_GxqA6F=w4Fc=1if9-HabUXmSNcbBRKcrk74Sg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Héctor Orón Martínez @ 2017-09-29 8:32 UTC (permalink / raw)
To: David Gibson
Cc: sjg-F7+t8E8rja9g9hUCZPvPmw,
devicetree-compiler-u79uwXL29TY76Z2rM5mHXA
Hello,
2017-09-29 2:34 GMT+02:00 David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>:
> On Fri, Sep 29, 2017 at 12:28:19AM +0200, Héctor Orón Martínez wrote:
> Hrm, I haven't seen errors like that. What swig and compiler version
> do you have?
GCC 7.2.0
Swig 3.0.12
>> 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: note: shadowed declaration is here
>> 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: note: shadowed declaration is here
>> static PyObject *swig_this = NULL;
>> ^~~~~~~~~
>> pylibfdt/libfdt_wrap.c: In function ‘SWIG_FromCharPtrAndSize’:
>> pylibfdt/libfdt_wrap.c:3354:29: error: cast discards ‘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 ‘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:4041: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 ‘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:4198: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 ‘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:4350: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 ‘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:4606: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 ‘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:4927: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_string’:
>> pylibfdt/libfdt_wrap.c:5515:12: error: cast discards ‘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:5738:12: error: cast discards ‘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:5850:12: error: cast discards ‘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:5914:12: error: cast discards ‘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:6046:12: error: cast discards ‘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 ‘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:6108: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:6184:12: error: cast discards ‘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:6761:12: error: cast discards ‘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:8451:12: error: cast discards ‘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:9249:1: note: in expansion of macro ‘SWIG_init’
>> SWIG_init(void) {
>> ^~~~~~~~~
>> cc1: all warnings being treated as errors
>> error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
>> pylibfdt/Makefile.pylibfdt:15: recipe for target 'pylibfdt/_libfdt.so' failed
>> make[3]: *** [pylibfdt/_libfdt.so] Error 1
>> make[3]: Leaving directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
>> Makefile:132: recipe for target 'maybe_pylibfdt' failed
>> make[2]: *** [maybe_pylibfdt] Error 2
>> make[2]: Leaving directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
>> dh_auto_build: make -j4 returned exit code 2
>> debian/rules:27: recipe for target 'override_dh_auto_build' failed
>> make[1]: *** [override_dh_auto_build] Error 2
>> make[1]: Leaving directory '/home/zumbi/SCM/GITAuth/Debian/device-tree-compiler'
Regards,
--
Héctor Orón -.. . -... .. .- -. -.. . ...- . .-.. --- .--. . .-.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dtc: build errors with swig
[not found] ` <CAODfWeHyJpGw_GxqA6F=w4Fc=1if9-HabUXmSNcbBRKcrk74Sg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-09-30 1:10 ` David Gibson
0 siblings, 0 replies; 4+ messages in thread
From: David Gibson @ 2017-09-30 1:10 UTC (permalink / raw)
To: Héctor Orón Martínez
Cc: sjg-F7+t8E8rja9g9hUCZPvPmw,
devicetree-compiler-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 873 bytes --]
On Fri, Sep 29, 2017 at 10:32:58AM +0200, Héctor Orón Martínez wrote:
> Hello,
>
> 2017-09-29 2:34 GMT+02:00 David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>:
> > On Fri, Sep 29, 2017 at 12:28:19AM +0200, Héctor Orón Martínez wrote:
>
> > Hrm, I haven't seen errors like that. What swig and compiler version
> > do you have?
>
> GCC 7.2.0
> Swig 3.0.12
Oh :/. I have very similar versions here:
swig-3.0.12-7.fc26.x86_64
gcc-7.2.1-2.fc26.x86_64
So, I'm a bit at a loss as to why youre seeing this. Just to be sure,
maybe "git ls-files -o | xargs rm" then make to ensure you're building
from a completely clean starting point?
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-09-30 1:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-28 22:28 dtc: build errors with swig Héctor Orón Martínez
[not found] ` <CAODfWeERM-HwcdmsZi+Afo2i5M54rnQk8vRJ_3nOSsC5H0qhYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-09-29 0:34 ` David Gibson
[not found] ` <20170929003436.GA7712-K0bRW+63XPQe6aEkudXLsA@public.gmane.org>
2017-09-29 8:32 ` Héctor Orón Martínez
[not found] ` <CAODfWeHyJpGw_GxqA6F=w4Fc=1if9-HabUXmSNcbBRKcrk74Sg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-09-30 1:10 ` David Gibson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).