[Bug 1843105] Re: FTBFS in eoan
Steve Langasek
1843105 at bugs.launchpad.net
Mon Sep 19 17:31:16 UTC 2022
** Changed in: shim (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to shim in Ubuntu.
https://bugs.launchpad.net/bugs/1843105
Title:
FTBFS in eoan
Status in shim package in Ubuntu:
Fix Released
Bug description:
Due to a new check in GCC 9:
gcc -ggdb -O0 -fno-stack-protector -fno-strict-aliasing -fpic -fshort-wchar -Wall -Wsign-compare -Werror -fno-builtin -Werror=sign-compare -ffreestanding -std=gnu89 -I/usr/lib/gcc/x86_64-linux-gnu/9/include "-DDEFAULT_LOADER=L\"\\\\grubx64.efi\"" "-DDEFAULT_LOADER_CHAR=\"\\\\grubx64.efi\"" -nostdinc -I/home/ubuntu/shim-15+1533136590.3beb971/Cryptlib -I/home/ubuntu/shim-15+1533136590.3beb971/Cryptlib/Include -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I/home/ubuntu/shim-15+1533136590.3beb971/include -iquote /home/ubuntu/shim-15+1533136590.3beb971 -iquote /home/ubuntu/shim-15+1533136590.3beb971 -mno-mmx -mno-sse -mno-red-zone -nostdinc -maccumulate-outgoing-args -m64 -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI -DNO_BUILTIN_VA_FUNCS -DMDE_CPU_X64 -DPAGE_SIZE=4096 -DENABLE_HTTPBOOT "-DEFI_ARCH=L\"x64\"" "-DDEBUGDIR=L\"/usr/lib/debug/usr/share/shim/x64-15-15/\"" -DVENDOR_CERT_FILE=\"debian/canonical-uefi-ca.der\" -DENABLE_SHIM_CERT -Wdate-time -D_FORTIFY_SOURCE=2 -c -o MokManager.o MokManager.c
MokManager.c: In function ‘write_back_mok_list’:
MokManager.c:1080:19: error: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
1080 | if (CompareGuid(&(list[i].Type), &X509_GUID) == 0)
| ^~~~~~~~~~~~~~~
MokManager.c:1102:19: error: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
1102 | if (CompareGuid(&(list[i].Type), &X509_GUID) == 0) {
| ^~~~~~~~~~~~~~~
MokManager.c: In function ‘delete_cert’:
MokManager.c:1143:19: error: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
1143 | if (CompareGuid(&(mok[i].Type), &X509_GUID) != 0)
| ^~~~~~~~~~~~~~
MokManager.c: In function ‘delete_hash_in_list’:
MokManager.c:1194:20: error: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
1194 | if ((CompareGuid(&(mok[i].Type), &Type) != 0) ||
| ^~~~~~~~~~~~~~
MokManager.c: In function ‘delete_keys’:
MokManager.c:1358:19: error: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
1358 | if (CompareGuid(&(del_key[i].Type), &X509_GUID) == 0) {
| ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [<builtin>: MokManager.o] Error 1
make: Leaving directory '/home/ubuntu/shim-15+1533136590.3beb971'
dh_auto_build: make -j1 RELEASE=15 COMMIT_ID=3beb971b10659cf78144ddc5eeea83501384440c MAKELEVEL=0 EFI_PATH=/usr/lib ENABLE_HTTPBOOT=true ENABLE_SHIM_CERT=1 ENABLE_SBSIGN=1 VENDOR_CERT_FILE=debian/canonical-uefi-ca.der EFIDIR=ubuntu returned exit code 2
make[1]: *** [debian/rules:40: override_dh_auto_build] Error 255
make[1]: Leaving directory '/home/ubuntu/shim-15+1533136590.3beb971'
make: *** [debian/rules:34: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shim/+bug/1843105/+subscriptions
More information about the foundations-bugs
mailing list