public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/95651] New: GCC compilation error on AArch64: error: expected expression: AARCH64_INIT_MEMTAG_BUILTINS_DECL
@ 2020-06-12  9:14 noan at email dot com
  2020-06-12  9:56 ` [Bug target/95651] " rearnsha at gcc dot gnu.org
  2020-06-12 14:44 ` noan at email dot com
  0 siblings, 2 replies; 3+ messages in thread
From: noan at email dot com @ 2020-06-12  9:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95651

            Bug ID: 95651
           Summary: GCC compilation error on AArch64: error: expected
                    expression: AARCH64_INIT_MEMTAG_BUILTINS_DECL
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: noan at email dot com
  Target Milestone: ---

I have built GCC (10.1.0) many times from source on x86. I tried the same on
AArch64 and it failed with the following error:

../.././gcc/config/aarch64/aarch64-builtins.c:1225:3: error: expected
expression
  AARCH64_INIT_MEMTAG_BUILTINS_DECL (IRG, irg, irg, fntype);
...

I build on Ubuntu 20.04 with the stock GCC 9.3.0 compiler:

$ lsb_release -d
Description:    Ubuntu 20.04 LTS

$ gcc --version
gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0

$ uname -a
Linux pi64 5.4.0-1008-raspi #8-Ubuntu SMP Wed Apr 8 11:13:06 UTC 2020 aarch64
aarch64 aarch64 GNU/Linux

Build commands:

$ tar xzf gcc-10.1.0.tar.gz
$ cd gcc-10.1.0
$ contrib/download_prerequisites
$ ./configure --prefix=/usr/local/gcc-10.1.0 --enable-languages=c,c++,fortran
--disable-multilib
$ make -j 4

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug target/95651] GCC compilation error on AArch64: error: expected expression: AARCH64_INIT_MEMTAG_BUILTINS_DECL
  2020-06-12  9:14 [Bug target/95651] New: GCC compilation error on AArch64: error: expected expression: AARCH64_INIT_MEMTAG_BUILTINS_DECL noan at email dot com
@ 2020-06-12  9:56 ` rearnsha at gcc dot gnu.org
  2020-06-12 14:44 ` noan at email dot com
  1 sibling, 0 replies; 3+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2020-06-12  9:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95651

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2020-06-12
     Ever confirmed|0                           |1

--- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
I build gcc on ubuntu 20.04 on a pi4 regularly and do not see this.

To get further, we need far more information, but firstly, DO NOT BUILD in the
source tree, use a separate build directory.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug target/95651] GCC compilation error on AArch64: error: expected expression: AARCH64_INIT_MEMTAG_BUILTINS_DECL
  2020-06-12  9:14 [Bug target/95651] New: GCC compilation error on AArch64: error: expected expression: AARCH64_INIT_MEMTAG_BUILTINS_DECL noan at email dot com
  2020-06-12  9:56 ` [Bug target/95651] " rearnsha at gcc dot gnu.org
@ 2020-06-12 14:44 ` noan at email dot com
  1 sibling, 0 replies; 3+ messages in thread
From: noan at email dot com @ 2020-06-12 14:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95651

noan at email dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from noan at email dot com ---
This is my bad. I ran the following:

apt install gcc clang

This installed gcc, clang and clang++ but not g++. Thus, GCC was compiled with
clang++ which doesn't work. The code compiles when g++ is installed.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-12 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-12  9:14 [Bug target/95651] New: GCC compilation error on AArch64: error: expected expression: AARCH64_INIT_MEMTAG_BUILTINS_DECL noan at email dot com
2020-06-12  9:56 ` [Bug target/95651] " rearnsha at gcc dot gnu.org
2020-06-12 14:44 ` noan at email dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).