Advertisement
Guest User

hwplk

a guest
Feb 7th, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.29 KB | None | 0 0
  1. (002174) [20:02:54] PROTIP: You can simply do 'pmbootstrap kconfig check huawei-hwplk'
  2. (002174) [20:02:54] Check kconfig: /home/m/.local/var/pmbootstrap/cache_git/pmaports/device/linux-huawei-hwplk/config-huawei-hwplk.aarch64
  3. (002174) [20:02:54] WARNING: linux-huawei-hwplk/config-huawei-hwplk.aarch64: CONFIG_ANDROID_PARANOID_NETWORK should *not* be set. See <https://wiki.postmarketos.org/wiki/Kernel_configuration#CONFIG_ANDROID_PARANOID_NETWORK> for details.
  4. (002174) [20:02:54] WARNING: linux-huawei-hwplk/config-huawei-hwplk.aarch64: CONFIG_VT should be set. See <https://wiki.postmarketos.org/wiki/Kernel_configuration#CONFIG_VT> for details.
  5. (002174) [20:02:54] ERROR: kconfig check failed!
  6. (002174) [20:02:54] See also: <https://postmarketos.org/troubleshooting>
  7. (002174) [20:02:54] Traceback (most recent call last):
  8. File "/home/m/honor7/pmbootstrap/pmb/__init__.py", line 63, in main
  9. getattr(frontend, args.action)(args)
  10. File "/home/m/honor7/pmbootstrap/pmb/helpers/frontend.py", line 258, in kconfig
  11. raise RuntimeError("kconfig check failed!")
  12. RuntimeError: kconfig check failed!
  13.  
  14. (002177) [20:03:06] PROTIP: You can simply do 'pmbootstrap kconfig edit huawei-hwplk'
  15. (002177) [20:03:06] (native) calculate depends of perl, sed, installkernel, bash, gmp-dev, bc, linux-headers, elfutils-dev, devicepkg-dev, qt-dev, font-noto (pmbootstrap -v for details)
  16. (002177) [20:03:08] (native) install qt-dev
  17. (002177) [20:03:08] (native) % apk --no-progress add -u --virtual .pmbootstrap qt-dev mesa-dev libice-dev libsm-dev alsa-lib-dev openssl-dev sqlite-dev dbus-dev qt-webkit qt-x11 qt libdrm-dev libxshmfence-dev mesa-egl mesa-gbm mesa-gl mesa-glapi mesa-gles mesa-osmesa mesa-xatracker libxxf86vm-dev libice libsm alsa-lib libmng libdrm libxshmfence wayland-libs-client wayland-libs-server libxxf86vm llvm5-libs lcms2 libpciaccess
  18. WARNING: Ignoring /mnt/pmbootstrap-packages/x86_64/APKINDEX.tar.gz: No such file or directory
  19. (1/34) Installing libpciaccess (0.14-r0)
  20. (2/34) Installing libdrm (2.4.96-r0)
  21. (3/34) Installing libdrm-dev (2.4.96-r0)
  22. (4/34) Installing libxshmfence (1.3-r0)
  23. (5/34) Installing libxshmfence-dev (1.3-r0)
  24. (6/34) Installing wayland-libs-server (1.16.0-r0)
  25. (7/34) Installing mesa-gbm (18.1.7-r1)
  26. (8/34) Installing mesa-glapi (18.1.7-r1)
  27. (9/34) Installing wayland-libs-client (1.16.0-r0)
  28. (10/34) Installing mesa-egl (18.1.7-r1)
  29. (11/34) Installing libxxf86vm (1.1.4-r2)
  30. (12/34) Installing mesa-gl (18.1.7-r1)
  31. (13/34) Installing mesa-gles (18.1.7-r1)
  32. (14/34) Installing llvm5-libs (5.0.2-r0)
  33. heck
  34.  
  35. (15/34) Installing mesa-osmesa (18.1.7-r1)
  36. (16/34) Installing mesa-xatracker (18.1.7-r1)
  37. (17/34) Installing libxxf86vm-dev (1.1.4-r2)
  38. (18/34) Installing mesa-dev (18.1.7-r1)
  39. (19/34) Installing libice (1.0.9-r3)
  40. (20/34) Installing libice-dev (1.0.9-r3)
  41. (21/34) Installing libsm (1.2.2-r2)
  42. (22/34) Installing libsm-dev (1.2.2-r2)
  43. (23/34) Installing alsa-lib (1.1.8-r0)
  44. (24/34) Installing alsa-lib-dev (1.1.8-r0)
  45. (25/34) Installing openssl-dev (1.1.1a-r1)
  46. (26/34) Installing sqlite-dev (3.26.0-r3)
  47. (27/34) Installing dbus-dev (1.10.24-r1)
  48. (28/34) Installing qt (4.8.7-r11)
  49. (29/34) Installing lcms2 (2.9-r1)
  50. (30/34) Installing libmng (2.0.3-r1)
  51. (31/34) Installing qt-x11 (4.8.7-r11)
  52. (32/34) Installing qt-webkit (4.8.7-r11)
  53. (33/34) Installing qt-dev (4.8.7-r11)
  54. (34/34) Installing .pmbootstrap (0)
  55. Executing busybox-1.29.3-r12.trigger
  56. Executing gtk-update-icon-cache-2.24.32-r1.trigger
  57. OK: 658 MiB in 242 packages
  58. (002177) [20:07:22] (native) % apk --no-progress add perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev qt-dev font-noto
  59. WARNING: Ignoring /mnt/pmbootstrap-packages/x86_64/APKINDEX.tar.gz: No such file or directory
  60. OK: 658 MiB in 242 packages
  61. (002177) [20:07:22] (native) % apk --no-progress del .pmbootstrap
  62. WARNING: Ignoring /mnt/pmbootstrap-packages/x86_64/APKINDEX.tar.gz: No such file or directory
  63. (1/1) Purging .pmbootstrap (0)
  64. OK: 658 MiB in 241 packages
  65. (002177) [20:07:22] (native) copy host Xauthority
  66. (002177) [20:07:22] % sudo rm /home/m/.local/var/pmbootstrap/chroot_native/home/pmos/.Xauthority
  67. (002177) [20:07:22] % sudo cp /home/m/.Xauthority /home/m/.local/var/pmbootstrap/chroot_native/home/pmos/.Xauthority
  68. (002177) [20:07:22] (native) % chown pmos:pmos /home/pmos/.Xauthority
  69. (002177) [20:07:22] (native) % rm -rf /home/pmos/build
  70. (002177) [20:07:22] % sudo cp -rL /home/m/.local/var/pmbootstrap/cache_git/pmaports/device/linux-huawei-hwplk/ /home/m/.local/var/pmbootstrap/chroot_native/home/pmos/build
  71. (002177) [20:07:22] (native) % chown -R pmos:pmos /home/pmos/build
  72. (002177) [20:07:22] (native) extract kernel source
  73. (002177) [20:07:22] (native) % cd /home/pmos/build; busybox su pmos -c HOME=/home/pmos abuild unpack
  74. >>> linux-huawei-hwplk: Fetching linux-huawei-hwplk-lineage-14.1.tar.gz::https://github.com/ProjectHiSi/android_device_huawei_HWPLK/archive/lineage-14.1.tar.gz
  75. >>> linux-huawei-hwplk: Checking sha512sums...
  76. linux-huawei-hwplk-lineage-14.1.tar.gz: OK
  77. config-huawei-hwplk.aarch64: OK
  78. gcc7-give-up-on-ilog2-const-optimizations.patch: OK
  79. gcc8-fix-put-user.patch: OK
  80. kernel-use-the-gnu89-standard-explicitly.patch: OK
  81. >>> linux-huawei-hwplk: Unpacking /var/cache/distfiles/linux-huawei-hwplk-lineage-14.1.tar.gz...
  82. (002177) [20:07:23] (native) apply patches
  83. (002177) [20:07:23] (native) % cd /home/pmos/build; busybox su pmos -c CARCH=aarch64 HOME=/home/pmos abuild prepare
  84. >>> linux-huawei-hwplk: gcc7-give-up-on-ilog2-const-optimizations.patch
  85. can't find file to patch at input line 57
  86. Perhaps you used the wrong -p or --strip option?
  87. The text leading up to this was:
  88. --------------------------
  89. |From a7bfe0a2832e66f3d732e4210b5d53c81cc7a85f Mon Sep 17 00:00:00 2001
  90. |From: Linus Torvalds <torvalds@linux-foundation.org>
  91. |Date: Thu, 27 Sep 2018 19:16:56 -0400
  92. |Subject: [PATCH] give up on gcc ilog2() constant optimizations
  93. |
  94. |commit 474c90156c8dcc2fa815e6716cc9394d7930cb9c upstream.
  95. |
  96. |gcc-7 has an "optimization" pass that completely screws up, and
  97. |generates the code expansion for the (impossible) case of calling
  98. |ilog2() with a zero constant, even when the code gcc compiles does not
  99. |actually have a zero constant.
  100. |
  101. |And we try to generate a compile-time error for anybody doing ilog2() on
  102. |a constant where that doesn't make sense (be it zero or negative). So
  103. |now gcc7 will fail the build due to our sanity checking, because it
  104. |created that constant-zero case that didn't actually exist in the source
  105. |code.
  106. |
  107. |There's a whole long discussion on the kernel mailing about how to work
  108. |around this gcc bug. The gcc people themselevs have discussed their
  109. |"feature" in
  110. |
  111. | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72785
  112. |
  113. |but it's all water under the bridge, because while it looked at one
  114. |point like it would be solved by the time gcc7 was released, that was
  115. |not to be.
  116. |
  117. |So now we have to deal with this compiler braindamage.
  118. |
  119. |And the only simple approach seems to be to just delete the code that
  120. |tries to warn about bad uses of ilog2().
  121. |
  122. |So now "ilog2()" will just return 0 not just for the value 1, but for
  123. |any non-positive value too.
  124. |
  125. |It's not like I can recall anybody having ever actually tried to use
  126. |this function on any invalid value, but maybe the sanity check just
  127. |meant that such code never made it out in public.
  128. |
  129. |[js] no tools/include/linux/log2.h copy of that yet
  130. |
  131. |Reported-by: Laura Abbott <labbott@redhat.com>
  132. |Cc: John Stultz <john.stultz@linaro.org>,
  133. |Cc: Thomas Gleixner <tglx@linutronix.de>
  134. |Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
  135. |Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  136. |Signed-off-by: Jiri Slaby <jslaby@suse.cz>
  137. |---
  138. | include/linux/log2.h | 13 ++-----------
  139. | 1 file changed, 2 insertions(+), 11 deletions(-)
  140. |
  141. |diff --git a/include/linux/log2.h b/include/linux/log2.h
  142. |index fd7ff3d91..f38fae23b 100644
  143. |--- a/include/linux/log2.h
  144. |+++ b/include/linux/log2.h
  145. --------------------------
  146. File to patch:
  147. Skip this patch? [y]
  148. Skipping patch.
  149. 3 out of 3 hunks ignored
  150. >>> ERROR: linux-huawei-hwplk: prepare failed
  151. (002177) [20:07:23] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  152. (002177) [20:07:23] NOTE: The failed command's output is above the ^^^ line in the log file: /home/m/.local/var/pmbootstrap/log.txt
  153. (002177) [20:07:23] ERROR: Command failed: (native) % cd /home/pmos/build; busybox su pmos -c CARCH=aarch64 HOME=/home/pmos abuild prepare
  154. (002177) [20:07:23] See also: <https://postmarketos.org/troubleshooting>
  155. (002177) [20:07:23] Traceback (most recent call last):
  156. File "/home/m/honor7/pmbootstrap/pmb/__init__.py", line 63, in main
  157. getattr(frontend, args.action)(args)
  158. File "/home/m/honor7/pmbootstrap/pmb/helpers/frontend.py", line 262, in kconfig
  159. pmb.build.menuconfig(args, args.package)
  160. File "/home/m/honor7/pmbootstrap/pmb/build/menuconfig.py", line 134, in menuconfig
  161. env={"CARCH": arch})
  162. File "/home/m/honor7/pmbootstrap/pmb/chroot/user.py", line 43, in user
  163. output_return, check, {}, auto_init)
  164. File "/home/m/honor7/pmbootstrap/pmb/chroot/root.py", line 91, in root
  165. output_return, check, kill_as_root)
  166. File "/home/m/honor7/pmbootstrap/pmb/helpers/run_core.py", line 301, in core
  167. raise RuntimeError("Command failed: " + log_message)
  168. RuntimeError: Command failed: (native) % cd /home/pmos/build; busybox su pmos -c CARCH=aarch64 HOME=/home/pmos abuild prepare
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement