>>> efitools: Building main/efitools 1.9.2-r8 (using abuild 3.11.0-r1) started Tue, 16 May 2023 17:25:15 +0000 >>> efitools: Checking sanity of /home/buildozer/aports/main/efitools/APKBUILD... >>> efitools: Analyzing dependencies... >>> efitools: Installing for build: build-base mount gnu-efi-dev openssl-dev>3 perl-file-slurp help2man sbsigntool (1/16) Installing libblkid (2.38.1-r8) (2/16) Installing libmount (2.38.1-r8) (3/16) Installing mount (2.38.1-r8) (4/16) Installing gnu-efi (3.0.17-r0) (5/16) Installing gnu-efi-dev (3.0.17-r0) (6/16) Installing openssl-dev (3.1.0-r5) (7/16) Installing libbz2 (1.0.8-r6) (8/16) Installing perl (5.36.1-r1) (9/16) Installing perl-file-slurp (9999.32-r2) (10/16) Installing help2man (1.49.3-r0) (11/16) Installing libuuid (2.38.1-r8) (12/16) Installing sbsigntool (0.9.5-r0) (13/16) Installing .makedepends-efitools (20230516.172515) (14/16) Installing perl-error (0.17029-r1) (15/16) Installing perl-git (2.40.1-r0) (16/16) Installing git-perl (2.40.1-r0) Executing busybox-1.36.0-r11.trigger OK: 421 MiB in 116 packages >>> efitools: Cleaning up srcdir >>> efitools: Cleaning up pkgdir >>> efitools: Fetching https://distfiles.alpinelinux.org/distfiles/edge/efitools-1.9.2.tar.gz >>> efitools: Fetching https://distfiles.alpinelinux.org/distfiles/edge/efitools-1.9.2.tar.gz >>> efitools: Checking sha512sums... efitools-1.9.2.tar.gz: OK 001-datatypes.patch: OK 002-fix-parallel-make.patch: OK 003-fix-wchar_t.patch: OK 004-typo.patch: OK 005-riscv64.patch: OK >>> efitools: Unpacking /var/cache/distfiles/edge/efitools-1.9.2.tar.gz... >>> efitools: 001-datatypes.patch patching file lib/asn1/oid.h Hunk #1 succeeded at 10 (offset 2 lines). >>> efitools: 002-fix-parallel-make.patch patching file Make.rules >>> efitools: 003-fix-wchar_t.patch patching file Make.rules patching file cert-to-efi-hash-list.c patching file flash-var.c patching file hash-to-efi-sig-list.c patching file sign-efi-sig-list.c >>> efitools: 004-typo.patch patching file lib/console.c >>> efitools: 005-riscv64.patch patching file Make.rules make -C lib lib-efi.a make[1]: Entering directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c HelloWorld.c -o HelloWorld.o openssl req -new -x509 -newkey rsa:2048 -subj "/CN=DB/" -keyout DB.key -out DB.crt -days 3650 -nodes -sha256 gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c simple_file.c -o simple_file.efi.o openssl req -new -x509 -newkey rsa:2048 -subj "/CN=PK/" -keyout PK.key -out PK.crt -days 3650 -nodes -sha256 ......+...+....+++++++++++++++++++++++++++++++++++++++*..+.+..+.............+...+++++++++++++++++++++++++++++++++++++++*.+............+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c pecoff.c -o pecoff.efi.o .....+.+..............+.+..+...............+.......+....+.++++++++++++++++gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c cert-to-efi-sig-list.c -o cert-to-efi-sig-list.o +++++++++++++++++++++++*....+.............+..+.......+..+...+...+++++++++++++++.+.++++++++++++++++++++++++*...+.+.+............+..+...+....+...+...+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c guid.c -o guid.efi.o ......+...+...+...............+..+..+...+.+make -C lib lib.a ......+......+.......+.....+...+.+..+...+...................+.................+.....+....+......+.....+.........+....+...+...............+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c sha256.c -o sha256.efi.o ...+openssl req -new -x509 -newkey rsa:2048 -subj "/CN=KEK/" -keyout KEK.key -out KEK.crt -days 3650 -nodes -sha256 make[1]: Entering directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' ...............+cert-to-efi-sig-list.c:9: warning: "__STDC_VERSION__" redefined 9 | #define __STDC_VERSION__ 199901L | : note: this is the location of the previous definition .......+.....+...........+.+....+........+......+.......+...........+.....+..........+...+...+......+......+..........+..+.....+....+.+.....+...+.+.......................+...+...+.+..+.........+...+.............++++++gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c sign-efi-sig-list.c -o sign-efi-sig-list.o +++++....+...+...++++++++++++++++++..+...+...+...+...++++++*...............+...gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c simple_file.c -o simple_file.o +++++++++++++++gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c console.c -o console.efi.o ++++++++++++++++++++++++*.........................+..+......+...+.......+.......+......+...+..+..+...+......+....+.....+...................+..........++.....................+.............+.+..+.+.....................+...+............+.........+.......+.....+..++.......+.+++........+++gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c Loader.c -o Loader.o ..........++gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c pecoff.c -o pecoff.o +..++ .+...+...............+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c execute.c -o execute.efi.o ...+.................+.............+..+...+...+....+.....+......+....+........+...+..........+.........+..+...+++++++++++++++++++++++++++++.+...+...++++++++++*......+..+.......+..+...+.+...........+.+..+...+..........+.........++++++++++++++++++++++++ ....+++....+..++.+.++...+.........+++++++++++++++++*++....+...++++++++++++++++++++++++++++++*..+.+.....+....+.....+.+++++++++++++++++++++..+...+.+.+++++++++++++++++*..+...++..+sign-efi-sig-list.c:7: warning: "__STDC_VERSION__" redefined 7 | #define __STDC_VERSION__ 199901L | : note: this is the location of the previous definition ............+............+...+.....+.............+....+...+..+......+.......+.............+.....................+make -C lib/asn1 libasn1-efi.a ......+..+...+.....+......+............+...................+.+.........+............+.+.....+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c guid.c -o guid.o .......++......+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c configtable.c -o configtable.efi.o .............................++.+....++.....+...................++....+.................+...+...+..+.+......+...........+.......+make[1]: Entering directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib/asn1' .........+..+...+...+...+.............+..+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c ReadVars.c -o ReadVars.o .+........+......+.........+......................+.......+............+..+..............+.........+.+..........+..+.....+.....gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c sha256.c -o sha256.o ......+....+......+....+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c shell.c -o shell.efi.o ...+...+...+...........+......+..+......+..........+.........+.+..+....+...+...+..+............................++...+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c asn1.c -o asn1.efi.o ......+........+..........+.+...+...............+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c UpdateVars.c -o UpdateVars.o .................+............+...........+...+...+....+.......+...+.....+.....+......+............+...+.........+.+.+.gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c console.c -o console.o ...........+..+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c security_policy.c -o security_policy.efi.o ..+..+.+............+.+.....+.+...........+.+.....+.+...........+......+.........+...+...+......+.......+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c asn1_parser.c -o asn1_parser.efi.o ..................+..............+...++...+.........++gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c KeyTool.c -o KeyTool.o .+.....++..+.++.......+......++ ..+.....+..........+......+..............+....+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c execute.c -o execute.o ......+......+ReadVars.c: In function 'efi_main': ReadVars.c:177:73: warning: dangling pointer 'variables' to an unnamed temporary may be used [-Wdangling-pointer=] 177 | Print(L"Variable %s has no entries\n", variables[i]); | ^ ReadVars.c:112:41: note: unnamed temporary defined here 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^ ReadVars.c:179:67: warning: dangling pointer 'variables' to an unnamed temporary may be used [-Wdangling-pointer=] 179 | Print(L"Failed to get %s: %d\n", variables[i], status); | ^ ReadVars.c:112:41: note: unnamed temporary defined here 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^ ReadVars.c:184:61: warning: dangling pointer 'variables' to an unnamed temporary may be used [-Wdangling-pointer=] 184 | parse_db(data, len, image, variables[i], save_keys); | ^ ReadVars.c:112:41: note: unnamed temporary defined here 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^ gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c shim_protocol.c -o shim_protocol.efi.o ReadVars.c:182:61: warning: dangling pointer 'variables' to an unnamed temporary may be used [-Wdangling-pointer=] 182 | parse_db(data, len, image, variables[i], save_keys); | ^ ReadVars.c:112:41: note: unnamed temporary defined here 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^ .ReadVars.c:181:68: warning: dangling pointer 'variables' to an unnamed temporary may be used [-Wdangling-pointer=] 181 | Print(L"Variable %s length %d\n", variables[i], len); | ^ +ReadVars.c:112:41: note: unnamed temporary defined here 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^ ..+...+.+.....+..+.........+....+----- gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c enumerator.c -o enumerator.efi.o ...+...+.......+...+.....+...+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c HashTool.c -o HashTool.o ...+.....+...+.........+.+...+...+....+..+......UpdateVars.c: In function 'efi_main': +UpdateVars.c:24:49: warning: variable 'owner_guid' set but not used [-Wunused-but-set-variable] 24 | CHAR16 **ARGV, *var, *name, *progname, *owner_guid; | ^~~~~~~~~~ .+........+...+..gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c configtable.c -o configtable.o ....+.....+.+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c pkcs7verify.c -o pkcs7verify.efi.o ............+...............+............+..+......+.+....+..gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c chunk.c -o chunk.efi.o ..................+......+.+......+......+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c SetNull.c -o SetNull.o .....+.....+.+...+........+asn1_parser.c: In function 'iterate': asn1_parser.c:82:15: warning: variable 'level' set but not used [-Wunused-but-set-variable] 82 | u_int level; | ^~~~~ ...............+.+.......+.....+..+.+.+...+......+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c shell.c -o shell.o ..+......+....+........+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c variables.c -o variables.o ...+......+..+...................+......+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c oid.c -o oid.efi.o ..+.......+....+...........+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c ShimReplace.c -o ShimReplace.o ...+......+..+...............+...+...+...+...+....+............+...+HashTool.c: In function 'efi_main': HashTool.c:187:25: warning: variable 'setup_mode_arg' set but not used [-Wunused-but-set-variable] 187 | setup_mode_arg = 0, keytool = NOSEL; | ^~~~~~~~~~~~~~ HashTool.c:185:28: warning: variable 'setup_mode' set but not used [-Wunused-but-set-variable] 185 | int c = 0, setup_mode = NOSEL, uefi_reboot = NOSEL, | ^~~~~~~~~~ ...+......+...+..+......+.........+....+...+.................gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c security_policy.c -o security_policy.o ....+......+........+.......+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c identification.c -o identification.efi.o ......+.....+....+...+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c sig-list-to-certs.c -o sig-list-to-certs.o ...........+....+...........+...+.+...+..+.......+................++............+..+.........+.+............++.............+.......+..+......+...+...............+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c shim_protocol.c -o shim_protocol.o .......+.+.....+......+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -fno-toplevel-reorder -DBUILD_EFI -c x509.c -o x509.efi.o ...+.........+...+..............+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c hash-to-efi-sig-list.c -o hash-to-efi-sig-list.o ....+.+...........+.....+....+.....................+...+............+...+ShimReplace.c: In function 'efi_main': ShimReplace.c:51:37: warning: passing argument 2 of 'execute' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 51 | efi_status = execute(image, loader); | ^~~~~~ In file included from ShimReplace.c:17: /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/execute.h:5:35: note: expected 'CHAR16 *' {aka 'unsigned int *'} but argument is of type 'const CHAR16 *' {aka 'const unsigned int *'} 5 | execute(EFI_HANDLE image, CHAR16 *name); | ~~~~~~~~^~~~ ShimReplace.c:57:37: warning: passing argument 2 of 'execute' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 57 | efi_status = execute(image, fallback); | ^~~~~~~~ /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/execute.h:5:35: note: expected 'CHAR16 *' {aka 'unsigned int *'} but argument is of type 'const CHAR16 *' {aka 'const unsigned int *'} 5 | execute(EFI_HANDLE image, CHAR16 *name); | ~~~~~~~~^~~~ ................+sig-list-to-certs.c:7: warning: "__STDC_VERSION__" redefined 7 | #define __STDC_VERSION__ 199901L | : note: this is the location of the previous definition ........+..+....+....+..+........+......+.............+....+........+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c pkcs7verify.c -o pkcs7verify.o ...........+.+..........+......++...............++.........gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c efi-readvar.c -o efi-readvar.o ++..........................++....++ .+++++++++++++++++++++++++++++++++++++++*.+......+.........+........+............+++++...+++++++++++++++++++++++++++++++++++*....+..+.+hash-to-efi-sig-list.c:7: warning: "__STDC_VERSION__" redefined 7 | #define __STDC_VERSION__ 199901L | : note: this is the location of the previous definition ...+..+identification.c:33:24: warning: 'x501rdns' defined but not used [-Wunused-const-variable=] 33 | static const x501rdn_t x501rdns[] = { | ^~~~~~~~ .+...+..+....+....+.....+...+..................+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c kernel_efivars.c -o kernel_efivars.o .....+....+.+..................+..+..+........................+.+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c efi-updatevar.c -o efi-updatevar.o ...+...+...+..+.......+.......+........+...+....+..............+...........+.........+......................+.+........+...........+.......+..........+...gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c openssl_sign.c -o openssl_sign.o +...+...............+......+..+......+.+...+.....+.....+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c cert-to-efi-hash-list.c -o cert-to-efi-hash-list.o +....++..++......++...++ ....+...........+....+.....................+..+...+.+kernel_efivars.c:19: warning: "__STDC_VERSION__" redefined 19 | #define __STDC_VERSION__ 199901L | : note: this is the location of the previous definition ...+----- ...+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -Os -Wformat -Werror=format-security -Wno-pointer-sign -O2 -g -fpic -Wall -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DCONFIG_aarch64 -c flash-var.c -o flash-var.o ..+...+ar rcv libasn1-efi.a asn1.efi.o asn1_parser.efi.o enumerator.efi.o chunk.efi.o oid.efi.o identification.efi.o x509.efi.o +++++ > noPK.esl a - asn1.efi.o a - asn1_parser.efi.o a - enumerator.efi.o a - chunk.efi.o a - oid.efi.o a - identification.efi.o a - x509.efi.o make[1]: Leaving directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib/asn1' ----- openssl req -new -x509 -newkey rsa:2048 -subj "/CN=DB1/" -keyout DB1.key -out DB1.crt -days 3650 -nodes -sha256 flash-var.c:13: warning: "__STDC_VERSION__" redefined 13 | #define __STDC_VERSION__ 199901L | : note: this is the location of the previous definition openssl req -new -x509 -newkey rsa:2048 -subj "/CN=DB2/" -keyout DB2.key -out DB2.crt -days 3650 -nodes -sha256 .+.................+++++++++++++++++++++++++++++++++++++++*....+..+.+.....+++++++++++++++++++++++++++++++++++++++*.+......+++efi-readvar.c:20: warning: "__STDC_VERSION__" redefined 20 | #define __STDC_VERSION__ 199901L | : note: this is the location of the previous definition +++ .+..................+++++++++++++++++++++++++++++++++++++++*..+++++++++++++++++++++++++++++++++++++++*....+...+..+.+...........+.+.........+.....+...............+...................+.....+....+...+....................+...+.........+........+.......+............+....+..............+..+.........+..+...+....+...+........+............+..........+.....+....+........+.+.................+.........+.+........+.+.....+.+..+......+.+++++++++++++++++++++++++++++...+++++++++++*.+.........+.........+......+.+......+............+...+...+..............+...+.........+...+.+..............+...+....++++++++++++++++++++++++++++.+..+++++++++++*.......+............+...+..+...........+.+....+.....+.....+......+....+.+..................+........+....................efi-updatevar.c:23: warning: "__STDC_VERSION__" redefined 23 | #define __STDC_VERSION__ 199901L | +: note: this is the location of the previous definition ......+.........+.+....+..+......+.......+...+ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-aarch64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_aarch64_efi.lds --defsym=EFI_SUBSYSTEM=0x0a SetNull.o -o SetNull.so -lefi -lgnuefi /usr/lib/gcc/aarch64-alpine-linux-musl/13.1.1/libgcc.a ...+......+..+..+.............+....+..+......+.....................+..+...+......................+In file included from flash-var.c:7: In function 'memset', inlined from 'main' at flash-var.c:186:2: /usr/include/fortify/string.h:75:16: warning: '__builtin_memset' offset [0, 56] is out of the bounds [0, 0] [-Warray-bounds=] 75 | return __builtin_memset(__d, __c, __n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .+...+...........+........+...+...+....+....+...+......+openssl_sign.c: In function 'read_engine_private_key': openssl_sign.c:118:9: warning: 'ENGINE_load_builtin_engines' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 118 | ENGINE_load_builtin_engines(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from openssl_sign.c:10: /usr/include/openssl/engine.h:358:28: note: declared here 358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ openssl_sign.c:119:9: warning: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 119 | e = ENGINE_by_id(engine); | ^ /usr/include/openssl/engine.h:336:31: note: declared here 336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id); | ^~~~~~~~~~~~ openssl_sign.c:135:9: warning: 'ENGINE_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 135 | if (!ENGINE_init(e)) { | ^~ /usr/include/openssl/engine.h:620:27: note: declared here 620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e); | ^~~~~~~~~~~ openssl_sign.c:141:9: warning: 'ENGINE_load_private_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 141 | pkey = ENGINE_load_private_key(e, keyfile, ui, NULL); | ^~~~ /usr/include/openssl/engine.h:638:11: note: declared here 638 | EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, | ^~~~~~~~~~~~~~~~~~~~~~~ openssl_sign.c:142:9: warning: 'ENGINE_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 142 | ENGINE_finish(e); | ^~~~~~~~~~~~~ /usr/include/openssl/engine.h:628:27: note: declared here 628 | OSSL_DEPRECATEDIN_3_0 int ENGINE_finish(ENGINE *e); | ^~~~~~~~~~~~~ openssl_sign.c:145:9: warning: 'ENGINE_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 145 | ENGINE_free(e); | ^~~~~~~~~~~ /usr/include/openssl/engine.h:493:27: note: declared here 493 | OSSL_DEPRECATEDIN_3_0 int ENGINE_free(ENGINE *e); | ^~~~~~~~~~~ ..+..+.+.........+.....+....+......+.........++# check we have no undefined symbols .......nm -D SetNull.so | grep ' U ' && exit 1 || exit 0 ....++....+objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc -O binary SetNull.so SetNull.efi +...++..++ .+.........+...+..+.......+......+.........+.....+----- .+sbsign --key DB.key --cert DB.crt --output SetNull-signed.efi SetNull.efi .........+.........+..+...+.......+..+............+..................++Invalid DOS header magic make: *** [Make.rules:130: SetNull-signed.efi] Error 1 make: *** Waiting for unfinished jobs.... ++++ .........+...+..+................+.....+....+...+.....+++++++++++++++++++++++++++++++++++++++*......+.+...+.....+..........+.....+.............+..+.......+...+........+...+.+......+...+..+..........+...+..............+.+..+...+.+........+.+..+.......+...+..+............+...+..........+...+........+....+........+.............+..+.......+.....+++++++++++++++++++++++++++++++++++++++*.+.............+.....+...+...+.......+...+......+........+......+....+............+...+...........+.........+.......+...+........+...+....+.....+.+..+...+...............+.......+..+......+....+...............+......+.....+......+......+....+.....+...+...+....+........+.+.....+.+.....+.........................+...+........+...+.......+...+.....+.......+...+.........+..+...+.+.....+....+...+.........+......+..+.+...........+...+.............+..............+......+...+.........+...+....+...+.....+.......+...........+....+.....+.+...+...........+....+......+..............+....+..+....+...............+...............+...............+..+...+....+...........+......+....+.....+.+.....+.+.....+.......+...........+.........+.......+.........+..+.......+..................+..+......+.+.....+...+.+......+.....+..........+...+......+..+...............+....+.....+.............+....................+.+............+.....+.........+.............+...+........+.......+....................++++++ ----- ar rcv lib-efi.a simple_file.efi.o pecoff.efi.o guid.efi.o sha256.efi.o console.efi.o execute.efi.o configtable.efi.o shell.efi.o security_policy.efi.o shim_protocol.efi.o pkcs7verify.efi.o variables.o a - simple_file.efi.o a - pecoff.efi.o a - guid.efi.o a - sha256.efi.o a - console.efi.o a - execute.efi.o a - configtable.efi.o a - shell.efi.o a - security_policy.efi.o a - shim_protocol.efi.o a - pkcs7verify.efi.o a - variables.o make[1]: Leaving directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' ar rcv lib.a simple_file.o pecoff.o guid.o sha256.o console.o execute.o configtable.o shell.o security_policy.o shim_protocol.o pkcs7verify.o kernel_efivars.o openssl_sign.o a - simple_file.o a - pecoff.o a - guid.o a - sha256.o a - console.o a - execute.o a - configtable.o a - shell.o a - security_policy.o a - shim_protocol.o a - pkcs7verify.o a - kernel_efivars.o a - openssl_sign.o make[1]: Leaving directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' rm SetNull.so KeyTool.o DB1.crt ShimReplace.o ReadVars.o SetNull.o HelloWorld.o UpdateVars.o HashTool.o Loader.o DB2.crt >>> ERROR: efitools: build failed >>> efitools: Uninstalling dependencies... (1/16) Purging .makedepends-efitools (20230516.172515) (2/16) Purging mount (2.38.1-r8) (3/16) Purging gnu-efi-dev (3.0.17-r0) (4/16) Purging gnu-efi (3.0.17-r0) (5/16) Purging openssl-dev (3.1.0-r5) (6/16) Purging perl-file-slurp (9999.32-r2) (7/16) Purging help2man (1.49.3-r0) (8/16) Purging sbsigntool (0.9.5-r0) (9/16) Purging git-perl (2.40.1-r0) (10/16) Purging perl-git (2.40.1-r0) (11/16) Purging perl-error (0.17029-r1) (12/16) Purging perl (5.36.1-r1) (13/16) Purging libbz2 (1.0.8-r6) (14/16) Purging libmount (2.38.1-r8) (15/16) Purging libuuid (2.38.1-r8) (16/16) Purging libblkid (2.38.1-r8) Executing busybox-1.36.0-r11.trigger OK: 375 MiB in 100 packages