On Mon, 2019-09-30 at 04:47 -0400, Jared Stevens wrote: > Hi all, > > I figured I would create a new thread discussing my other problem with my > current LFS build. This one involves attempting to follow the hint for > installing the necessary packages for the LFS system > to boot through UEFI. > > I have been able to follow this hint successfully with no issues in the past, > but now I encounter an error when attempting to install efivars-37: > > make[1]: Entering directory '/usr/src/lfs/efivar-37/src' > cc -O2 -flto -g3 -I/usr/src/lfs/efivar-37/src/include/ > -specs=/usr/src/lfs/efivar-37/gcc.specs -L. -Wl,-z,muldefs > -DEFIVAR_BUILD_ENVIRONMENT -o makeguids makeguids.c guid.c -ldl > In file included from efivar.h:30, > from makeguids.c:30: > dp.h: In function 'format_vendor_helper': > dp.h:118:37: error: taking address of packed member of 'struct <anonymous>' > may result in an unaligned pointer value [-Werror=address-of-packed-member] > 118 | format_guid(buf, size, off, label, &dp->hw_vendor.vendor_guid); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > dp.h:74:25: note: in definition of macro 'format_guid' > 74 | _rc = efi_guid_to_str(guid, &_guidstr); \ > | ^~~~ > cc1: all warnings being treated as errors > In file included from efivar.h:30, > from guid.c:27: > dp.h: In function 'format_vendor_helper': > dp.h:118:37: error: taking address of packed member of 'struct <anonymous>' > may result in an unaligned pointer value [-Werror=address-of-packed-member] > 118 | format_guid(buf, size, off, label, &dp->hw_vendor.vendor_guid); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > dp.h:74:25: note: in definition of macro 'format_guid' > 74 | _rc = efi_guid_to_str(guid, &_guidstr); \ > | ^~~~ > cc1: all warnings being treated as errors > make[1]: *** [/usr/src/lfs/efivar-37/Make.rules:13: makeguids] Error 1 > make[1]: Leaving directory '/usr/src/lfs/efivar-37/src' > make: *** [Makefile:14: all] Error 2 > > According to the efivars-37 GitHub repo, there is an issue listed that > describes this exact error, and it apparently is caused by GCC-9.2.0 which is > why the error wasn't present in my last build > using GCC-8.2.0. > > I was unable to find a patch file or anything similar in their GitHub repo, > so I figured I would ask in here if any of you have experienced this issue > yet, and if so, how did you fix it? > > Any help would be greatly appreciated. Thanks! > > -- Jared >
These are the two patches that I use to build efivar-37 successfully. https://github.com/rhinstaller/efivar/commit/b98ba8921010d03f46704a476c69861515deb1ca.patch https://github.com/rhinstaller/efivar/commit/c3c553db85ff10890209d0fe48fb4856ad68e4e0.patch Regards, Wayne.
-- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
