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

Christian Nilsson nikize at gmail.com
Sun Jul 14 15:00:05 UTC 2019


On Sun, 14 Jul 2019, 16:18 Heinrich Schuchardt, <xypron.glpk at gmx.de> wrote:

> Hello Michael,
>
> 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
>
> _______________________________________________
> ipxe-devel mailing list
> ipxe-devel at lists.ipxe.org
> https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel


Hasn't there already been a patch sent to the list for this, with carrying
concerns. Maybe it is best to continue there instead of creating a new
thread?

>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20190714/eb47f48d/attachment.htm>


More information about the ipxe-devel mailing list