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

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Jul 14 14:17:41 UTC 2019


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




More information about the ipxe-devel mailing list