envkernel.sh: compiler 'armv6-alpine-linux-musleabihf-gcc' not found
I deleted my .local/var/pmbootstrap directory, deleted my copy of pmboostrap, git cloned the pmbootstrap repo, ran pmbootstrap init, sourced envkernel from within my mainline kernel repo that's up to date and everything, and then ran make defconfig to make sure everything worked and I stumbled upon that issue.
My terminal:
[lofenyy@Bonfilia ~]$ git clone https://gitlab.postmarketos.org/postmarketos/pmbootstrap
Cloning into 'pmbootstrap'...
warning: redirecting to https://gitlab.postmarketos.org/postmarketos/pmbootstrap.git/
remote: Enumerating objects: 16784, done.
remote: Counting objects: 100% (16784/16784), done.
remote: Compressing objects: 100% (4703/4703), done.
remote: Total 16784 (delta 10815), reused 16215 (delta 10527)
Receiving objects: 100% (16784/16784), 5.88 MiB | 1.67 MiB/s, done.
Resolving deltas: 100% (10815/10815), done.
[lofenyy@Bonfilia ~]$ cd pmbootstrap/
[lofenyy@Bonfilia pmbootstrap]$ ./pmbootstrap.py init
[07:34:19] Location of the 'work' path. Multiple chroots (native, device arch, device rootfs) will be created in there.
[07:34:19] Work path [/home/lofenyy/.local/var/pmbootstrap]:
[07:34:19] pmbootstrap does everything in Alpine Linux chroots, so your host system does not get modified. In order to work with these chroots, pmbootstrap calls 'sudo' internally. To see the commands it runs, you can run 'pmbootstrap log' in a second terminal.
[07:34:19] Setting up the native chroot and cloning the package build recipies (pmaports)...
[sudo] password for lofenyy:
[sudo] password for lofenyy:
[07:34:24] Update package index for x86_64 (4 file(s))
[07:34:30] Download http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/apk-tools-static-2.10.3-r1.apk
[07:34:31] (native) install alpine-base
[07:34:40] (native) install git
[07:34:48] (native) git clone https://gitlab.com/postmarketOS/pmaports.git
Cloning into 'pmaports.temp'...
Checking out files: 100% (2498/2498), done.
[07:34:59] NOTE: pmaports path: /home/lofenyy/pmbootstrap/aports
[07:34:59] Target device (either an existing one, or a new one for porting).
[07:34:59] Available (137): amazon-thor, asus-duma, asus-flo, asus-grouper, asus-me176c, asus-t00f, asus-tf101, asus-z00t, asus-z00vd, bq-chaozu, fairphone-fp1, fairphone-fp2, google-crosshatch, google-glass, gp-peak, htc-a5ul, htc-ace, htc-bravo, htc-evita, htc-flounder, htc-m7, htc-m8, htc-ville, htc-vision, htc-vivo, huawei-angler, huawei-cameron, huawei-y530, infocus-flatfish, jolla-sbj, leeco-s2, lenovo-karate, lg-bullhead, lg-d285, lg-d722, lg-d855, lg-dory, lg-e610, lg-h815, lg-hammerhead, lg-lenok, lg-mako, lg-vee7e, lg-w5, meizu-turbo, motorola-athene, motorola-cedric, motorola-falcon, motorola-ghost, motorola-harpia, motorola-maserati, motorola-montana, motorola-osprey, motorola-peregrine, motorola-potter, motorola-shamu, motorola-surnia, motorola-titan, nextbit-robin, nokia-frt, nokia-n9, nokia-n900, nokia-rm885, oneplus-bacon, oneplus-oneplus2, oneplus-onyx, oppo-find-7a, ouya-ouya, pine-a64lts, pine-dontbeevil, planet-geminipda, purism-librem5dev, qemu-aarch64, qemu-amd64, qemu-vexpress, raspberry-pi, raspberry-pi0, raspberry-pi3, samsung-apexq, samsung-espresso10, samsung-gts210velte, samsung-gts210vewifi, samsung-hero2lte, samsung-herolte, samsung-i747m, samsung-i8190, samsung-i8200, samsung-i9003, samsung-i9070, samsung-i9100, samsung-i9195, samsung-i927, samsung-i9305, samsung-jflte, samsung-klte, samsung-kminilte, samsung-kylepro, samsung-kylessopen, samsung-kylevess, samsung-lt01wifi, samsung-lt023g, samsung-maguro, samsung-manta, samsung-n5110, samsung-n7100, samsung-p4wifi, samsung-s6500d, samsung-serranodsdd, semc-anzu, semc-smultron, sony-amami, sony-aries, sony-castor-windy, sony-coconut, sony-honami, sony-nicki, sony-scorpion, sony-seagull, sony-sirius, sony-taoshan, sony-tulip, sony-yuga, surftab-wintron7.0, t2m-flame, tablet-x64uefi, teclast-x80pro, wiko-lenny3, wingtech-wt88047, xiaomi-aries, xiaomi-armani, xiaomi-cancro, xiaomi-ido, xiaomi-mido, xiaomi-santoni, xiaomi-tissot, zte-kis3, zte-p731a20
[07:34:59] Device [samsung-kylessopen]:
[07:35:09] Username [user]:
[07:35:09] Available user interfaces (8):
[07:35:09] * none: No graphical environment
[07:35:09] * hildon: (X11) Lightweight GTK+2 UI (optimized for single-touch touchscreens)
[07:35:09] * i3wm: (X11) Tiling WM (keyboard required)
[07:35:09] * matchbox: (X11) Very basic user interface for handhelds
[07:35:09] * mate: (X11) MATE Desktop Environment, fork of GNOME2 (stylus recommended)
[07:35:09] * plasma-mobile: (Wayland) Mobile variant of KDE Plasma, optimized for touchscreen (slow without hardware acceleration!)
[07:35:09] * plasma-mobile-extras: Plasma Mobile with more apps pre-installed (video and music players, pdf reader, etc.)
[07:35:09] * weston: (Wayland) Reference compositor (demo, not a phone interface)
[07:35:09] * xfce4: (X11) Lightweight GTK+2 desktop (stylus recommended)
[07:35:09] User interface [none]:
[07:35:10] Build options: Parallel jobs: 11, ccache per arch: 0
[07:35:10] Change them? (y/n) [n]:
[07:35:10] Additional packages that will be installed to rootfs. Specify them in a comma separated list (e.g.: vim,file) or "none"
[07:35:10] Extra packages [none]:
[07:35:11] Your host timezone: America/Edmonton
[07:35:11] Use this timezone instead of GMT? (y/n) [y]:
[07:35:11] Device hostname (short form, e.g. 'foo') [samsung-kylessopen]:
[07:35:12] WARNING: The applications in the chroots do not get updated automatically.
[07:35:12] Run 'pmbootstrap zap' to delete all chroots once a day before working with pmbootstrap!
[07:35:12] It only takes a few seconds, and all packages are cached.
[07:35:12] Done!
[lofenyy@Bonfilia pmbootstrap]$
[lofenyy@Bonfilia pmbootstrap]$ cd files/linux/
[lofenyy@Bonfilia linux]$ source ../../helpers/envkernel.sh
Initializing Alpine chroot (details: 'pmbootstrap log')
pmbootstrap envkernel.sh activated successfully.
* kernel source: /home/lofenyy/pmbootstrap/files/linux
* output folder: /home/lofenyy/pmbootstrap/files/linux/.output
* architecture: arm (samsung-kylessopen is armhf)
* cross compile:
* aliases: make, kernelroot, pmbootstrap, pmbroot, run-script (see 'type make' etc.)
[lofenyy@Bonfilia linux]$ make defconfig
*** pmbootstrap envkernel.sh active for /home/lofenyy/pmbootstrap/files/linux! ***
make: Entering directory '/mnt/linux'
make[1]: Entering directory '/mnt/linux/.output'
GEN Makefile
*** Default configuration is based on 'multi_v7_defconfig'
scripts/Kconfig.include:34: compiler 'armv6-alpine-linux-musleabihf-gcc' not found
make[2]: *** [../scripts/kconfig/Makefile:82: defconfig] Error 1
make[1]: *** [/mnt/linux/Makefile:557: defconfig] Error 2
make[1]: Leaving directory '/mnt/linux/.output'
make: *** [Makefile:179: sub-make] Error 2
make: Leaving directory '/mnt/linux'
Run 'pmbootstrap log' for details.