[ipxe-devel] [ipxe/ipxe] [build] Fix use of inline assembly on GCC 8 ARM64 builds (3fb3ffc)

yiya1989 notifications at github.com
Wed Jul 31 12:52:39 UTC 2019


I'm useing gcc-aarch64-linux-gnu。 When my code include this commit, it arise __asm__ error.... 
When I revert this commit, it works well.



`/usr1/git/bootloader/ipxe/src # rpm -qi gcc-aarch64-linux-gnu 
Name        : gcc-aarch64-linux-gnu
Version     : 4.8.5
Release     : 16.el7.1
Architecture: x86_64
Install Date: Tue 10 Jul 2018 08:00:23 PM CST
Group       : Development/Tools
Size        : 24674485
License     : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
Signature   : RSA/SHA256, Thu 29 Jun 2017 03:16:05 AM CST, Key ID 6a2faea2352c64e5
Source RPM  : cross-gcc-4.8.5-16.el7.1.src.rpm
Build Date  : Wed 28 Jun 2017 10:28:50 PM CST
Build Host  : buildhw-09.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://gcc.gnu.org
Summary     : Cross-build binary utilities for aarch64-linux-gnu
Description :
Cross-build GNU C compiler.

Only building kernels is currently supported.  Support for cross-building
user space programs is not currently provided as that would massively multiply
the number of packages.

/usr1/git/bootloader/ipxe/src #
/usr1/git/bootloader/ipxe/src #
/usr1/git/bootloader/ipxe/src # make CROSS=aarch64-linux-gnu- bin-arm64-efi/snponly.efi
  [BUILD] bin-arm64-efi/xfer.o
In file included from core/xfer.c:29:0:
core/xfer.c: In function ‘xfer_deliver’:
include/errno.h:261:2: error: invalid 'asm': invalid operand prefix '%c'
  __asm__ ( ".section \".einfo\", \"\", " PROGBITS_OPS "\n\t" \
  ^
include/errno.h:619:15: note: in expansion of macro ‘__einfo_error’
 #define EPIPE __einfo_error ( EINFO_EPIPE )
               ^
core/xfer.c:210:9: note: in expansion of macro ‘EPIPE’
   rc = -EPIPE;
         ^
include/errno.h:261:2: error: invalid 'asm': invalid operand prefix '%c'
  __asm__ ( ".section \".einfo\", \"\", " PROGBITS_OPS "\n\t" \
  ^
include/errno.h:619:15: note: in expansion of macro ‘__einfo_error’
 #define EPIPE __einfo_error ( EINFO_EPIPE )
               ^
core/xfer.c:210:9: note: in expansion of macro ‘EPIPE’
   rc = -EPIPE;
         ^
core/xfer.c: At top level:
cc1: error: unrecognized command line option "-Wno-address-of-packed-member" [-Werror]
cc1: all warnings being treated as errors
make: *** [bin-arm64-efi/xfer.o] Error 1
/usr1/git/bootloader/ipxe/src # 
`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/commit/3fb3ffccea717ce10bb29dfd8a9e761c7387626e#commitcomment-34515769
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20190731/02dd4a1a/attachment.htm>


More information about the ipxe-devel mailing list