[Buildroot] Build failure with alpine

Ryan Barnett ryanbarnett3 at gmail.com
Sat Apr 10 20:13:49 UTC 2021


On Sat, Apr 10, 2021 at 3:07 PM Ryan Barnett <ryanbarnett3 at gmail.com> wrote:
>
> Vicary,
>
> On Mon, Dec 28, 2020 at 3:28 AM Vicary A via buildroot
> <buildroot at busybox.net> wrote:
> >
> > Hello everyone,
> >
> > I am new to buildroot, please let me know if this is not the correct place for general help.
> >
> > This is my first time building buildroot, I started with a clean alpine container with the 2020.11 archive.
> >
> > I installed alpine equivalents of recommended prerequisites from the official site, packages are:
> >
> > I typed "make raspberrypi4_64_defconfig" followed by "make all", I can see most of the compilation went through until I get the following lines:
> >
> > making install in e2fsck
> > make[2]: Entering directory '/root/buildroot/output/build/host-e2fsprogs-1.45.6/e2fsck'
> >         MKDIR_P /root/buildroot/output/host/sbin /root/buildroot/output/host/share/man/man8
> > make[2]: config/install-sh: No such file or directory
> > make[2]: *** [Makefile:522: installdirs] Error 127
> > make[2]: Leaving directory '/root/buildroot/output/build/host-e2fsprogs-1.45.6/e2fsck'
> > make[1]: *** [Makefile:433: install-progs-recursive] Error 1
> > make[1]: Leaving directory '/root/buildroot/output/build/host-e2fsprogs-1.45.6'
> > make: *** [package/pkg-generic.mk:260: /root/buildroot/output/build/host-e2fsprogs-1.45.6/.stamp_host_installed] Error 2
>
> This specific issue is caused by coreutils not being installed since
> e2fsck make file requires the full version of mkdir. Here is a
> Dockerfile that I have with the list of the minimum dependencies found
> for buildroot.
>
> https://github.com/rjbarnet/alpine-buildroot-dev/blob/master/Dockerfile
>
> I have a few being patches that I have not submitted for upstreaming
> yet can be found here:
>
> https://github.com/rjbarnet/buildroot/tree/add-alpine-support
>
> In the future I hope to provide some feedback on minimum requirements
> for buildroot in the future. Please let me know if you have any
> feedback in regards to using Alpine with buildroot.

I also forgot to mention that you will not be able to use any of the
external toolchains or build a toolchain based on uclibc-ng since
uclibc-ng is unable to build when the host's c library is musl.

Thanks,
-Ryan



More information about the buildroot mailing list