Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (002174) [20:02:54] PROTIP: You can simply do 'pmbootstrap kconfig check huawei-hwplk'
- (002174) [20:02:54] Check kconfig: /home/m/.local/var/pmbootstrap/cache_git/pmaports/device/linux-huawei-hwplk/config-huawei-hwplk.aarch64
- (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.
- (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.
- (002174) [20:02:54] ERROR: kconfig check failed!
- (002174) [20:02:54] See also: <https://postmarketos.org/troubleshooting>
- (002174) [20:02:54] Traceback (most recent call last):
- File "/home/m/honor7/pmbootstrap/pmb/__init__.py", line 63, in main
- getattr(frontend, args.action)(args)
- File "/home/m/honor7/pmbootstrap/pmb/helpers/frontend.py", line 258, in kconfig
- raise RuntimeError("kconfig check failed!")
- RuntimeError: kconfig check failed!
- (002177) [20:03:06] PROTIP: You can simply do 'pmbootstrap kconfig edit huawei-hwplk'
- (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)
- (002177) [20:03:08] (native) install qt-dev
- (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
- WARNING: Ignoring /mnt/pmbootstrap-packages/x86_64/APKINDEX.tar.gz: No such file or directory
- (1/34) Installing libpciaccess (0.14-r0)
- (2/34) Installing libdrm (2.4.96-r0)
- (3/34) Installing libdrm-dev (2.4.96-r0)
- (4/34) Installing libxshmfence (1.3-r0)
- (5/34) Installing libxshmfence-dev (1.3-r0)
- (6/34) Installing wayland-libs-server (1.16.0-r0)
- (7/34) Installing mesa-gbm (18.1.7-r1)
- (8/34) Installing mesa-glapi (18.1.7-r1)
- (9/34) Installing wayland-libs-client (1.16.0-r0)
- (10/34) Installing mesa-egl (18.1.7-r1)
- (11/34) Installing libxxf86vm (1.1.4-r2)
- (12/34) Installing mesa-gl (18.1.7-r1)
- (13/34) Installing mesa-gles (18.1.7-r1)
- (14/34) Installing llvm5-libs (5.0.2-r0)
- heck
- (15/34) Installing mesa-osmesa (18.1.7-r1)
- (16/34) Installing mesa-xatracker (18.1.7-r1)
- (17/34) Installing libxxf86vm-dev (1.1.4-r2)
- (18/34) Installing mesa-dev (18.1.7-r1)
- (19/34) Installing libice (1.0.9-r3)
- (20/34) Installing libice-dev (1.0.9-r3)
- (21/34) Installing libsm (1.2.2-r2)
- (22/34) Installing libsm-dev (1.2.2-r2)
- (23/34) Installing alsa-lib (1.1.8-r0)
- (24/34) Installing alsa-lib-dev (1.1.8-r0)
- (25/34) Installing openssl-dev (1.1.1a-r1)
- (26/34) Installing sqlite-dev (3.26.0-r3)
- (27/34) Installing dbus-dev (1.10.24-r1)
- (28/34) Installing qt (4.8.7-r11)
- (29/34) Installing lcms2 (2.9-r1)
- (30/34) Installing libmng (2.0.3-r1)
- (31/34) Installing qt-x11 (4.8.7-r11)
- (32/34) Installing qt-webkit (4.8.7-r11)
- (33/34) Installing qt-dev (4.8.7-r11)
- (34/34) Installing .pmbootstrap (0)
- Executing busybox-1.29.3-r12.trigger
- Executing gtk-update-icon-cache-2.24.32-r1.trigger
- OK: 658 MiB in 242 packages
- (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
- WARNING: Ignoring /mnt/pmbootstrap-packages/x86_64/APKINDEX.tar.gz: No such file or directory
- OK: 658 MiB in 242 packages
- (002177) [20:07:22] (native) % apk --no-progress del .pmbootstrap
- WARNING: Ignoring /mnt/pmbootstrap-packages/x86_64/APKINDEX.tar.gz: No such file or directory
- (1/1) Purging .pmbootstrap (0)
- OK: 658 MiB in 241 packages
- (002177) [20:07:22] (native) copy host Xauthority
- (002177) [20:07:22] % sudo rm /home/m/.local/var/pmbootstrap/chroot_native/home/pmos/.Xauthority
- (002177) [20:07:22] % sudo cp /home/m/.Xauthority /home/m/.local/var/pmbootstrap/chroot_native/home/pmos/.Xauthority
- (002177) [20:07:22] (native) % chown pmos:pmos /home/pmos/.Xauthority
- (002177) [20:07:22] (native) % rm -rf /home/pmos/build
- (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
- (002177) [20:07:22] (native) % chown -R pmos:pmos /home/pmos/build
- (002177) [20:07:22] (native) extract kernel source
- (002177) [20:07:22] (native) % cd /home/pmos/build; busybox su pmos -c HOME=/home/pmos abuild unpack
- >>> 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
- >>> linux-huawei-hwplk: Checking sha512sums...
- linux-huawei-hwplk-lineage-14.1.tar.gz: OK
- config-huawei-hwplk.aarch64: OK
- gcc7-give-up-on-ilog2-const-optimizations.patch: OK
- gcc8-fix-put-user.patch: OK
- kernel-use-the-gnu89-standard-explicitly.patch: OK
- >>> linux-huawei-hwplk: Unpacking /var/cache/distfiles/linux-huawei-hwplk-lineage-14.1.tar.gz...
- (002177) [20:07:23] (native) apply patches
- (002177) [20:07:23] (native) % cd /home/pmos/build; busybox su pmos -c CARCH=aarch64 HOME=/home/pmos abuild prepare
- >>> linux-huawei-hwplk: gcc7-give-up-on-ilog2-const-optimizations.patch
- can't find file to patch at input line 57
- Perhaps you used the wrong -p or --strip option?
- The text leading up to this was:
- --------------------------
- |From a7bfe0a2832e66f3d732e4210b5d53c81cc7a85f Mon Sep 17 00:00:00 2001
- |From: Linus Torvalds <torvalds@linux-foundation.org>
- |Date: Thu, 27 Sep 2018 19:16:56 -0400
- |Subject: [PATCH] give up on gcc ilog2() constant optimizations
- |
- |commit 474c90156c8dcc2fa815e6716cc9394d7930cb9c upstream.
- |
- |gcc-7 has an "optimization" pass that completely screws up, and
- |generates the code expansion for the (impossible) case of calling
- |ilog2() with a zero constant, even when the code gcc compiles does not
- |actually have a zero constant.
- |
- |And we try to generate a compile-time error for anybody doing ilog2() on
- |a constant where that doesn't make sense (be it zero or negative). So
- |now gcc7 will fail the build due to our sanity checking, because it
- |created that constant-zero case that didn't actually exist in the source
- |code.
- |
- |There's a whole long discussion on the kernel mailing about how to work
- |around this gcc bug. The gcc people themselevs have discussed their
- |"feature" in
- |
- | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72785
- |
- |but it's all water under the bridge, because while it looked at one
- |point like it would be solved by the time gcc7 was released, that was
- |not to be.
- |
- |So now we have to deal with this compiler braindamage.
- |
- |And the only simple approach seems to be to just delete the code that
- |tries to warn about bad uses of ilog2().
- |
- |So now "ilog2()" will just return 0 not just for the value 1, but for
- |any non-positive value too.
- |
- |It's not like I can recall anybody having ever actually tried to use
- |this function on any invalid value, but maybe the sanity check just
- |meant that such code never made it out in public.
- |
- |[js] no tools/include/linux/log2.h copy of that yet
- |
- |Reported-by: Laura Abbott <labbott@redhat.com>
- |Cc: John Stultz <john.stultz@linaro.org>,
- |Cc: Thomas Gleixner <tglx@linutronix.de>
- |Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
- |Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
- |Signed-off-by: Jiri Slaby <jslaby@suse.cz>
- |---
- | include/linux/log2.h | 13 ++-----------
- | 1 file changed, 2 insertions(+), 11 deletions(-)
- |
- |diff --git a/include/linux/log2.h b/include/linux/log2.h
- |index fd7ff3d91..f38fae23b 100644
- |--- a/include/linux/log2.h
- |+++ b/include/linux/log2.h
- --------------------------
- File to patch:
- Skip this patch? [y]
- Skipping patch.
- 3 out of 3 hunks ignored
- >>> ERROR: linux-huawei-hwplk: prepare failed
- (002177) [20:07:23] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- (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
- (002177) [20:07:23] ERROR: Command failed: (native) % cd /home/pmos/build; busybox su pmos -c CARCH=aarch64 HOME=/home/pmos abuild prepare
- (002177) [20:07:23] See also: <https://postmarketos.org/troubleshooting>
- (002177) [20:07:23] Traceback (most recent call last):
- File "/home/m/honor7/pmbootstrap/pmb/__init__.py", line 63, in main
- getattr(frontend, args.action)(args)
- File "/home/m/honor7/pmbootstrap/pmb/helpers/frontend.py", line 262, in kconfig
- pmb.build.menuconfig(args, args.package)
- File "/home/m/honor7/pmbootstrap/pmb/build/menuconfig.py", line 134, in menuconfig
- env={"CARCH": arch})
- File "/home/m/honor7/pmbootstrap/pmb/chroot/user.py", line 43, in user
- output_return, check, {}, auto_init)
- File "/home/m/honor7/pmbootstrap/pmb/chroot/root.py", line 91, in root
- output_return, check, kill_as_root)
- File "/home/m/honor7/pmbootstrap/pmb/helpers/run_core.py", line 301, in core
- raise RuntimeError("Command failed: " + log_message)
- 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