Error: Is $builddir set correctly?
I'm trying to port the Samsung Galaxy J3 2016 (samsung-j3ltespr) with the porting guide on the pmos wiki and I am stuck at the "pmbootstrap kconfig edit samsung-j3ltespr" step. I get the following from the main pmbootstrap window:
` [17:24:37] WARNING: package devicepkg-dev: aport version 0.10.0-r0 is lower than 0.11.2-r0 from the binary repository. 0.11.2-r0 will be used when installing devicepkg-dev. See also: https://postmarketos.org/warning-repo2 [17:24:38] (native) extract kernel source [17:24:40] (native) apply patches
ERROR: linux-samsung-j3ltespr: Is $builddir set correctly? ERROR: linux-samsung-j3ltespr: prepare failed [17:24:40] NOTE: The failed command's output is above the ^^^ line in the log file: /home/loren/.local/var/pmbootstrap/log.txt [17:24:40] ERROR: Command failed: (native) % cd /home/pmos/build; busybox su pmos -c CARCH=armv7 HOME=/home/pmos abuild prepare [17:24:40] See also: https://postmarketos.org/troubleshooting Run 'pmbootstrap log' for details. `
And from the log:
` (010399) [17:24:23] (native) % rm -rf /home/pmos/build (010399) [17:24:23] % sudo cp -rL /home/loren/.local/var/pmbootstrap/cache_git/pmaports/device/device-samsung-j3ltespr/ /home/loren/.local/var/pmbootstrap/chroot_native/home/pmos/build (010399) [17:24:23] (native) % chown -R pmos:pmos /home/pmos/build (010399) [17:24:23] (native) generate checksums for device-samsung-j3ltespr (010399) [17:24:23] (native) % cd /home/pmos/build; busybox su pmos -c HOME=/home/pmos abuild checksum
device-samsung-j3ltespr: Updating the sha512sums in APKBUILD... (010399) [17:24:23] % cp /home/loren/.local/var/pmbootstrap/chroot_native/home/pmos/build/APKBUILD /home/loren/.local/var/pmbootstrap/cache_git/pmaports/device/device-samsung-j3ltespr/ (010399) [17:24:23] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary) (010399) [17:24:23] Done (010434) [17:24:36] (native) calculate depends of perl, sed, installkernel, bash, gmp-dev, bc, linux-headers, elfutils-dev, devicepkg-dev, dtbtool, ncurses-dev (pmbootstrap -v for details) (010434) [17:24:36] qt5-qtbase: key '_sub' for replacing '
_sub' not found, ignoring (010434) [17:24:36] qt5-qtbase: key '_sub' for replacing '_sub' not found, ignoring (010434) [17:24:36] osso-xterm: key '_tag' for replacing '_tag' not found, ignoring (010434) [17:24:36] gtk+2.0-maemo: key 'subpkg' for replacing 'subpkg' not found, ignoring (010434) [17:24:36] grub-efi-x86: key '_arch' for replacing '_arch' not found, ignoring (010434) [17:24:36] musl-armv7: key '_arch' for replacing '_arch' not found, ignoring (010434) [17:24:36] busybox-static-aarch64: key '_arch' for replacing '_arch' not found, ignoring (010434) [17:24:36] musl-armhf: key '_arch' for replacing '_arch' not found, ignoring (010434) [17:24:36] musl-aarch64: key '_arch' for replacing '_arch' not found, ignoring (010434) [17:24:36] busybox-static-armhf: key '_arch' for replacing '_arch' not found, ignoring (010434) [17:24:36] busybox-static-armv7: key '_arch' for replacing '_arch' not found, ignoring (010434) [17:24:37] libhybris: key '_base_subpackages' for replacing '_base_subpackages' not found, ignoring (010434) [17:24:37] gmp-dev: guessed to be a subpackage of gmp, which we can't find in pmaports, so it's probably in Alpine (010434) [17:24:37] elfutils-dev: guessed to be a subpackage of elfutils, which we can't find in pmaports, so it's probably in Alpine (010434) [17:24:37] ncurses-dev: guessed to be a subpackage of ncurses, which we can't find in pmaports, so it's probably in Alpine (010434) [17:24:37] dtc-dev: guessed to be a subpackage of dtc, which we can't find in pmaports, so it's probably in Alpine (010434) [17:24:37] WARNING: package devicepkg-dev: aport version 0.10.0-r0 is lower than 0.11.2-r0 from the binary repository. 0.11.2-r0 will be used when installing devicepkg-dev. See also: https://postmarketos.org/warning-repo2 (010434) [17:24:37] xz-dev: guessed to be a subpackage of xz, which we can't find in pmaports, so it's probably in Alpine (010434) [17:24:37] zlib-dev: guessed to be a subpackage of zlib, which we can't find in pmaports, so it's probably in Alpine (010434) [17:24:37] (native) % rm -rf /home/pmos/build (010434) [17:24:38] % sudo cp -rL /home/loren/.local/var/pmbootstrap/cache_git/pmaports/device/linux-samsung-j3ltespr/ /home/loren/.local/var/pmbootstrap/chroot_native/home/pmos/build (010434) [17:24:38] (native) % chown -R pmos:pmos /home/pmos/build (010434) [17:24:38] (native) extract kernel source (010434) [17:24:38] (native) % cd /home/pmos/build; busybox su pmos -c HOME=/home/pmos abuild unpack linux-samsung-j3ltespr: Checking sha512sums... linux-samsung-j3ltespr-f93ccd2.tar.gz: OK config-samsung-j3ltespr.armv7: 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-samsung-j3ltespr: Unpacking /home/pmos/build/linux-samsung-j3ltespr-f93ccd2.tar.gz... (010434) [17:24:40] (native) apply patches (010434) [17:24:40] (native) % cd /home/pmos/build; busybox su pmos -c CARCH=armv7 HOME=/home/pmos abuild prepare ERROR: linux-samsung-j3ltespr: Is $builddir set correctly? ERROR: linux-samsung-j3ltespr: prepare failed (010434) [17:24:40] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (010434) [17:24:40] NOTE: The failed command's output is above the ^^^ line in the log file: /home/loren/.local/var/pmbootstrap/log.txt (010434) [17:24:40] ERROR: Command failed: (native) % cd /home/pmos/build; busybox su pmos -c CARCH=armv7 HOME=/home/pmos abuild prepare (010434) [17:24:40] See also: https://postmarketos.org/troubleshooting (010434) [17:24:40] Traceback (most recent call last): File "/home/loren/.local/lib/python3.7/site-packages/pmb/init.py", line 63, in main getattr(frontend, args.action)(args) File "/home/loren/.local/lib/python3.7/site-packages/pmb/helpers/frontend.py", line 289, in kconfig pmb.build.menuconfig(args, args.package) File "/home/loren/.local/lib/python3.7/site-packages/pmb/build/menuconfig.py", line 137, in menuconfig env={"CARCH": arch}) File "/home/loren/.local/lib/python3.7/site-packages/pmb/chroot/user.py", line 43, in user output_return, check, {}, auto_init) File "/home/loren/.local/lib/python3.7/site-packages/pmb/chroot/root.py", line 91, in root output_return, check, kill_as_root) File "/home/loren/.local/lib/python3.7/site-packages/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=armv7 HOME=/home/pmos abuild prepare `
Can anybody help me get this problem fixed? My APKBUILD and log are attached below if that's any help. Apologies for the terrible formatting.
Thanks in advance.