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

Heinrich Schuchardt xypron.glpk at gmx.de
Sat Aug 4 13:14:22 UTC 2018


On 08/04/2018 02:57 PM, Heinrich Schuchardt wrote:
> 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
> 

The error occurs also for native compilation with GCC 8.2.0.

When cross compiling using gcc-7.3.0 the above error does not occur but
I get

  [BUILD] bin-arm64-efi/ath9k.ids.o
  [HOSTCC] util/elf2efi64
gcc: error: unrecognized argument in option ‘-mabi=lp64’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
make: *** [Makefile.housekeeping:1397: util/elf2efi64] Error 1
make: *** Waiting for unfinished jobs....

Best regards

Heinrich



More information about the ipxe-devel mailing list