Skip to content

WIP add moto X 2013 (motorola-ghost). not building

Administrator requested to merge gcb:ghost into master

was following the new device wiki article, but failed to build

best output i got (same if i remove the 01 patch that generates a warning, so assuming it is non-fatal here too)

(020763) [10:45:03] PROTIP: You can simply do 'pmbootstrap menuconfig motorola-ghost'
(020763) [10:45:03] Calculate depends of packages ['perl', 'sed', 'installkernel', 'bash', 'gmp-dev', 'bc', 'linux-headers', 'elfutils-dev', 'dtbtool', 'ncurses-dev'], arch: x86_64
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://postmarketos.brixit.nl/x86_64/APKINDEX.tar.gz
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://postmarketos.brixit.nl/armhf/APKINDEX.tar.gz
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://postmarketos.brixit.nl/aarch64/APKINDEX.tar.gz
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://postmarketos.brixit.nl/x86_64/APKINDEX.tar.gz
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://dl-cdn.alpinelinux.org/alpine/edge/main/armhf/APKINDEX.tar.gz
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://dl-cdn.alpinelinux.org/alpine/edge/main/aarch64/APKINDEX.tar.gz
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://dl-cdn.alpinelinux.org/alpine/edge/community/armhf/APKINDEX.tar.gz
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://dl-cdn.alpinelinux.org/alpine/edge/community/aarch64/APKINDEX.tar.gz
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://dl-cdn.alpinelinux.org/alpine/edge/testing/armhf/APKINDEX.tar.gz
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://dl-cdn.alpinelinux.org/alpine/edge/testing/aarch64/APKINDEX.tar.gz
(020763) [10:45:04] APKINDEX outdated (older than 4h): http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
(020763) [10:45:04] Update package index (12x)
(020763) [10:45:04] Download http://postmarketos.brixit.nl/x86_64/APKINDEX.tar.gz
(020763) [10:45:05] % sudo cp ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_c5a7619e05ff97b647811ea60530885797e5b8cbd6285f0ec2cdc7d7b9b1acb9 ~/postmarketOS/var/pmbootstrap/cache_apk_x86_64/APKINDEX.8b865e19.tar.gz
(020763) [10:45:52] % rm ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_270d213606a21bfa19013332923a04085291cc17f52c1c93a8fbaeec337f0240
(020763) [10:45:52] Download http://postmarketos.brixit.nl/armhf/APKINDEX.tar.gz
(020763) [10:45:53] % sudo cp ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_270d213606a21bfa19013332923a04085291cc17f52c1c93a8fbaeec337f0240 ~/postmarketOS/var/pmbootstrap/cache_apk_armhf/APKINDEX.8b865e19.tar.gz
(020763) [10:45:53] % rm ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_7c57a5b3724062dda3a99e2b9c3b6464ab7a2c87dc33e0a0ed0b0852cc59c0e3
(020763) [10:45:53] Download http://postmarketos.brixit.nl/aarch64/APKINDEX.tar.gz
(020763) [10:45:54] % sudo cp ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_7c57a5b3724062dda3a99e2b9c3b6464ab7a2c87dc33e0a0ed0b0852cc59c0e3 ~/postmarketOS/var/pmbootstrap/cache_apk_aarch64/APKINDEX.8b865e19.tar.gz
(020763) [10:45:54] Download http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
(020763) [10:45:55] % sudo cp ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_b36af8b1d7f948f0d2fcae5bd60c1b876620e69b987bc066e7a90c810687e76f ~/postmarketOS/var/pmbootstrap/cache_apk_x86_64/APKINDEX.066df28d.tar.gz
(020763) [10:45:55] % rm ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_67fa95fe9642e03bac22ff8a744fd178076f4dcd979e39a5a8095748f025a754
(020763) [10:45:55] Download http://dl-cdn.alpinelinux.org/alpine/edge/main/armhf/APKINDEX.tar.gz
(020763) [10:45:57] % sudo cp ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_67fa95fe9642e03bac22ff8a744fd178076f4dcd979e39a5a8095748f025a754 ~/postmarketOS/var/pmbootstrap/cache_apk_armhf/APKINDEX.066df28d.tar.gz
(020763) [10:45:57] % rm ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_40cefd388a6f179766303318562db37c94a7e2d75b4d33074c8beaeac080064f
(020763) [10:45:57] Download http://dl-cdn.alpinelinux.org/alpine/edge/main/aarch64/APKINDEX.tar.gz
(020763) [10:45:59] % sudo cp ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_40cefd388a6f179766303318562db37c94a7e2d75b4d33074c8beaeac080064f ~/postmarketOS/var/pmbootstrap/cache_apk_aarch64/APKINDEX.066df28d.tar.gz
(020763) [10:45:59] Download http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
(020763) [10:46:00] % sudo cp ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_0999dbfe3755729bd8aa3997d03dbd36a87187a19b61ce5cea2e01671a6305d6 ~/postmarketOS/var/pmbootstrap/cache_apk_x86_64/APKINDEX.b53994b4.tar.gz
(020763) [10:46:00] % rm ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_3a927d08cf731a689236a662235942cca1869f535a8963850211ef1a12b71a93
(020763) [10:46:00] Download http://dl-cdn.alpinelinux.org/alpine/edge/community/armhf/APKINDEX.tar.gz
(020763) [10:46:02] % sudo cp ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_3a927d08cf731a689236a662235942cca1869f535a8963850211ef1a12b71a93 ~/postmarketOS/var/pmbootstrap/cache_apk_armhf/APKINDEX.b53994b4.tar.gz
(020763) [10:46:02] % rm ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_6e80a381677679c0e83714d2dc6c418e0e0c96a146d9b57fa03839d1b9f5bd40
(020763) [10:46:02] Download http://dl-cdn.alpinelinux.org/alpine/edge/community/aarch64/APKINDEX.tar.gz
(020763) [10:46:04] % sudo cp ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_6e80a381677679c0e83714d2dc6c418e0e0c96a146d9b57fa03839d1b9f5bd40 ~/postmarketOS/var/pmbootstrap/cache_apk_aarch64/APKINDEX.b53994b4.tar.gz
(020763) [10:46:04] Download http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
(020763) [10:46:05] % sudo cp ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_6ccac8825a1621fb204ad4b3e645b24ffd8fa9acfe97edc265646cafd18d3e4c ~/postmarketOS/var/pmbootstrap/cache_apk_x86_64/APKINDEX.30e6f5af.tar.gz
(020763) [10:46:05] % rm ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_cfac9b6d909f10eb69f6a8f9cfb65622e9d2927e96fd78c627377afcf546a00c
(020763) [10:46:05] Download http://dl-cdn.alpinelinux.org/alpine/edge/testing/armhf/APKINDEX.tar.gz
(020763) [10:46:07] % sudo cp ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_cfac9b6d909f10eb69f6a8f9cfb65622e9d2927e96fd78c627377afcf546a00c ~/postmarketOS/var/pmbootstrap/cache_apk_armhf/APKINDEX.30e6f5af.tar.gz
(020763) [10:46:07] % rm ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_d6ab3af2c088593f2c66b1286307b98f45cec060b38de2384f33bc9072659c06
(020763) [10:46:07] Download http://dl-cdn.alpinelinux.org/alpine/edge/testing/aarch64/APKINDEX.tar.gz
(020763) [10:46:08] % sudo cp ~/postmarketOS/var/pmbootstrap/cache_http/APKINDEX_d6ab3af2c088593f2c66b1286307b98f45cec060b38de2384f33bc9072659c06 ~/postmarketOS/var/pmbootstrap/cache_apk_aarch64/APKINDEX.30e6f5af.tar.gz
(020763) [10:46:09] % cd ~/postmarketOS/pmbootstrap/aports && git rev-parse --show-toplevel
~/postmarketOS/pmbootstrap
(020763) [10:46:09] % cd ~/postmarketOS/pmbootstrap && git show-ref refs/remotes/origin/HEAD
f2340ebcd418045caea105b4d78cdbe0129ba643 refs/remotes/origin/HEAD
(020763) [10:46:09] % cd ~/postmarketOS/pmbootstrap && git diff --name-only origin
(020763) [10:46:09] % cd ~/postmarketOS/pmbootstrap && git ls-files --others --exclude-standard
aports/device/device-motorola-ghost/APKBUILD
aports/device/device-motorola-ghost/deviceinfo
aports/device/linux-motorola-ghost/01_msm-fix-perf_trace_counters.patch
aports/device/linux-motorola-ghost/02_gpu-msm-fix-gcc5-compile.patch
aports/device/linux-motorola-ghost/APKBUILD
aports/device/linux-motorola-ghost/compiler-gcc6.h
aports/device/linux-motorola-ghost/config-motorola-ghost.armhf
cm12_defconfig
(020763) [10:46:09] (native) install
(020763) [10:46:09] (native) % apk --no-progress add -u ncurses-dev ncurses-libs ncurses-terminfo-base ncurses-terminfo
WARNING: Ignoring /mnt/pmbootstrap-packages/x86_64/APKINDEX.tar.gz: No such file or directory
(1/4) Upgrading ncurses-terminfo-base (6.0_p20170930-r0 -> 6.0_p20171125-r0)
(2/4) Upgrading ncurses-terminfo (6.0_p20170930-r0 -> 6.0_p20171125-r0)
(3/4) Upgrading ncurses-libs (6.0_p20170930-r0 -> 6.0_p20171125-r0)
(4/4) Upgrading ncurses-dev (6.0_p20170930-r0 -> 6.0_p20171125-r0)
Executing busybox-1.27.2-r7.trigger
OK: 314 MiB in 80 packages
(020763) [10:46:11] (native) % rm -rf /home/pmos/build
(020763) [10:46:12] % sudo cp -r ~/postmarketOS/pmbootstrap/aports/device/linux-motorola-ghost/ ~/postmarketOS/var/pmbootstrap/chroot_native/home/pmos/build
(020763) [10:46:12] (native) % chown -R pmos:pmos /home/pmos/build
(020763) [10:46:12] (native) extract kernel source
(020763) [10:46:12] (native) % cd /home/pmos/build && busybox su pmos -c 'abuild unpack'
>>> linux-motorola-ghost: Fetching linux-motorola-ghost-d544eb6cbebf64d76deda54c383156c7c58b61e5.tar.gz::https://github.com/LineageOS/android_kernel_motorola_ghost/archive/d544eb6cbebf64d76deda54c383156c7c58b61e5.tar.gz
>>> linux-motorola-ghost: Checking sha512sums...
linux-motorola-ghost-d544eb6cbebf64d76deda54c383156c7c58b61e5.tar.gz: OK
config-motorola-ghost.armhf: OK
compiler-gcc6.h: OK
01_msm-fix-perf_trace_counters.patch: OK
02_gpu-msm-fix-gcc5-compile.patch: OK
>>> linux-motorola-ghost: Unpacking /var/cache/distfiles/linux-motorola-ghost-d544eb6cbebf64d76deda54c383156c7c58b61e5.tar.gz...
(020763) [10:46:17] (native) apply patches
(020763) [10:46:17] (native) % cd /home/pmos/build && busybox su pmos -c 'CARCH=armhf abuild prepare'
(020763) [10:46:17] *** output passed to pmbootstrap stdout, not to this log ***
(020763) [10:46:17] ERROR: Command failed: (native) % cd /home/pmos/build && busybox su pmos -c 'CARCH=armhf abuild prepare'
(020763) [10:46:17] Run 'pmbootstrap log' for details.
(020763) [10:46:17] See also: <https://postmarketos.org/troubleshooting>
(020763) [10:46:17] Traceback (most recent call last):
  File "~/postmarketOS/pmbootstrap/pmb/helpers/run.py", line 58, in core
    subprocess.check_call(cmd)
  File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '/usr/bin/sh', '-c', 'env -i CHARSET=UTF-8 PATH=/usr/lib/ccache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin SHELL=/bin/ash HISTFILE=~/.ash_history /usr/bin/chroot ~/postmarketOS/var/pmbootstrap/chroot_native sh -c \'cd /home/pmos/build;busybox su pmos -c \'"\'"\'CARCH=armhf abuild prepare\'"\'"\'\'']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "~/postmarketOS/pmbootstrap/pmb/__init__.py", line 61, in main
    getattr(frontend, args.action)(args)
  File "~/postmarketOS/pmbootstrap/pmb/helpers/frontend.py", line 214, in menuconfig
    pmb.build.menuconfig(args, args.package)
  File "~/postmarketOS/pmbootstrap/pmb/build/menuconfig.py", line 81, in menuconfig
    "/home/pmos/build", log=False)
  File "~/postmarketOS/pmbootstrap/pmb/chroot/user.py", line 34, in user
    auto_init, return_stdout, check)
  File "~/postmarketOS/pmbootstrap/pmb/chroot/root.py", line 86, in root
    return_stdout, check)
  File "~/postmarketOS/pmbootstrap/pmb/helpers/run.py", line 66, in core
    raise RuntimeError("Command failed: " + log_message) from exc
RuntimeError: Command failed: (native) % cd /home/pmos/build && busybox su pmos -c 'CARCH=armhf abuild prepare'

^CTraceback (most recent call last):
  File "./pmbootstrap.py", line 26, in <module>
    sys.exit(pmb.main())
  File "~/postmarketOS/pmbootstrap/pmb/__init__.py", line 61, in main
    getattr(frontend, args.action)(args)
  File "~/postmarketOS/pmbootstrap/pmb/helpers/frontend.py", line 317, in log
    log=False)
  File "~/postmarketOS/pmbootstrap/pmb/helpers/run.py", line 85, in user
    background)
  File "~/postmarketOS/pmbootstrap/pmb/helpers/run.py", line 58, in core
    subprocess.check_call(cmd)
  File "/usr/lib/python3.6/subprocess.py", line 286, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python3.6/subprocess.py", line 269, in call
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.6/subprocess.py", line 1457, in wait
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.6/subprocess.py", line 1404, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt





==== meanwhile on the other terminal:

$ ./pmbootstrap.py menuconfig linux-motorola-ghost
[10:45:03] PROTIP: You can simply do 'pmbootstrap menuconfig motorola-ghost'
[10:45:04] Update package index (12x)
[SUDO] Password:
[10:46:09] (native) install
[10:46:12] (native) extract kernel source
[10:46:17] (native) apply patches
>>> linux-motorola-ghost: 01_msm-fix-perf_trace_counters.patch
can't find file to patch at input line 26
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From e41494c15d4df342854ac3d2940f5d6ac3158212 Mon Sep 17 00:00:00 2001
|From: Bryan Huntsman <bryanh@codeaurora.org>
|Date: Mon, 3 Jun 2013 18:48:08 -0700
|Subject: [PATCH] msm: fix in-tree compilation for perf_trace_counters
|
|In-tree compilation for arch/arm/mach-msm/perf_trace_counters.c was
|hitting this error:
|
|    In file included from arch/arm/mach-msm/perf_trace_counters.h:127:0,
|                     from arch/arm/mach-msm/perf_trace_counters.c:14:
|    include/trace/define_trace.h:79:43: fatal error: ./perf_trace_counters.h: No such file or directory
|
|Instructions for TRACE_INCLUDE_FILE in include/trace/define_trace.h say
|"the path is relative to define_trace.h, not the file including it".
|Fix in-tree compilation by making the path relative to define_trace.h.
|
|Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
|---
| arch/arm/mach-msm/perf_trace_counters.h | 3 +--
| 1 file changed, 1 insertion(+), 2 deletions(-)
|
|diff --git a/arch/arm/mach-msm/perf_trace_counters.h b/arch/arm/mach-msm/perf_trace_counters.h
|index ce7e336aa40d..8f77badf42ac 100644
|--- a/arch/arm/mach-msm/perf_trace_counters.h
|+++ b/arch/arm/mach-msm/perf_trace_counters.h
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
>>> ERROR: linux-motorola-ghost: prepare failed
[10:46:17] ERROR: Command failed: (native) % cd /home/pmos/build && busybox su pmos -c 'CARCH=armhf abuild prepare'
[10:46:17] Run 'pmbootstrap log' for details.
[10:46:17] See also: <https://postmarketos.org/troubleshooting>

Merge request reports

Loading