Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [hak8or@archvm u-boot]$ yaourt -S dtc-git
- ==> Downloading dtc-git PKGBUILD from AUR...
- x .SRCINFO
- x PKGBUILD
- anatolik commented on 2014-11-11 01:44
- Is this package still makes sense? Are these patches still not in git?
- anatolik commented on 2014-11-11 01:45
- Is this package still makes sense? Are these patches still not in git?
- N3rdle commented on 2015-08-22 19:37
- is the dtc-patched package no more?
- i had to modify this PKGBUILD in the following way to compile device tree files on my BBB:
- --- PKGBUILD 2015-08-22 19:35:56.970179485 +0000
- +++ PKGBUILD.patched 2015-08-22 19:29:26.947460465 +0000
- @@ -4,7 +4,7 @@
- pkgrel=1
- pkgver=1.4.1.r16.ge5e6df7
- pkgdesc='Device Tree Compiler'
- -arch=(i686 x86_64)
- +arch=(armv7h i686 x86_64)
- license=(GPL2)
- makedepends=(git)
- conflicts=(dtc)
- @@ -21,6 +21,7 @@
- build() {
- cd dtc
- + git pull --no-edit https://github.com/pantoniou/dtc dt-overlays5
- make
- }
- swiftgeek commented on 2017-08-16 02:02
- Fails to build, log: http://dpaste.com/341QNY9.txt
- at least adding SETUP_PREFIX="$pkgdir/usr" to make install will be needed
- Nachoc commented on 2017-09-02 19:56
- Fixed PKGBUILD: https://pastebin.com/34NP0ZeZ
- dtc-git 1.4.1.r54.g1ed45d4-1 (2016-09-12 20:00)
- ( Unsupported package: Potentially dangerous ! )
- ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
- ==> ------------------------------------
- ==> n
- ==> dtc-git dependencies:
- - git (already installed) [makedepend]
- ==> Continue building dtc-git ? [Y/n]
- ==> ---------------------------------
- ==>
- ==> Building and installing package
- ==> Making package: dtc-git 1.4.1.r54.g1ed45d4-1 (Thu Oct 5 20:29:42 EDT 2017)
- ==> Checking runtime dependencies...
- ==> Checking buildtime dependencies...
- ==> Retrieving sources...
- -> Cloning dtc git repo...
- Cloning into bare repository '/tmp/yaourt-tmp-hak8or/aur-dtc-git/dtc'...
- remote: Counting objects: 3933, done.
- remote: Compressing objects: 100% (79/79), done.
- remote: Total 3933 (delta 32), reused 0 (delta 0)
- Receiving objects: 100% (3933/3933), 848.81 KiB | 8.01 MiB/s, done.
- Resolving deltas: 100% (2923/2923), done.
- ==> Validating source files with md5sums...
- dtc ... Skipped
- ==> Extracting sources...
- -> Creating working copy of dtc git repo...
- Cloning into 'dtc'...
- done.
- ==> Starting pkgver()...
- ==> Updated version: dtc-git 1.4.5.r4.g48c91c0-1
- ==> Starting build()...
- 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/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 convert-dtsv0-lexer.lex.c
- DEP srcpos.c
- BISON dtc-parser.tab.c
- dtc-parser.y: warning: 3 shift/reduce conflicts [-Wconflicts-sr]
- DEP dtc-parser.tab.c
- LEX dtc-lexer.lex.c
- DEP 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
- 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
- LD convert-dtsv0
- 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
- LD dtc
- CC fdtdump.o
- LD fdtdump
- 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
- AR libfdt/libfdt.a
- LD fdtget
- CC fdtput.o
- LD fdtput
- CC fdtoverlay.o
- LD fdtoverlay
- LD libfdt/libfdt-1.4.5.so
- CHK version_gen.h
- PYMOD pylibfdt/_libfdt.so
- 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 'gcc' failed with exit status 1
- make[1]: *** [pylibfdt/Makefile.pylibfdt:16: pylibfdt/_libfdt.so] Error 1
- make: *** [Makefile:132: maybe_pylibfdt] Error 2
- ==> ERROR: A failure occurred in build().
- Aborting...
- ==> ERROR: Makepkg was unable to build dtc-git.
- ==> Restart building dtc-git ? [y/N]
- ==> --------------------------------
- ==> n
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement