[ipxe-devel] Building bin-arm64-efi/snp.efi is broken

Heinrich Schuchardt xypron.glpk at gmx.de
Sat Aug 4 12:57:49 UTC 2018


The following patch breaks building for arm64 with GCC 8.1.0 (as
supplied by package gcc-aarch64-linux-gnu in Debian Buster):

commit 1a7746603bca1022b63c406c9459525312a2b2b6
Author: Michael Brown <mcb30 at ipxe.org>
Date:   Fri Jul 28 13:50:35 2017 +0100

    [build] Fix use of inline assembly on GCC 4.8 ARM64 builds


In file included from core/blocktrans.c:34:
core/blocktrans.c: In function ‘blktrans_xferbuf_realloc’:
include/errno.h:261:2: error: invalid 'asm': invalid address mode
  __asm__ ( ".section \".einfo\", \"\", " PROGBITS_OPS "\n\t" \
  ^~~~~~~
include/errno.h:589:17: note: in expansion of macro ‘__einfo_error’
 #define ENOTSUP __einfo_error ( EINFO_ENOTSUP )
                 ^~~~~~~~~~~~~
core/blocktrans.c:57:11: note: in expansion of macro ‘ENOTSUP’
   return -ENOTSUP;
           ^~~~~~~
include/errno.h:261:2: error: invalid 'asm': invalid address mode
  __asm__ ( ".section \".einfo\", \"\", " PROGBITS_OPS "\n\t" \
  ^~~~~~~
include/errno.h:589:17: note: in expansion of macro ‘__einfo_erro

Please, correct the coding.

Best regards

Heinrich Schuchardt



More information about the ipxe-devel mailing list