SHARE
TWEET

Untitled

hak8or Oct 5th, 2017 (edited) 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [hak8or@archvm u-boot]$ yaourt -S dtc-git
  2. ==> Downloading dtc-git PKGBUILD from AUR...
  3. x .SRCINFO
  4. x PKGBUILD
  5. anatolik commented on 2014-11-11 01:44                  
  6. Is this package still makes sense? Are these patches still not in git?
  7.  
  8. anatolik commented on 2014-11-11 01:45                  
  9. Is this package still makes sense? Are these patches still not in git?
  10.  
  11. N3rdle commented on 2015-08-22 19:37                    
  12. is the dtc-patched package no more?
  13.  
  14. i had to modify this PKGBUILD in the following way to compile device tree files on my BBB:
  15.  
  16. --- PKGBUILD    2015-08-22 19:35:56.970179485 +0000
  17. +++ PKGBUILD.patched    2015-08-22 19:29:26.947460465 +0000
  18. @@ -4,7 +4,7 @@
  19. pkgrel=1
  20. pkgver=1.4.1.r16.ge5e6df7
  21. pkgdesc='Device Tree Compiler'
  22. -arch=(i686 x86_64)
  23. +arch=(armv7h i686 x86_64)
  24. license=(GPL2)
  25. makedepends=(git)
  26. conflicts=(dtc)
  27. @@ -21,6 +21,7 @@
  28.  
  29. build() {
  30. cd dtc
  31. +  git pull --no-edit https://github.com/pantoniou/dtc dt-overlays5
  32. make
  33. }
  34.  
  35.  
  36. swiftgeek commented on 2017-08-16 02:02                  
  37. Fails to build, log: http://dpaste.com/341QNY9.txt
  38. at least adding SETUP_PREFIX="$pkgdir/usr" to make install will be needed
  39.  
  40. Nachoc commented on 2017-09-02 19:56                    
  41. Fixed PKGBUILD: https://pastebin.com/34NP0ZeZ
  42.  
  43. dtc-git 1.4.1.r54.g1ed45d4-1  (2016-09-12 20:00)
  44. ( Unsupported package: Potentially dangerous ! )
  45. ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
  46. ==> ------------------------------------
  47. ==> n
  48.  
  49. ==> dtc-git dependencies:
  50.  - git (already installed) [makedepend]
  51.  
  52.  
  53. ==> Continue building dtc-git ? [Y/n]
  54. ==> ---------------------------------
  55. ==>
  56.  
  57. ==> Building and installing package
  58. ==> Making package: dtc-git 1.4.1.r54.g1ed45d4-1 (Thu Oct  5 20:29:42 EDT 2017)
  59. ==> Checking runtime dependencies...
  60. ==> Checking buildtime dependencies...
  61. ==> Retrieving sources...
  62.   -> Cloning dtc git repo...
  63. Cloning into bare repository '/tmp/yaourt-tmp-hak8or/aur-dtc-git/dtc'...
  64. remote: Counting objects: 3933, done.
  65. remote: Compressing objects: 100% (79/79), done.
  66. remote: Total 3933 (delta 32), reused 0 (delta 0)
  67. Receiving objects: 100% (3933/3933), 848.81 KiB | 8.01 MiB/s, done.
  68. Resolving deltas: 100% (2923/2923), done.
  69. ==> Validating source files with md5sums...
  70.     dtc ... Skipped
  71. ==> Extracting sources...
  72.   -> Creating working copy of dtc git repo...
  73. Cloning into 'dtc'...
  74. done.
  75. ==> Starting pkgver()...
  76. ==> Updated version: dtc-git 1.4.5.r4.g48c91c0-1
  77. ==> Starting build()...
  78.          DEP tests/dumptrees.c
  79.          DEP tests/trees.S
  80.          DEP tests/testutils.c
  81.          DEP tests/value-labels.c
  82.          DEP tests/asm_tree_dump.c
  83.          DEP tests/truncated_property.c
  84.          DEP tests/check_path.c
  85.          DEP tests/overlay_bad_fixup.c
  86.          DEP tests/overlay.c
  87.          DEP tests/subnode_iterate.c
  88.          DEP tests/property_iterate.c
  89.          DEP tests/integer-expressions.c
  90.          DEP tests/utilfdt_test.c
  91.          DEP tests/path_offset_aliases.c
  92.          DEP tests/add_subnode_with_nops.c
  93.          DEP tests/dtbs_equal_unordered.c
  94.          DEP tests/dtb_reverse.c
  95.          DEP tests/dtbs_equal_ordered.c
  96.          DEP tests/extra-terminating-null.c
  97.          DEP tests/incbin.c
  98.          DEP tests/boot-cpuid.c
  99.          DEP tests/phandle_format.c
  100.          DEP tests/path-references.c
  101.          DEP tests/references.c
  102.          DEP tests/string_escapes.c
  103.          DEP tests/propname_escapes.c
  104.          DEP tests/appendprop2.c
  105.          DEP tests/appendprop1.c
  106.          DEP tests/del_node.c
  107.          DEP tests/del_property.c
  108.          DEP tests/setprop.c
  109.          DEP tests/set_name.c
  110.          DEP tests/rw_tree1.c
  111.          DEP tests/open_pack.c
  112.          DEP tests/nopulate.c
  113.          DEP tests/mangle-layout.c
  114.          DEP tests/move_and_save.c
  115.          DEP tests/sw_tree1.c
  116.          DEP tests/nop_node.c
  117.          DEP tests/nop_property.c
  118.          DEP tests/setprop_inplace.c
  119.          DEP tests/stringlist.c
  120.          DEP tests/addr_size_cells.c
  121.          DEP tests/notfound.c
  122.          DEP tests/sized_cells.c
  123.          DEP tests/char_literal.c
  124.          DEP tests/get_alias.c
  125.          DEP tests/node_offset_by_compatible.c
  126.          DEP tests/node_check_compatible.c
  127.          DEP tests/node_offset_by_phandle.c
  128.          DEP tests/node_offset_by_prop_value.c
  129.          DEP tests/parent_offset.c
  130.          DEP tests/supernode_atdepth_offset.c
  131.          DEP tests/get_path.c
  132.          DEP tests/get_phandle.c
  133.          DEP tests/getprop.c
  134.          DEP tests/get_name.c
  135.          DEP tests/path_offset.c
  136.          DEP tests/subnode_offset.c
  137.          DEP tests/find_property.c
  138.          DEP tests/root_node.c
  139.          DEP tests/get_mem_rsv.c
  140.          DEP libfdt/fdt_overlay.c
  141.          DEP libfdt/fdt_addresses.c
  142.          DEP libfdt/fdt_empty_tree.c
  143.          DEP libfdt/fdt_strerror.c
  144.          DEP libfdt/fdt_rw.c
  145.          DEP libfdt/fdt_sw.c
  146.          DEP libfdt/fdt_wip.c
  147.          DEP libfdt/fdt_ro.c
  148.          DEP libfdt/fdt.c
  149.          DEP util.c
  150.          DEP fdtoverlay.c
  151.          DEP fdtput.c
  152.          DEP fdtget.c
  153.          DEP fdtdump.c
  154.          LEX convert-dtsv0-lexer.lex.c
  155.          DEP convert-dtsv0-lexer.lex.c
  156.          DEP srcpos.c
  157.          BISON dtc-parser.tab.c
  158. dtc-parser.y: warning: 3 shift/reduce conflicts [-Wconflicts-sr]
  159.          DEP dtc-parser.tab.c
  160.          LEX dtc-lexer.lex.c
  161.          DEP dtc-lexer.lex.c
  162.          DEP treesource.c
  163.          DEP livetree.c
  164.          DEP fstree.c
  165.          DEP flattree.c
  166.          DEP dtc.c
  167.          DEP data.c
  168.          DEP checks.c
  169.         CHK version_gen.h
  170.         UPD version_gen.h
  171.          DEP util.c
  172.         CHK version_gen.h
  173.          CC srcpos.o
  174.          CC util.o
  175.          CC convert-dtsv0-lexer.lex.o
  176.          LD convert-dtsv0
  177.          CC dtc.o
  178.          CC checks.o
  179.          CC data.o
  180.          CC flattree.o
  181.          CC fstree.o
  182.          CC livetree.o
  183.          CC treesource.o
  184.          CC dtc-lexer.lex.o
  185.          CC dtc-parser.tab.o
  186.          LD dtc
  187.          CC fdtdump.o
  188.          LD fdtdump
  189.          CC fdtget.o
  190.          CC libfdt/fdt.o
  191.          CC libfdt/fdt_ro.o
  192.          CC libfdt/fdt_wip.o
  193.          CC libfdt/fdt_sw.o
  194.          CC libfdt/fdt_rw.o
  195.          CC libfdt/fdt_strerror.o
  196.          CC libfdt/fdt_empty_tree.o
  197.          CC libfdt/fdt_addresses.o
  198.          CC libfdt/fdt_overlay.o
  199.          AR libfdt/libfdt.a
  200.          LD fdtget
  201.          CC fdtput.o
  202.          LD fdtput
  203.          CC fdtoverlay.o
  204.          LD fdtoverlay
  205.          LD libfdt/libfdt-1.4.5.so
  206.         CHK version_gen.h
  207.          PYMOD pylibfdt/_libfdt.so
  208. pylibfdt/libfdt_wrap.c: In function ‘SWIG_Python_NewShadowInstance’:
  209. pylibfdt/libfdt_wrap.c:2483:65: error: declaration of ‘swig_this’ shadows a global declaration [-Werror=shadow]
  210.  SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
  211.                                                                  ^~~~~~~~~
  212. pylibfdt/libfdt_wrap.c:2224:18: note: shadowed declaration is here
  213.  static PyObject *swig_this = NULL;
  214.                   ^~~~~~~~~
  215. pylibfdt/libfdt_wrap.c: In function ‘SWIG_Python_SetSwigThis’:
  216. pylibfdt/libfdt_wrap.c:2558:51: error: declaration of ‘swig_this’ shadows a global declaration [-Werror=shadow]
  217.  SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
  218.                                                    ^~~~~~~~~
  219. pylibfdt/libfdt_wrap.c:2224:18: note: shadowed declaration is here
  220.  static PyObject *swig_this = NULL;
  221.                   ^~~~~~~~~
  222. pylibfdt/libfdt_wrap.c: In function ‘SWIG_FromCharPtrAndSize’:
  223. pylibfdt/libfdt_wrap.c:3354:29: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
  224.   SWIG_InternalNewPointerObj((char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void();
  225.                              ^
  226. pylibfdt/libfdt_wrap.c:1166:86: note: in definition of macro ‘SWIG_InternalNewPointerObj’
  227.  #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
  228.                                                                                       ^~~
  229. pylibfdt/libfdt_wrap.c: In function ‘_wrap_new_fdt_header’:
  230. pylibfdt/libfdt_wrap.c:3027:28: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
  231.  #define SWIG_as_voidptr(a) (void *)((const void *)(a))
  232.                             ^
  233. pylibfdt/libfdt_wrap.c:1163:89: note: in definition of macro ‘SWIG_NewPointerObj’
  234.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
  235.                                                                                          ^~~
  236. pylibfdt/libfdt_wrap.c:4041:34: note: in expansion of macro ‘SWIG_as_voidptr’
  237.    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_fdt_header, SWIG_POINTER_NEW |  0 );
  238.                                   ^~~~~~~~~~~~~~~
  239. pylibfdt/libfdt_wrap.c: In function ‘_wrap_new_fdt_reserve_entry’:
  240. pylibfdt/libfdt_wrap.c:3027:28: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
  241.  #define SWIG_as_voidptr(a) (void *)((const void *)(a))
  242.                             ^
  243. pylibfdt/libfdt_wrap.c:1163:89: note: in definition of macro ‘SWIG_NewPointerObj’
  244.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
  245.                                                                                          ^~~
  246. pylibfdt/libfdt_wrap.c:4198:34: note: in expansion of macro ‘SWIG_as_voidptr’
  247.    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_fdt_reserve_entry, SWIG_POINTER_NEW |  0 );
  248.                                   ^~~~~~~~~~~~~~~
  249. pylibfdt/libfdt_wrap.c: In function ‘_wrap_new_fdt_node_header’:
  250. pylibfdt/libfdt_wrap.c:3027:28: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
  251.  #define SWIG_as_voidptr(a) (void *)((const void *)(a))
  252.                             ^
  253. pylibfdt/libfdt_wrap.c:1163:89: note: in definition of macro ‘SWIG_NewPointerObj’
  254.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
  255.                                                                                          ^~~
  256. pylibfdt/libfdt_wrap.c:4350:34: note: in expansion of macro ‘SWIG_as_voidptr’
  257.    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_fdt_node_header, SWIG_POINTER_NEW |  0 );
  258.                                   ^~~~~~~~~~~~~~~
  259. pylibfdt/libfdt_wrap.c: In function ‘_wrap_new_fdt_property’:
  260. pylibfdt/libfdt_wrap.c:3027:28: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
  261.  #define SWIG_as_voidptr(a) (void *)((const void *)(a))
  262.                             ^
  263. pylibfdt/libfdt_wrap.c:1163:89: note: in definition of macro ‘SWIG_NewPointerObj’
  264.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
  265.                                                                                          ^~~
  266. pylibfdt/libfdt_wrap.c:4606:34: note: in expansion of macro ‘SWIG_as_voidptr’
  267.    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_fdt_property, SWIG_POINTER_NEW |  0 );
  268.                                   ^~~~~~~~~~~~~~~
  269. pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_offset_ptr_w’:
  270. pylibfdt/libfdt_wrap.c:3027:28: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
  271.  #define SWIG_as_voidptr(a) (void *)((const void *)(a))
  272.                             ^
  273. pylibfdt/libfdt_wrap.c:1163:89: note: in definition of macro ‘SWIG_NewPointerObj’
  274.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
  275.                                                                                          ^~~
  276. pylibfdt/libfdt_wrap.c:4927:34: note: in expansion of macro ‘SWIG_as_voidptr’
  277.    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  278.                                   ^~~~~~~~~~~~~~~
  279. pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_string’:
  280. pylibfdt/libfdt_wrap.c:5515:12: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
  281.    result = (char *)fdt_string((void const *)arg1,arg2);
  282.             ^
  283. pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_get_name’:
  284. pylibfdt/libfdt_wrap.c:5738:12: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
  285.    result = (char *)fdt_get_name((void const *)arg1,arg2,arg3);
  286.             ^
  287. pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_get_property_by_offset’:
  288. pylibfdt/libfdt_wrap.c:5850:12: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
  289.    result = (struct fdt_property *)fdt_get_property_by_offset((void const *)arg1,arg2,arg3);
  290.             ^
  291. pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_get_property’:
  292. pylibfdt/libfdt_wrap.c:5914:12: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
  293.    result = (struct fdt_property *)fdt_get_property((void const *)arg1,arg2,(char const *)arg3,arg4);
  294.             ^
  295. pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_getprop’:
  296. pylibfdt/libfdt_wrap.c:6046:12: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
  297.    result = (void *)fdt_getprop((void const *)arg1,arg2,(char const *)arg3,arg4);
  298.             ^
  299. pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_getprop_w’:
  300. pylibfdt/libfdt_wrap.c:3027:28: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
  301.  #define SWIG_as_voidptr(a) (void *)((const void *)(a))
  302.                             ^
  303. pylibfdt/libfdt_wrap.c:1163:89: note: in definition of macro ‘SWIG_NewPointerObj’
  304.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
  305.                                                                                          ^~~
  306. pylibfdt/libfdt_wrap.c:6108:34: note: in expansion of macro ‘SWIG_as_voidptr’
  307.    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  308.                                   ^~~~~~~~~~~~~~~
  309. pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_get_alias’:
  310. pylibfdt/libfdt_wrap.c:6184:12: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
  311.    result = (char *)fdt_get_alias((void const *)arg1,(char const *)arg2);
  312.             ^
  313. pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_stringlist_get’:
  314. pylibfdt/libfdt_wrap.c:6761:12: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
  315.    result = (char *)fdt_stringlist_get((void const *)arg1,arg2,(char const *)arg3,arg4,arg5);
  316.             ^
  317. pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_strerror’:
  318. pylibfdt/libfdt_wrap.c:8451:12: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
  319.    result = (char *)fdt_strerror(arg1);
  320.             ^
  321. pylibfdt/libfdt_wrap.c: At top level:
  322. pylibfdt/libfdt_wrap.c:3018:24: error: no previous prototype for ‘init_libfdt’ [-Werror=missing-prototypes]
  323.  #  define SWIG_init    init_libfdt
  324.                         ^
  325. pylibfdt/libfdt_wrap.c:9249:1: note: in expansion of macro ‘SWIG_init’
  326.  SWIG_init(void) {
  327.  ^~~~~~~~~
  328. cc1: all warnings being treated as errors
  329. error: command 'gcc' failed with exit status 1
  330. make[1]: *** [pylibfdt/Makefile.pylibfdt:16: pylibfdt/_libfdt.so] Error 1
  331. make: *** [Makefile:132: maybe_pylibfdt] Error 2
  332. ==> ERROR: A failure occurred in build().
  333.     Aborting...
  334. ==> ERROR: Makepkg was unable to build dtc-git.
  335. ==> Restart building dtc-git ? [y/N]
  336. ==> --------------------------------
  337. ==> n
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top