public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "patrick.oppenlander at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671
Date: Sun, 12 Dec 2021 22:32:56 +0000	[thread overview]
Message-ID: <bug-103676-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 103676
           Summary: internal compiler error: in extract_constrain_insn, at
                    recog.c:2671
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: patrick.oppenlander at gmail dot com
  Target Milestone: ---

Hi,

I'm encountering this internal compiler error with gcc 11.2.0. I'm not quite
sure how to provide more information.

armv7em-linux-musleabihf-g++ -mcpu=cortex-m7 -mthumb -g -pipe -Wall -O2 -flto
-Wframe-larger-than=384 -fno-pie  -masm-syntax-unified -mslow-flash-data
-Wframe-larger-than=384 -Wundef -fno-pie  -masm-syntax-unified
-mslow-flash-data -nostdinc++ -fno-exceptions -std=gnu++20 -DKERNEL
-D_GNU_SOURCE  -fuse-linker-plugin -fno-use-cxa-atexit -o apex/sys/apex.elf
-T/home/patrick/src/apex-examples/apex/sys/arch/arm/kernel.ld
apex/sys/fs/mount.o apex/sys/fs/pipe.o apex/sys/fs/syscalls.o
apex/sys/fs/util/dirbuf_add.o apex/sys/fs/vfs.o apex/sys/fs/vnode.o
apex/sys/kern/clone.o apex/sys/kern/debug.o apex/sys/kern/dma.o
apex/sys/kern/elf_load.o apex/sys/kern/exec.o apex/sys/kern/irq.o
apex/sys/kern/main.o apex/sys/kern/prctl.o apex/sys/kern/proc.o
apex/sys/kern/sch.o apex/sys/kern/sig.o apex/sys/kern/syscall_table.o
apex/sys/kern/syscalls.o apex/sys/kern/syslog.o apex/sys/kern/task.o
apex/sys/kern/thread.o apex/sys/kern/timer.o apex/sys/lib/crypto/sha256.o
apex/sys/lib/errno.o apex/sys/lib/jhash3.o apex/sys/lib/queue.o
apex/sys/lib/raise.o apex/sys/lib/string_utils.o apex/sys/mem/access.o
apex/sys/mem/kmem.o apex/sys/mem/page.o apex/sys/mem/vm.o apex/sys/sync/cond.o
apex/sys/sync/futex.o apex/sys/sync/mutex.o apex/sys/sync/rwlock.o
apex/sys/sync/semaphore.o apex/sys/sync/spinlock.o apex/sys/mem/untranslated.o
apex/sys/fs/arfs/vnops.o apex/sys/fs/devfs/vnops.o apex/sys/fs/ramfs/vfsops.o
apex/sys/fs/ramfs/vnops.o apex/sys/dev/arm/armv7m-systick/armv7m-systick.o
apex/sys/dev/arm/mps2-uart/early.o apex/sys/dev/arm/mps2-uart/mps2-uart.o
apex/sys/dev/bootdisk/bootdisk.o apex/sys/dev/console/console.o
apex/sys/dev/null/null.o apex/sys/dev/zero/zero.o apex/sys/dev/tty/tty.o
apex/sys/dev/block/device.o apex/sys/arch/arm/v7em/arch.o
apex/sys/arch/arm/v7em/atomic.o apex/sys/arch/arm/v7em/cache.o
apex/sys/arch/arm/v7em/context.o apex/sys/arch/arm/v7em/emulate.o
apex/sys/arch/arm/v7em/exception.o apex/sys/arch/arm/v7em/interrupt.o
apex/sys/arch/arm/v7em/io.o apex/sys/arch/arm/v7em/locore.o
apex/sys/arch/arm/v7em/syscall.o apex/sys/arch/arm/v7em/mpu.o
custom_driver/custom_driver.o apex/machine/qemu/arm/mps2-an500/sys/machine.o
apex/libc++/libc++.a apex/libcxxrt/libcxxrt.a apex/libc/libc.a
/opt/cross/armv7em-linux-musleabihf/lib/gcc/armv7em-linux-musleabihf/11.2.0/libgcc.a
-Wl,--gc-sections -z max-page-size=32 -nostartfiles -nostdlib -static -no-pie 
/home/patrick/src/apex-examples/apex/sys/kern/timer.cpp: In function
'timer_callout':
/home/patrick/src/apex-examples/apex/sys/kern/timer.cpp:210:1: error:
unrecognizable insn:
  210 | }
      | ^
(insn 92 211 102 6 (parallel [
            (set (reg:DI 7 r7 [orig:136 tmp ] [136])
                (asm_operands/v:DI ("ldrd %Q0, %R0, %1
") ("=lh") 0 [
                        (mem/v/c:DI (reg/f:SI 1 r1 [137]) [16 MEM[(const
volatile uint64_t *)&monotonic]+0 S8 A64])
                    ]
                     [
                        (asm_input:DI ("m")
/home/patrick/src/apex-examples/apex/sys/arch/arm/v7em/atomic.cpp:24)
                    ]
                     []
/home/patrick/src/apex-examples/apex/sys/arch/arm/v7em/atomic.cpp:24))
            (clobber (mem:BLK (scratch) [0  A8]))
        ])
"/home/patrick/src/apex-examples/apex/sys/arch/arm/v7em/atomic.cpp":24:2 -1
     (nil))
during RTL pass: postreload
/home/patrick/src/apex-examples/apex/sys/kern/timer.cpp:210:1: internal
compiler error: in extract_constrain_insn, at recog.c:2671
0xff3469 internal_error(char const*, ...)
        ???:0
0x5d22e2 fancy_abort(char const*, int, char const*)
        ???:0
0x5d1ded _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ???:0
0x5d1e10 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ???:0
0x8a659a extract_constrain_insn(rtx_insn*)
        ???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: armv7em-linux-musleabihf-g++ returned 1 exit status
compilation terminated.
/opt/cross/armv7em-linux-musleabihf/bin/../lib/gcc/armv7em-linux-musleabihf/11.2.0/../../../../armv7em-linux-musleabihf/bin/ld:
error: lto-wrapper failed
collect2: error: ld returned 1 exit status

             reply	other threads:[~2021-12-12 22:32 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-12 22:32 patrick.oppenlander at gmail dot com [this message]
2021-12-12 23:31 ` [Bug target/103676] " pinskia at gcc dot gnu.org
2021-12-12 23:32 ` pinskia at gcc dot gnu.org
2021-12-12 23:54 ` patrick.oppenlander at gmail dot com
2021-12-12 23:58 ` patrick.oppenlander at gmail dot com
2021-12-13 22:56 ` patrick.oppenlander at gmail dot com
2021-12-13 23:06 ` pinskia at gcc dot gnu.org
2021-12-13 23:13 ` pinskia at gcc dot gnu.org
2021-12-14  0:48 ` patrick.oppenlander at gmail dot com
2021-12-14  0:48 ` patrick.oppenlander at gmail dot com
2021-12-14  0:51 ` pinskia at gcc dot gnu.org
2021-12-14  0:52 ` pinskia at gcc dot gnu.org
2021-12-14  1:16 ` patrick.oppenlander at gmail dot com
2021-12-14  1:17 ` patrick.oppenlander at gmail dot com
2021-12-14  1:48 ` pinskia at gcc dot gnu.org
2021-12-14  1:50 ` [Bug target/103676] [10/11/12 Regression] " pinskia at gcc dot gnu.org
2021-12-14  2:07 ` pinskia at gcc dot gnu.org
2021-12-14  2:11 ` pinskia at gcc dot gnu.org
2021-12-14  2:15 ` pinskia at gcc dot gnu.org
2021-12-29 17:02 ` jakub at gcc dot gnu.org
2021-12-29 17:06 ` jakub at gcc dot gnu.org
2022-01-17 12:46 ` rguenth at gcc dot gnu.org
2022-01-17 16:43 ` vmakarov at gcc dot gnu.org
2022-01-17 17:00 ` jakub at gcc dot gnu.org
2022-01-18 13:38 ` vmakarov at gcc dot gnu.org
2022-01-21 18:37 ` cvs-commit at gcc dot gnu.org
2022-01-28 16:38 ` [Bug target/103676] [10/11 " jakub at gcc dot gnu.org
2022-06-28 10:47 ` jakub at gcc dot gnu.org
2023-07-07 10:41 ` [Bug target/103676] [11 " rguenth at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-103676-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).