[ipxe-devel] [BUG] build failure error=address-of-packed-member with GCC 9.1.0

Geert Stappers stappers at stappers.nl
Sun Jul 14 15:37:12 UTC 2019


On Sun, Jul 14, 2019 at 05:00:05PM +0200, Christian Nilsson wrote:
> On Sun, 14 Jul 2019, 16:18 Heinrich Schuchardt, wrote:
> 
> } Hello Mailinglist,
> >
> > building bin-i386-efi/snp.efi fails with GCC 9.1.0.
> >
> > I am using the testing branch of the Manjaro distribution.
> >
> > Best regards
> >
> > Heinrich
> >
> >
> >    [BUILD] bin-i386-efi/string.o
> > core/gdbudp.c: In function ???gdbudp_configure???:
> > core/gdbudp.c:235:47: error: taking address of packed member of ???struct
> > sockaddr_in??? may result in an unaligned pointer value
> > [-Werror=address-of-packed-member]
> >    235 |   fetch_ipv4_setting ( settings, &ip_setting, &source_addr.sin_addr );
> >        | ^~~~~~~~~~~~~~~~~~~~~
> >    [BUILD] bin-i386-efi/null_nap.o
> >    [BUILD] bin-i386-efi/memmap_settings.o
> > cc1: all warnings being treated as errors
> >
> 
> Hasn't there already been a patch sent to the list for this,
> with carrying concerns.

Yes,
http://lists.ipxe.org/pipermail/ipxe-devel/2019-May/006660.html
http://lists.ipxe.org/pipermail/ipxe-devel/2019-June/006668.html

> Maybe it is best to continue there instead of creating a new thread?

Or whatever it takes to face a new generation of compiler.



Groeten
Geert Stappers
-- 
Leven en laten leven



More information about the ipxe-devel mailing list