我正在尝试在 Ubuntu 20.04.2 LTS 上编译uefi 应用程序,但编译因错误而终止。
\n./mkkeys.sh \nEnter a Common Name to embed in the keys: keys\ncc -I/home/jr/Downloads/xen-uefi/efitools/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c cert-to-efi-sig-list.c -o cert-to-efi-sig-list.o\ncert-to-efi-sig-list.c:9: warning: "__STDC_VERSION__" redefined\n 9 | #define __STDC_VERSION__ 199901L\n | \n<built-in>: note: this is the location of the previous definition\nmake -C lib lib.a\nmake[1]: Entering directory \'/home/jr/Downloads/xen-uefi/efitools/lib\'\ncc -I/home/jr/Downloads/xen-uefi/efitools/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI …Run Code Online (Sandbox Code Playgroud)