==> Synchronizing chroot copy [/home/leming/armv8/root] -> [leming]...done
==> Making package: refind 0.14.2-3 (Sat May 30 17:15:09 2026)
==> Retrieving sources...
  -> Found refind-src-0.14.2.tar.gz
  -> Found gnu-efi-4-compat.patch
  -> Found fix-target-option.patch
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha512sums...
    refind-src-0.14.2.tar.gz ... Passed
    gnu-efi-4-compat.patch ... Passed
    fix-target-option.patch ... Passed
==> Validating source files with b2sums...
    refind-src-0.14.2.tar.gz ... Passed
    gnu-efi-4-compat.patch ... Passed
    fix-target-option.patch ... Passed
==> Making package: refind 0.14.2-3 (Sat May 30 23:15:17 2026)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (4) efivar-39-2  dosfstools-4.2-5  efibootmgr-18-4  gnu-efi-4.0.4-1

Total Download Size:   0.59 MiB
Total Installed Size:  4.29 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 gnu-efi-4.0.4-1-aarch64 downloading...
 efivar-39-2-aarch64 downloading...
 dosfstools-4.2-5-aarch64 downloading...
 efibootmgr-18-4-aarch64 downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing dosfstools...
installing efivar...
installing efibootmgr...
installing gnu-efi...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Retrieving sources...
  -> Found refind-src-0.14.2.tar.gz
  -> Found gnu-efi-4-compat.patch
  -> Found fix-target-option.patch
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting refind-src-0.14.2.tar.gz with bsdtar
==> Starting prepare()...
patching file EfiLib/gnuefi-helper.c
patching file EfiLib/gnuefi-helper.h
patching file EfiLib/legacy.c
patching file filesystems/fsw_efi.h
patching file refind/driver_support.c
patching file refind/driver_support.h
patching file refind/lib.c
patching file refind/lib.h
patching file Make.common
==> Starting build()...
Did not find /usr/local/edk2-vUDK2018 or /usr/local/UDK2014/MyWorkSpace; building with GNU-EFI
make gnuefi
make[1]: Entering directory '/build/refind/src/refind-0.14.2'
make MAKEWITH=GNUEFI -C libeg
make[2]: Entering directory '/build/refind/src/refind-0.14.2/libeg'
/usr/bin/aarch64-linux-gnu-gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -fno-merge-constants -ffreestanding -DEFIAARCH64 -fno-stack-check -fpic -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DEFIAARCH64 -I. -I./../include \
      -D__MAKEWITH_GNUEFI -c nanojpeg.c -o nanojpeg.o
/usr/bin/aarch64-linux-gnu-gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -fno-merge-constants -ffreestanding -DEFIAARCH64 -fno-stack-check -fpic -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DEFIAARCH64 -I. -I./../include \
      -D__MAKEWITH_GNUEFI -c nanojpeg_xtra.c -o nanojpeg_xtra.o
/usr/bin/aarch64-linux-gnu-gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -fno-merge-constants -ffreestanding -DEFIAARCH64 -fno-stack-check -fpic -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DEFIAARCH64 -I. -I./../include \
      -D__MAKEWITH_GNUEFI -c screen.c -o screen.o
/usr/bin/aarch64-linux-gnu-gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -fno-merge-constants -ffreestanding -DEFIAARCH64 -fno-stack-check -fpic -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DEFIAARCH64 -I. -I./../include \
      -D__MAKEWITH_GNUEFI -c image.c -o image.o
/usr/bin/aarch64-linux-gnu-gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -fno-merge-constants -ffreestanding -DEFIAARCH64 -fno-stack-check -fpic -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DEFIAARCH64 -I. -I./../include \
      -D__MAKEWITH_GNUEFI -c text.c -o text.o
/usr/bin/aarch64-linux-gnu-gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -fno-merge-constants -ffreestanding -DEFIAARCH64 -fno-stack-check -fpic -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DEFIAARCH64 -I. -I./../include \
      -D__MAKEWITH_GNUEFI -c load_bmp.c -o load_bmp.o
/usr/bin/aarch64-linux-gnu-gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -fno-merge-constants -ffreestanding -DEFIAARCH64 -fno-stack-check -fpic -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DEFIAARCH64 -I. -I./../include \
      -D__MAKEWITH_GNUEFI -c load_icns.c -o load_icns.o
/usr/bin/aarch64-linux-gnu-gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -fno-merge-constants -ffreestanding -DEFIAARCH64 -fno-stack-check -fpic -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DEFIAARCH64 -I. -I./../include \
      -D__MAKEWITH_GNUEFI -c lodepng.c -o lodepng.o
/usr/bin/aarch64-linux-gnu-gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -fno-merge-constants -ffreestanding -DEFIAARCH64 -fno-stack-check -fpic -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DEFIAARCH64 -I. -I./../include \
      -D__MAKEWITH_GNUEFI -c lodepng_xtra.c -o lodepng_xtra.o
In file included from /usr/include/efi/efi.h:54,
                 from ../refind/global.h:49,
                 from lodepng_xtra.c:26:
lodepng_xtra.c: In function ‘MyMemCpy’:
lodepng_xtra.c:95:23: warning: passing argument 2 of ‘BS->CopyMem’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   95 |     MyCopyMem(__dest, __src, __n);
      |                       ^~~~~
/usr/include/efi/aarch64/efibind.h:159:53: note: in definition of macro ‘uefi_call_wrapper’
  159 | #define uefi_call_wrapper(func, va_num, ...) (func)(__VA_ARGS__)
      |                                                     ^~~~~~~~~~~
../refind/lib.h:138:35: note: in expansion of macro ‘refit_call3_wrapper’
  138 | #define MyCopyMem(Dest, Src, len) refit_call3_wrapper(gBS->CopyMem, Dest, Src, len)
      |                                   ^~~~~~~~~~~~~~~~~~~
lodepng_xtra.c:95:5: note: in expansion of macro ‘MyCopyMem’
   95 |     MyCopyMem(__dest, __src, __n);
      |     ^~~~~~~~~
lodepng_xtra.c:95:23: note: expected ‘VOID *’ {aka ‘void *’} but argument is of type ‘const void *’
/usr/include/efi/aarch64/efibind.h:159:53: note: in definition of macro ‘uefi_call_wrapper’
  159 | #define uefi_call_wrapper(func, va_num, ...) (func)(__VA_ARGS__)
      |                                                     ^~~~~~~~~~~
../refind/lib.h:138:35: note: in expansion of macro ‘refit_call3_wrapper’
  138 | #define MyCopyMem(Dest, Src, len) refit_call3_wrapper(gBS->CopyMem, Dest, Src, len)
      |                                   ^~~~~~~~~~~~~~~~~~~
lodepng_xtra.c:95:5: note: in expansion of macro ‘MyCopyMem’
   95 |     MyCopyMem(__dest, __src, __n);
      |     ^~~~~~~~~
/usr/bin/aarch64-linux-gnu-ar cq libeg.a nanojpeg.o nanojpeg_xtra.o screen.o image.o text.o load_bmp.o load_icns.o lodepng.o lodepng_xtra.o
make[2]: /usr/bin/aarch64-linux-gnu-ar: No such file or directory
make[2]: *** [../Make.common:208: libeg.a] Error 127
make[2]: Leaving directory '/build/refind/src/refind-0.14.2/libeg'
make[1]: *** [Makefile:85: gnuefi] Error 2
make[1]: Leaving directory '/build/refind/src/refind-0.14.2'
make: *** [Makefile:46: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /home/leming/armv8/leming/build
[?12l[?25h[?12l[?25h