public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671
@ 2021-12-12 22:32 patrick.oppenlander at gmail dot com
  2021-12-12 23:31 ` [Bug target/103676] " pinskia at gcc dot gnu.org
                   ` (27 more replies)
  0 siblings, 28 replies; 29+ messages in thread
From: patrick.oppenlander at gmail dot com @ 2021-12-12 22:32 UTC (permalink / raw)
  To: gcc-bugs

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

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

* [Bug target/103676] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
@ 2021-12-12 23:31 ` pinskia at gcc dot gnu.org
  2021-12-12 23:32 ` pinskia at gcc dot gnu.org
                   ` (26 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-12 23:31 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-12-12
             Target|                            |armv7em-linux-musleabihf
           Keywords|                            |ice-on-valid-code,
                   |                            |inline-asm, lto
             Status|UNCONFIRMED                 |WAITING

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is rather interesting as usually inline asm would not cause an
unrecognizable insn error.

>I'm not quite sure how to provide more information.

The first thing you could do is say if this is private software or open source.
If it is private software you might want to read
https://gcc.gnu.org/wiki/A_guide_to_testcase_reduction#Reducing_LTO_bugs and
try to reduce the sources yourself.

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

* [Bug target/103676] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
  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
                   ` (25 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-12 23:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> If it is private software you might want to read
> https://gcc.gnu.org/wiki/A_guide_to_testcase_reduction#Reducing_LTO_bugs and
> try to reduce the sources yourself.

Otherwise reporting the exact version of the source you used, for both the open
source software and GCC.

For GCC you can provide the output of "armv7em-linux-musleabihf-g++ -v" as a
start.

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

* [Bug target/103676] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
  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
                   ` (24 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: patrick.oppenlander at gmail dot com @ 2021-12-12 23:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Patrick Oppenlander <patrick.oppenlander at gmail dot com> ---
gcc -v output is:

% armv7em-linux-musleabihf-g++ -v 
Using built-in specs.
COLLECT_GCC=armv7em-linux-musleabihf-g++
COLLECT_LTO_WRAPPER=/opt/cross/armv7em-linux-musleabihf/bin/../libexec/gcc/armv7em-linux-musleabihf/11.2.0/lto-wrapper
Target: armv7em-linux-musleabihf
Configured with: ../src_gcc/configure --enable-languages=c,c++
--with-float=hard CFLA
GS='-g0 -Os' CXXFLAGS='-g0 -Os' LDFLAGS=-s --disable-nls
--with-debug-prefix-map=/tmp/makepkg/armv7em-linux-musleabihf/src/musl-cross-make/build/local/armv7em-linux-musleabihf=
--enable-languages=c,c++ --disable-libquadmath --disable-decimal-float
--with-arch=armv7e-m --with-fpu=fpv5-d16 --enable-default-pie
--enable-cxx-flags=-ffunction-sections --disable-bootstrap --disable-assembly
--disable-werror --target=armv7em-linux-musleabihf --prefix= --libdir=/lib
--disable-multilib --with-sysroot=/armv7em-linux-musleabihf --enable-tls
--disable-libmudflap --disable-libsanitizer --disable-gnu-indirect-function
--disable-libmpx --enable-initfini-array --enable-libstdcxx-time=rt
--with-build-sysroot=/tmp/makepkg/armv7em-linux-musleabihf/src/musl-cross-make/build/local/armv7em-linux-musleabihf/obj_sysroot
AR_FOR_TARGET=/tmp/makepkg/armv7em-linux-musleabihf/src/musl-cross-make/build/local/armv7em-linux-musleabihf/obj_binutils/binutils/ar
AS_FOR_TARGET=/tmp/makepkg/armv7em-linux-musleabihf/src/musl-cross-make/build/local/armv7em-linux-musleabihf/obj_binutils/gas/as-new
LD_FOR_TARGET=/tmp/makepkg/armv7em-linux-musleabihf/src/musl-cross-make/build/local/armv7em-linux-musleabihf/obj_binutils/ld/ld-new
NM_FOR_TARGET=/tmp/makepkg/armv7em-linux-musleabihf/src/musl-cross-make/build/local/armv7em-linux-musleabihf/obj_binutils/binutils/nm-new
OBJCOPY_FOR_TARGET=/tmp/makepkg/armv7em-linux-musleabihf/src/musl-cross-make/build/local/armv7em-linux-musleabihf/obj_binutils/binutils/objcopy
OBJDUMP_FOR_TARGET=/tmp/makepkg/armv7em-linux-musleabihf/src/musl-cross-make/build/local/armv7em-linux-musleabihf/obj_binutils/binutils/objdump
RANLIB_FOR_TARGET=/tmp/makepkg/armv7em-linux-musleabihf/src/musl-cross-make/build/local/armv7em-linux-musleabihf/obj_binutils/binutils/ranlib
READELF_FOR_TARGET=/tmp/makepkg/armv7em-linux-musleabihf/src/musl-cross-make/build/local/armv7em-linux-musleabihf/obj_binutils/binutils/readelf
STRIP_FOR_TARGET=/tmp/makepkg/armv7em-linux-musleabihf/src/musl-cross-make/build/local/armv7em-linux-musleabihf/obj_binutils/binutils/strip-new
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (GCC)

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

* [Bug target/103676] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (2 preceding siblings ...)
  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
                   ` (23 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: patrick.oppenlander at gmail dot com @ 2021-12-12 23:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Patrick Oppenlander <patrick.oppenlander at gmail dot com> ---
It's open source, but probably a bit of work to reproduce. I'll see if I can
produce a reduced testcase. Thanks for the link to the instructions.

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

* [Bug target/103676] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (3 preceding siblings ...)
  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
                   ` (22 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: patrick.oppenlander at gmail dot com @ 2021-12-13 22:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Patrick Oppenlander <patrick.oppenlander at gmail dot com> ---
I'm a little stuck with trying to reduce this.

The instructions linked say to look at "@/tmp/ccXXXXX" to get a list of object
files of interest. In this case the lto1 invocation which is failing only has
one object file in the command file @apex/sys/apex.elf.ltrans1.ltrans.args.0:

% cat apex/sys/apex.elf.ltrans1.ltrans.args.0
apex/sys/apex.elf.ltrans1.o

Am I missing something?

Here's the complete output with '-v -Wl,-debug -save-temps':

armv7em-motec_imxrt_gnu-linux-musleabihf-g++: warning: '-pipe' ignored because
'-save-temps' specified
Using built-in specs.
COLLECT_GCC=armv7em-motec_imxrt_gnu-linux-musleabihf-g++
COLLECT_LTO_WRAPPER=/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/lto-wrapper
Target: armv7em-motec_imxrt_gnu-linux-musleabihf
Configured with: ../src_gcc/configure --enable-languages=c,c++
--with-float=hard CFLAGS='-g0 -Os' CXXFLAGS='-g0 -Os' LDFLAGS=-s --disable-nls
--with-debug-prefix-map=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf=
--enable-languages=c,c++ --disable-libquadmath --disable-decimal-float
--with-cpu=cortex-m7 --enable-default-pie
--enable-cxx-flags=-ffunction-sections --disable-bootstrap --disable-assembly
--disable-werror --target=armv7em-motec_imxrt_gnu-linux-musleabihf --prefix=
--libdir=/lib --disable-multilib
--with-sysroot=/armv7em-motec_imxrt_gnu-linux-musleabihf --enable-tls
--disable-libmudflap --disable-libsanitizer --disable-gnu-indirect-function
--disable-libmpx --enable-initfini-array --enable-libstdcxx-time=rt
--with-build-sysroot=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_sysroot
AR_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/ar
AS_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/gas/as-new
LD_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/ld/ld-new
NM_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/nm-new
OBJCOPY_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/objcopy
OBJDUMP_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/objdump
RANLIB_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/ranlib
READELF_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/readelf
STRIP_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/strip-new
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (GCC) 
COMPILER_PATH=/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/bin/
LIBRARY_PATH=/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/lib/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../armv7em-motec_imxrt_gnu-linux-musleabihf/lib/
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-mcpu=cortex-m7' '-mthumb' '-ggdb'
'-pipe' '-Wall' '-O2' '-flto' '-fuse-linker-plugin' '-I'
'/home/patrick/src/motec/adr2/include' '-Wframe-larger-than=384'
'-Wframe-larger-than=384' '-Wundef' '-fno-pie' '-masm-syntax-unified'
'-mslow-flash-data' '-nostdinc++' '-fno-exceptions' '-std=gnu++20' '-D'
'KERNEL' '-D' '_GNU_SOURCE' '-fno-use-cxa-atexit' '-o' 'apex/sys/apex.elf' '-T'
'/home/patrick/src/motec/adr2/machine/adr2/sys/kernel.ld' '-z'
'max-page-size=32' '-nostartfiles' '-nostdlib' '-static' '-no-pie'
'-mfloat-abi=hard' '-mtls-dialect=gnu' '-mlibarch=armv7e-m+fp.dp'
'-march=armv7e-m+fp.dp' '-dumpdir' 'apex/sys/apex.elf.'

/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/collect2
-plugin
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/liblto_plugin.so
-plugin-opt=/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/lto-wrapper
-plugin-opt=-fresolution=apex/sys/apex.elf.res -flto
--sysroot=/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../armv7em-motec_imxrt_gnu-linux-musleabihf
-Bstatic -X -m armelf_linux_eabi -o apex/sys/apex.elf -z max-page-size=32
-L/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0
-L/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc
-L/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/lib
-L/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../armv7em-motec_imxrt_gnu-linux-musleabihf/lib
-debug 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/bootdisk/bootdisk.o
apex/sys/dev/console/console.o apex/sys/dev/fsl/gpt-systick/gpt-systick.o
apex/sys/dev/fsl/imx-usbphy/imx-usbphy.o
apex/sys/dev/fsl/imxrt10xx-gpio/imxrt10xx-gpio.o
apex/sys/dev/fsl/lpuart/driver.o apex/sys/dev/fsl/lpuart/early.o
apex/sys/dev/fsl/lpuart/lpuart.o apex/sys/dev/fsl/usb2-udc/usb2-udc.o
apex/sys/dev/fsl/usdhc/usdhc.o apex/sys/dev/gpio/controller.o
apex/sys/dev/gpio/ref.o apex/sys/dev/mmc/command.o apex/sys/dev/mmc/device.o
apex/sys/dev/mmc/host.o apex/sys/dev/mmc/mmc.o apex/sys/dev/mmc/mmc_block.o
apex/sys/dev/mmc/mmc_device.o apex/sys/dev/mmc/sd.o apex/sys/dev/mmc/sd_block.o
apex/sys/dev/mmc/sd_card.o apex/sys/dev/mmc/sdio.o
apex/sys/dev/nxp/imxrt10xx-ocotp/imxrt10xx-ocotp.o
apex/sys/dev/nxp/imxrt10xx-pit/imxrt10xx-pit.o
apex/sys/dev/nxp/imxrt10xx-rtwdog/imxrt10xx-rtwdog.o
apex/sys/dev/nxp/imxrt10xx-trng/imxrt10xx-trng.o
apex/sys/dev/nxp/imxrt10xx-xbara/imxrt10xx-xbara.o
apex/sys/dev/regulator/voltage/regulator.o
apex/sys/dev/regulator/voltage/fixed/fixed.o
apex/sys/dev/usb/string_descriptor.o apex/sys/dev/usb/gadget/composite.o
apex/sys/dev/usb/gadget/configuration.o apex/sys/dev/usb/gadget/device.o
apex/sys/dev/usb/gadget/function.o apex/sys/dev/usb/gadget/gadget.o
apex/sys/dev/usb/gadget/transaction.o apex/sys/dev/usb/gadget/udc.o
apex/sys/dev/usb/gadget/function/cdc_acm/cdc_acm.o
apex/sys/dev/usb/gadget/function/cdc_acm/init.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 dev/adr2/adr2.o dev/adr2_pinmux/adr2_pinmux.o
dev/can/can.o dev/fsl/flexcan/flexcan.o dev/fsl/lpspi/fsl_lpspi.o
dev/fsl/lpspi/lpspi.o dev/fsl/qtimer/qtimer.o
dev/nxp/imxrt-flexcan/imxrt-flexcan.o dev/nxp/imxrt10xx-adc/imxrt10xx-adc.o
dev/nxp/imxrt10xx-adc-etc/imxrt10xx-adc-etc.o
dev/nxp/imxrt10xx-tempmon/imxrt10xx-tempmon.o dev/panic_buffer/panic_buffer.o
dev/rv3149/rv3149_init.o dev/rv3149/rv3149_if.o dev/rv3149/rv3149_fs.o
dev/secure/secure.o dev/sti_l9663/l9663_init.o dev/sti_l9663/l9663_dev.o
dev/sti_l9663/l9663_dpc.o dev/sti_l9663/l9663_if.o dev/sti_l9663/l9663_fs.o
dev/sti_l9663/l9663_util.o dev/sti_l9663/l9663_ring.o
dev/sti_l9663/l9663_crc_3.o dev/sti_l9663/psi5_crc_3.o
apex/cpu/nxp/imxrt10xx/sys/cache.o machine/adr2/sys/machine.o
apex/libc++/libc++.a apex/libcxxrt/libcxxrt.a apex/libc/libc.a
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/libgcc.a
--gc-sections -T /home/patrick/src/motec/adr2/machine/adr2/sys/kernel.ld
Convert string
'/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/bin/'
into prefixes, separator = ':'
  - add prefix:
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/
  - add prefix:
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/
  - add prefix:
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/bin/
Convert string
'/home/patrick/bin:/opt/cross/aarch64-linux-musl/bin:/opt/cross/arm-cdd-linux-musleabi/bin:/opt/cross/arm_cortex_m0-eabi-newlib/bin:/opt/cross/arm-linux-musleabi/bin:/opt/cross/arm-none-eabi/bin:/opt/cross/armv6-linux-musleabihf/bin:/opt/cross/armv7em-linux-musleabihf/bin:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin:/opt/cross/armv7m-linux-musleabi/bin:/opt/cross/m32c-elf/bin:/opt/cross/m68k-elf/bin:/opt/cross/musl-clang/bin:/opt/cross/powerpc-eabispe/bin:/opt/cross/powerpc-prex-eabispe/bin:/opt/cross/riscv32-linux-musl/bin:/opt/cross/riscv32-linux-muslsf/bin:/opt/cross/riscv32-linux-muslsp/bin:/opt/cross/sh2eb-linux-musl/bin:/opt/cross/x86_64-linux-musl/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl'
into prefixes, separator = ':'
  - add prefix: /home/patrick/bin/
  - add prefix: /opt/cross/aarch64-linux-musl/bin/
  - add prefix: /opt/cross/arm-cdd-linux-musleabi/bin/
  - add prefix: /opt/cross/arm_cortex_m0-eabi-newlib/bin/
  - add prefix: /opt/cross/arm-linux-musleabi/bin/
  - add prefix: /opt/cross/arm-none-eabi/bin/
  - add prefix: /opt/cross/armv6-linux-musleabihf/bin/
  - add prefix: /opt/cross/armv7em-linux-musleabihf/bin/
  - add prefix: /opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/
  - add prefix: /opt/cross/armv7m-linux-musleabi/bin/
  - add prefix: /opt/cross/m32c-elf/bin/
  - add prefix: /opt/cross/m68k-elf/bin/
  - add prefix: /opt/cross/musl-clang/bin/
  - add prefix: /opt/cross/powerpc-eabispe/bin/
  - add prefix: /opt/cross/powerpc-prex-eabispe/bin/
  - add prefix: /opt/cross/riscv32-linux-musl/bin/
  - add prefix: /opt/cross/riscv32-linux-muslsf/bin/
  - add prefix: /opt/cross/riscv32-linux-muslsp/bin/
  - add prefix: /opt/cross/sh2eb-linux-musl/bin/
  - add prefix: /opt/cross/x86_64-linux-musl/bin/
  - add prefix: /usr/local/sbin/
  - add prefix: /usr/local/bin/
  - add prefix: /usr/bin/
  - add prefix: /usr/lib/jvm/default/bin/
  - add prefix: /usr/bin/site_perl/
  - add prefix: /usr/bin/vendor_perl/
  - add prefix: /usr/bin/core_perl/
Looking for 'real-ld'
Looking for 'collect-ld'
Looking for 'ld'
Looking for 'gnm'
Looking for 'armv7em-motec_imxrt_gnu-linux-musleabihf-gnm'
Looking for 'nm'
Looking for 'gstrip'
Looking for 'armv7em-motec_imxrt_gnu-linux-musleabihf-gstrip'
Looking for 'strip'
Looking for 'armv7em-motec_imxrt_gnu-linux-musleabihf-g++'
Looking for 'armv7em-motec_imxrt_gnu-linux-musleabihf-g++'
collect2 version 11.2.0
ld_file_name        =
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/bin/ld
c_file_name         =
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/armv7em-motec_imxrt_gnu-linux-musleabihf-g++
nm_file_name        =
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/bin/nm
strip_file_name     =
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/bin/strip
c_file              = apex/sys/apex.elf.cdtor.c
o_file              = apex/sys/apex.elf.cdtor.o
COLLECT_GCC_OPTIONS = '-v' '-save-temps' '-mcpu=cortex-m7' '-mthumb' '-ggdb'
'-pipe' '-Wall' '-O2' '-flto' '-fuse-linker-plugin' '-I'
'/home/patrick/src/motec/adr2/include' '-Wframe-larger-than=384'
'-Wframe-larger-than=384' '-Wundef' '-fno-pie' '-masm-syntax-unified'
'-mslow-flash-data' '-nostdinc++' '-fno-exceptions' '-std=gnu++20' '-D'
'KERNEL' '-D' '_GNU_SOURCE' '-fno-use-cxa-atexit' '-o' 'apex/sys/apex.elf' '-T'
'/home/patrick/src/motec/adr2/machine/adr2/sys/kernel.ld' '-z'
'max-page-size=32' '-nostartfiles' '-nostdlib' '-static' '-no-pie'
'-mfloat-abi=hard' '-mtls-dialect=gnu' '-mlibarch=armv7e-m+fp.dp'
'-march=armv7e-m+fp.dp' '-dumpdir' 'apex/sys/apex.elf.'
COLLECT_GCC         = armv7em-motec_imxrt_gnu-linux-musleabihf-g++
COMPILER_PATH       =
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/bin/
LIBRARY_PATH        =
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/lib/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../armv7em-motec_imxrt_gnu-linux-musleabihf/lib/

/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/bin/ld
-plugin
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/liblto_plugin.so
-plugin-opt=/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/lto-wrapper
-plugin-opt=-fresolution=apex/sys/apex.elf.res
--sysroot=/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../armv7em-motec_imxrt_gnu-linux-musleabihf
-Bstatic -X -m armelf_linux_eabi -o apex/sys/apex.elf -z max-page-size=32
-L/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0
-L/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc
-L/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/lib
-L/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../armv7em-motec_imxrt_gnu-linux-musleabihf/lib
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/bootdisk/bootdisk.o
apex/sys/dev/console/console.o apex/sys/dev/fsl/gpt-systick/gpt-systick.o
apex/sys/dev/fsl/imx-usbphy/imx-usbphy.o
apex/sys/dev/fsl/imxrt10xx-gpio/imxrt10xx-gpio.o
apex/sys/dev/fsl/lpuart/driver.o apex/sys/dev/fsl/lpuart/early.o
apex/sys/dev/fsl/lpuart/lpuart.o apex/sys/dev/fsl/usb2-udc/usb2-udc.o
apex/sys/dev/fsl/usdhc/usdhc.o apex/sys/dev/gpio/controller.o
apex/sys/dev/gpio/ref.o apex/sys/dev/mmc/command.o apex/sys/dev/mmc/device.o
apex/sys/dev/mmc/host.o apex/sys/dev/mmc/mmc.o apex/sys/dev/mmc/mmc_block.o
apex/sys/dev/mmc/mmc_device.o apex/sys/dev/mmc/sd.o apex/sys/dev/mmc/sd_block.o
apex/sys/dev/mmc/sd_card.o apex/sys/dev/mmc/sdio.o
apex/sys/dev/nxp/imxrt10xx-ocotp/imxrt10xx-ocotp.o
apex/sys/dev/nxp/imxrt10xx-pit/imxrt10xx-pit.o
apex/sys/dev/nxp/imxrt10xx-rtwdog/imxrt10xx-rtwdog.o
apex/sys/dev/nxp/imxrt10xx-trng/imxrt10xx-trng.o
apex/sys/dev/nxp/imxrt10xx-xbara/imxrt10xx-xbara.o
apex/sys/dev/regulator/voltage/regulator.o
apex/sys/dev/regulator/voltage/fixed/fixed.o
apex/sys/dev/usb/string_descriptor.o apex/sys/dev/usb/gadget/composite.o
apex/sys/dev/usb/gadget/configuration.o apex/sys/dev/usb/gadget/device.o
apex/sys/dev/usb/gadget/function.o apex/sys/dev/usb/gadget/gadget.o
apex/sys/dev/usb/gadget/transaction.o apex/sys/dev/usb/gadget/udc.o
apex/sys/dev/usb/gadget/function/cdc_acm/cdc_acm.o
apex/sys/dev/usb/gadget/function/cdc_acm/init.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 dev/adr2/adr2.o dev/adr2_pinmux/adr2_pinmux.o
dev/can/can.o dev/fsl/flexcan/flexcan.o dev/fsl/lpspi/fsl_lpspi.o
dev/fsl/lpspi/lpspi.o dev/fsl/qtimer/qtimer.o
dev/nxp/imxrt-flexcan/imxrt-flexcan.o dev/nxp/imxrt10xx-adc/imxrt10xx-adc.o
dev/nxp/imxrt10xx-adc-etc/imxrt10xx-adc-etc.o
dev/nxp/imxrt10xx-tempmon/imxrt10xx-tempmon.o dev/panic_buffer/panic_buffer.o
dev/rv3149/rv3149_init.o dev/rv3149/rv3149_if.o dev/rv3149/rv3149_fs.o
dev/secure/secure.o dev/sti_l9663/l9663_init.o dev/sti_l9663/l9663_dev.o
dev/sti_l9663/l9663_dpc.o dev/sti_l9663/l9663_if.o dev/sti_l9663/l9663_fs.o
dev/sti_l9663/l9663_util.o dev/sti_l9663/l9663_ring.o
dev/sti_l9663/l9663_crc_3.o dev/sti_l9663/psi5_crc_3.o
apex/cpu/nxp/imxrt10xx/sys/cache.o machine/adr2/sys/machine.o
apex/libc++/libc++.a apex/libcxxrt/libcxxrt.a apex/libc/libc.a
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/libgcc.a
--gc-sections -T /home/patrick/src/motec/adr2/machine/adr2/sys/kernel.ld
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/lto-wrapper
-fresolution=apex/sys/apex.elf.res -flinker-output=exec 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/jhash3.o
apex/sys/lib/queue.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/bootdisk/bootdisk.o
apex/sys/dev/console/console.o apex/sys/dev/fsl/gpt-systick/gpt-systick.o
apex/sys/dev/fsl/imx-usbphy/imx-usbphy.o
apex/sys/dev/fsl/imxrt10xx-gpio/imxrt10xx-gpio.o
apex/sys/dev/fsl/lpuart/driver.o apex/sys/dev/fsl/lpuart/early.o
apex/sys/dev/fsl/lpuart/lpuart.o apex/sys/dev/fsl/usb2-udc/usb2-udc.o
apex/sys/dev/fsl/usdhc/usdhc.o apex/sys/dev/gpio/controller.o
apex/sys/dev/gpio/ref.o apex/sys/dev/mmc/command.o apex/sys/dev/mmc/device.o
apex/sys/dev/mmc/host.o apex/sys/dev/mmc/mmc.o apex/sys/dev/mmc/mmc_block.o
apex/sys/dev/mmc/mmc_device.o apex/sys/dev/mmc/sd.o apex/sys/dev/mmc/sd_block.o
apex/sys/dev/mmc/sd_card.o apex/sys/dev/mmc/sdio.o
apex/sys/dev/nxp/imxrt10xx-ocotp/imxrt10xx-ocotp.o
apex/sys/dev/nxp/imxrt10xx-pit/imxrt10xx-pit.o
apex/sys/dev/nxp/imxrt10xx-rtwdog/imxrt10xx-rtwdog.o
apex/sys/dev/nxp/imxrt10xx-trng/imxrt10xx-trng.o
apex/sys/dev/nxp/imxrt10xx-xbara/imxrt10xx-xbara.o
apex/sys/dev/regulator/voltage/regulator.o
apex/sys/dev/regulator/voltage/fixed/fixed.o
apex/sys/dev/usb/string_descriptor.o apex/sys/dev/usb/gadget/composite.o
apex/sys/dev/usb/gadget/configuration.o apex/sys/dev/usb/gadget/device.o
apex/sys/dev/usb/gadget/function.o apex/sys/dev/usb/gadget/gadget.o
apex/sys/dev/usb/gadget/transaction.o apex/sys/dev/usb/gadget/udc.o
apex/sys/dev/usb/gadget/function/cdc_acm/cdc_acm.o
apex/sys/dev/usb/gadget/function/cdc_acm/init.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/exception.o apex/sys/arch/arm/v7em/interrupt.o
apex/sys/arch/arm/v7em/io.o apex/sys/arch/arm/v7em/syscall.o
apex/sys/arch/arm/v7em/mpu.o dev/adr2/adr2.o dev/adr2_pinmux/adr2_pinmux.o
dev/can/can.o dev/fsl/flexcan/flexcan.o dev/fsl/lpspi/fsl_lpspi.o
dev/fsl/lpspi/lpspi.o dev/fsl/qtimer/qtimer.o
dev/nxp/imxrt-flexcan/imxrt-flexcan.o dev/nxp/imxrt10xx-adc/imxrt10xx-adc.o
dev/nxp/imxrt10xx-adc-etc/imxrt10xx-adc-etc.o
dev/nxp/imxrt10xx-tempmon/imxrt10xx-tempmon.o dev/panic_buffer/panic_buffer.o
dev/rv3149/rv3149_init.o dev/rv3149/rv3149_if.o dev/rv3149/rv3149_fs.o
dev/secure/secure.o dev/sti_l9663/l9663_init.o dev/sti_l9663/l9663_dev.o
dev/sti_l9663/l9663_dpc.o dev/sti_l9663/l9663_if.o dev/sti_l9663/l9663_fs.o
dev/sti_l9663/l9663_util.o dev/sti_l9663/l9663_ring.o
dev/sti_l9663/l9663_crc_3.o dev/sti_l9663/psi5_crc_3.o
apex/cpu/nxp/imxrt10xx/sys/cache.o machine/adr2/sys/machine.o
apex/libc++/libc++.a@0xbf10 apex/libc++/libc++.a@0x173e0
apex/libc++/libc++.a@0x1c4d8 apex/libc++/libc++.a@0xdca5c
apex/libc++/libc++.a@0x39e0 apex/libcxxrt/libcxxrt.a@0x3d8c
apex/libcxxrt/libcxxrt.a@0xab00 apex/libcxxrt/libcxxrt.a@0x13f78 
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/lto-wrapper
-fresolution=apex/sys/apex.elf.res -flinker-output=exec 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/jhash3.o
apex/sys/lib/queue.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/bootdisk/bootdisk.o
apex/sys/dev/console/console.o apex/sys/dev/fsl/gpt-systick/gpt-systick.o
apex/sys/dev/fsl/imx-usbphy/imx-usbphy.o
apex/sys/dev/fsl/imxrt10xx-gpio/imxrt10xx-gpio.o
apex/sys/dev/fsl/lpuart/driver.o apex/sys/dev/fsl/lpuart/early.o
apex/sys/dev/fsl/lpuart/lpuart.o apex/sys/dev/fsl/usb2-udc/usb2-udc.o
apex/sys/dev/fsl/usdhc/usdhc.o apex/sys/dev/gpio/controller.o
apex/sys/dev/gpio/ref.o apex/sys/dev/mmc/command.o apex/sys/dev/mmc/device.o
apex/sys/dev/mmc/host.o apex/sys/dev/mmc/mmc.o apex/sys/dev/mmc/mmc_block.o
apex/sys/dev/mmc/mmc_device.o apex/sys/dev/mmc/sd.o apex/sys/dev/mmc/sd_block.o
apex/sys/dev/mmc/sd_card.o apex/sys/dev/mmc/sdio.o
apex/sys/dev/nxp/imxrt10xx-ocotp/imxrt10xx-ocotp.o
apex/sys/dev/nxp/imxrt10xx-pit/imxrt10xx-pit.o
apex/sys/dev/nxp/imxrt10xx-rtwdog/imxrt10xx-rtwdog.o
apex/sys/dev/nxp/imxrt10xx-trng/imxrt10xx-trng.o
apex/sys/dev/nxp/imxrt10xx-xbara/imxrt10xx-xbara.o
apex/sys/dev/regulator/voltage/regulator.o
apex/sys/dev/regulator/voltage/fixed/fixed.o
apex/sys/dev/usb/string_descriptor.o apex/sys/dev/usb/gadget/composite.o
apex/sys/dev/usb/gadget/configuration.o apex/sys/dev/usb/gadget/device.o
apex/sys/dev/usb/gadget/function.o apex/sys/dev/usb/gadget/gadget.o
apex/sys/dev/usb/gadget/transaction.o apex/sys/dev/usb/gadget/udc.o
apex/sys/dev/usb/gadget/function/cdc_acm/cdc_acm.o
apex/sys/dev/usb/gadget/function/cdc_acm/init.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/exception.o apex/sys/arch/arm/v7em/interrupt.o
apex/sys/arch/arm/v7em/io.o apex/sys/arch/arm/v7em/syscall.o
apex/sys/arch/arm/v7em/mpu.o dev/adr2/adr2.o dev/adr2_pinmux/adr2_pinmux.o
dev/can/can.o dev/fsl/flexcan/flexcan.o dev/fsl/lpspi/fsl_lpspi.o
dev/fsl/lpspi/lpspi.o dev/fsl/qtimer/qtimer.o
dev/nxp/imxrt-flexcan/imxrt-flexcan.o dev/nxp/imxrt10xx-adc/imxrt10xx-adc.o
dev/nxp/imxrt10xx-adc-etc/imxrt10xx-adc-etc.o
dev/nxp/imxrt10xx-tempmon/imxrt10xx-tempmon.o dev/panic_buffer/panic_buffer.o
dev/rv3149/rv3149_init.o dev/rv3149/rv3149_if.o dev/rv3149/rv3149_fs.o
dev/secure/secure.o dev/sti_l9663/l9663_init.o dev/sti_l9663/l9663_dev.o
dev/sti_l9663/l9663_dpc.o dev/sti_l9663/l9663_if.o dev/sti_l9663/l9663_fs.o
dev/sti_l9663/l9663_util.o dev/sti_l9663/l9663_ring.o
dev/sti_l9663/l9663_crc_3.o dev/sti_l9663/psi5_crc_3.o
apex/cpu/nxp/imxrt10xx/sys/cache.o machine/adr2/sys/machine.o
apex/libc++/libc++.a@0xbf10 apex/libc++/libc++.a@0x173e0
apex/libc++/libc++.a@0x1c4d8 apex/libc++/libc++.a@0xdca5c
apex/libc++/libc++.a@0x39e0 apex/libcxxrt/libcxxrt.a@0x3d8c
apex/libcxxrt/libcxxrt.a@0xab00 apex/libcxxrt/libcxxrt.a@0x13f78 
armv7em-motec_imxrt_gnu-linux-musleabihf-g++ @apex/sys/apex.elf.ltrans_args
armv7em-motec_imxrt_gnu-linux-musleabihf-g++: warning: '-pipe' ignored because
'-save-temps' specified
Using built-in specs.
COLLECT_GCC=armv7em-motec_imxrt_gnu-linux-musleabihf-g++
Target: armv7em-motec_imxrt_gnu-linux-musleabihf
Configured with: ../src_gcc/configure --enable-languages=c,c++
--with-float=hard CFLAGS='-g0 -Os' CXXFLAGS='-g0 -Os' LDFLAGS=-s --disable-nls
--with-debug-prefix-map=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf=
--enable-languages=c,c++ --disable-libquadmath --disable-decimal-float
--with-cpu=cortex-m7 --enable-default-pie
--enable-cxx-flags=-ffunction-sections --disable-bootstrap --disable-assembly
--disable-werror --target=armv7em-motec_imxrt_gnu-linux-musleabihf --prefix=
--libdir=/lib --disable-multilib
--with-sysroot=/armv7em-motec_imxrt_gnu-linux-musleabihf --enable-tls
--disable-libmudflap --disable-libsanitizer --disable-gnu-indirect-function
--disable-libmpx --enable-initfini-array --enable-libstdcxx-time=rt
--with-build-sysroot=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_sysroot
AR_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/ar
AS_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/gas/as-new
LD_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/ld/ld-new
NM_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/nm-new
OBJCOPY_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/objcopy
OBJDUMP_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/objdump
RANLIB_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/ranlib
READELF_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/readelf
STRIP_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/strip-new
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (GCC) 
COLLECT_GCC_OPTIONS='-c' '-fno-openmp' '-fno-openacc' '-fcf-protection=none'
'-g' '-mfloat-abi=hard' '-mtls-dialect=gnu'  '-O2' '-v' '-save-temps'
'-mcpu=cortex-m7' '-mthumb' '-ggdb' '-pipe' '-O2' '-fuse-linker-plugin'
'-Wframe-larger-than=384' '-Wframe-larger-than=384' '-fno-pie'
'-masm-syntax-unified' '-mslow-flash-data' '-fno-exceptions' '-T'
'/home/patrick/src/motec/adr2/machine/adr2/sys/kernel.ld' '-z'
'max-page-size=32' '-nostartfiles' '-nostdlib' '-static' '-no-pie'
'-mfloat-abi=hard' '-mtls-dialect=gnu'    
'-fltrans-output-list=apex/sys/apex.elf.ltrans.out' '-fwpa'
'-fresolution=apex/sys/apex.elf.res' '-flinker-output=exec'
'-mlibarch=armv7e-m+fp.dp' '-march=armv7e-m+fp.dp'

/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/../../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/lto1
-quiet -dumpbase apex/sys/apex.elf.wpa -mfloat-abi=hard -mtls-dialect=gnu
-mcpu=cortex-m7 -mthumb -masm-syntax-unified -mslow-flash-data -mfloat-abi=hard
-mtls-dialect=gnu -mlibarch=armv7e-m+fp.dp -march=armv7e-m+fp.dp -g -ggdb -O2
-O2 -Wframe-larger-than=384 -Wframe-larger-than=384 -version -fno-openmp
-fno-openacc -fcf-protection=none -fuse-linker-plugin -fno-pie -fno-exceptions
-fltrans-output-list=apex/sys/apex.elf.ltrans.out -fwpa
-fresolution=apex/sys/apex.elf.res -flinker-output=exec
@apex/sys/apex.elf.wpa.args.0
GNU GIMPLE (GCC) version 11.2.0 (armv7em-motec_imxrt_gnu-linux-musleabihf)
        compiled by GNU C version 11.1.0, GMP version 6.1.2, MPFR version
4.0.2, MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU GIMPLE (GCC) version 11.2.0 (armv7em-motec_imxrt_gnu-linux-musleabihf)
        compiled by GNU C version 11.1.0, GMP version 6.1.2, MPFR version
4.0.2, MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COMPILER_PATH=/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/../../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/../../libexec/gcc/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/bin/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/bin/
LIBRARY_PATH=/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/lib/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../armv7em-motec_imxrt_gnu-linux-musleabihf/lib/
COLLECT_GCC_OPTIONS='-c' '-fno-openmp' '-fno-openacc' '-fcf-protection=none'
'-g' '-mfloat-abi=hard' '-mtls-dialect=gnu'  '-O2' '-v' '-save-temps'
'-mcpu=cortex-m7' '-mthumb' '-ggdb' '-pipe' '-O2' '-fuse-linker-plugin'
'-Wframe-larger-than=384' '-Wframe-larger-than=384' '-fno-pie'
'-masm-syntax-unified' '-mslow-flash-data' '-fno-exceptions' '-T'
'/home/patrick/src/motec/adr2/machine/adr2/sys/kernel.ld' '-z'
'max-page-size=32' '-nostartfiles' '-nostdlib' '-static' '-no-pie'
'-mfloat-abi=hard' '-mtls-dialect=gnu'    
'-fltrans-output-list=apex/sys/apex.elf.ltrans.out' '-fwpa'
'-fresolution=apex/sys/apex.elf.res' '-flinker-output=exec'
'-mlibarch=armv7e-m+fp.dp' '-march=armv7e-m+fp.dp' '-dumpdir'
'apex/sys/apex.elf.wpa.'
[Leaving LTRANS apex/sys/apex.elf.ltrans.out]
armv7em-motec_imxrt_gnu-linux-musleabihf-g++
@apex/sys/apex.elf.ltrans0.ltrans_args
armv7em-motec_imxrt_gnu-linux-musleabihf-g++: warning: '-pipe' ignored because
'-save-temps' specified
Using built-in specs.
COLLECT_GCC=armv7em-motec_imxrt_gnu-linux-musleabihf-g++
Target: armv7em-motec_imxrt_gnu-linux-musleabihf
Configured with: ../src_gcc/configure --enable-languages=c,c++
--with-float=hard CFLAGS='-g0 -Os' CXXFLAGS='-g0 -Os' LDFLAGS=-s --disable-nls
--with-debug-prefix-map=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf=
--enable-languages=c,c++ --disable-libquadmath --disable-decimal-float
--with-cpu=cortex-m7 --enable-default-pie
--enable-cxx-flags=-ffunction-sections --disable-bootstrap --disable-assembly
--disable-werror --target=armv7em-motec_imxrt_gnu-linux-musleabihf --prefix=
--libdir=/lib --disable-multilib
--with-sysroot=/armv7em-motec_imxrt_gnu-linux-musleabihf --enable-tls
--disable-libmudflap --disable-libsanitizer --disable-gnu-indirect-function
--disable-libmpx --enable-initfini-array --enable-libstdcxx-time=rt
--with-build-sysroot=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_sysroot
AR_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/ar
AS_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/gas/as-new
LD_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/ld/ld-new
NM_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/nm-new
OBJCOPY_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/objcopy
OBJDUMP_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/objdump
RANLIB_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/ranlib
READELF_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/readelf
STRIP_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/strip-new
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (GCC) 
COLLECT_GCC_OPTIONS='-c' '-fno-openmp' '-fno-openacc' '-fcf-protection=none'
'-g' '-mfloat-abi=hard' '-mtls-dialect=gnu'  '-O2' '-v' '-save-temps'
'-mcpu=cortex-m7' '-mthumb' '-ggdb' '-pipe' '-O2' '-fuse-linker-plugin'
'-Wframe-larger-than=384' '-Wframe-larger-than=384' '-fno-pie'
'-masm-syntax-unified' '-mslow-flash-data' '-fno-exceptions' '-T'
'/home/patrick/src/motec/adr2/machine/adr2/sys/kernel.ld' '-z'
'max-page-size=32' '-nostartfiles' '-nostdlib' '-static' '-no-pie'
'-mfloat-abi=hard' '-mtls-dialect=gnu'     '-fltrans' '-o'
'apex/sys/apex.elf.ltrans0.ltrans.o' '-mlibarch=armv7e-m+fp.dp'
'-march=armv7e-m+fp.dp'

/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/../../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/lto1
-quiet -dumpbase apex/sys/apex.elf.ltrans0.ltrans -mfloat-abi=hard
-mtls-dialect=gnu -mcpu=cortex-m7 -mthumb -masm-syntax-unified
-mslow-flash-data -mfloat-abi=hard -mtls-dialect=gnu -mlibarch=armv7e-m+fp.dp
-march=armv7e-m+fp.dp -g -ggdb -O2 -O2 -Wframe-larger-than=384
-Wframe-larger-than=384 -version -fno-openmp -fno-openacc -fcf-protection=none
-fuse-linker-plugin -fno-pie -fno-exceptions -fltrans
@apex/sys/apex.elf.ltrans0.ltrans.args.0 -o apex/sys/apex.elf.ltrans0.ltrans.s
GNU GIMPLE (GCC) version 11.2.0 (armv7em-motec_imxrt_gnu-linux-musleabihf)
        compiled by GNU C version 11.1.0, GMP version 6.1.2, MPFR version
4.0.2, MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU GIMPLE (GCC) version 11.2.0 (armv7em-motec_imxrt_gnu-linux-musleabihf)
        compiled by GNU C version 11.1.0, GMP version 6.1.2, MPFR version
4.0.2, MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='-c' '-fno-openmp' '-fno-openacc' '-fcf-protection=none'
'-g' '-mfloat-abi=hard' '-mtls-dialect=gnu'  '-O2' '-v' '-save-temps'
'-mcpu=cortex-m7' '-mthumb' '-ggdb' '-pipe' '-O2' '-fuse-linker-plugin'
'-Wframe-larger-than=384' '-Wframe-larger-than=384' '-fno-pie'
'-masm-syntax-unified' '-mslow-flash-data' '-fno-exceptions' '-T'
'/home/patrick/src/motec/adr2/machine/adr2/sys/kernel.ld' '-z'
'max-page-size=32' '-nostartfiles' '-nostdlib' '-static' '-no-pie'
'-mfloat-abi=hard' '-mtls-dialect=gnu'     '-fltrans' '-o'
'apex/sys/apex.elf.ltrans0.ltrans.o' '-mlibarch=armv7e-m+fp.dp'
'-march=armv7e-m+fp.dp'

/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/bin/as
-v -march=armv7e-m -mfloat-abi=hard -mfloat-abi=hard -meabi=5 -o
apex/sys/apex.elf.ltrans0.ltrans.o apex/sys/apex.elf.ltrans0.ltrans.s
GNU assembler version 2.33.1 (armv7em-motec_imxrt_gnu-linux-musleabihf) using
BFD version (GNU Binutils) 2.33.1
COMPILER_PATH=/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/../../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/../../libexec/gcc/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../libexec/gcc/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/bin/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/bin/
LIBRARY_PATH=/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/lib/:/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../armv7em-motec_imxrt_gnu-linux-musleabihf/lib/
COLLECT_GCC_OPTIONS='-c' '-fno-openmp' '-fno-openacc' '-fcf-protection=none'
'-g' '-mfloat-abi=hard' '-mtls-dialect=gnu'  '-O2' '-v' '-save-temps'
'-mcpu=cortex-m7' '-mthumb' '-ggdb' '-pipe' '-O2' '-fuse-linker-plugin'
'-Wframe-larger-than=384' '-Wframe-larger-than=384' '-fno-pie'
'-masm-syntax-unified' '-mslow-flash-data' '-fno-exceptions' '-T'
'/home/patrick/src/motec/adr2/machine/adr2/sys/kernel.ld' '-z'
'max-page-size=32' '-nostartfiles' '-nostdlib' '-static' '-no-pie'
'-mfloat-abi=hard' '-mtls-dialect=gnu'     '-fltrans' '-o'
'apex/sys/apex.elf.ltrans0.ltrans.o' '-mlibarch=armv7e-m+fp.dp'
'-march=armv7e-m+fp.dp' '-dumpdir' 'apex/sys/apex.elf.ltrans0.ltrans.'
[Leaving LTRANS apex/sys/apex.elf.ltrans0.o]
armv7em-motec_imxrt_gnu-linux-musleabihf-g++
@apex/sys/apex.elf.ltrans1.ltrans_args
armv7em-motec_imxrt_gnu-linux-musleabihf-g++: warning: '-pipe' ignored because
'-save-temps' specified
Using built-in specs.
COLLECT_GCC=armv7em-motec_imxrt_gnu-linux-musleabihf-g++
Target: armv7em-motec_imxrt_gnu-linux-musleabihf
Configured with: ../src_gcc/configure --enable-languages=c,c++
--with-float=hard CFLAGS='-g0 -Os' CXXFLAGS='-g0 -Os' LDFLAGS=-s --disable-nls
--with-debug-prefix-map=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf=
--enable-languages=c,c++ --disable-libquadmath --disable-decimal-float
--with-cpu=cortex-m7 --enable-default-pie
--enable-cxx-flags=-ffunction-sections --disable-bootstrap --disable-assembly
--disable-werror --target=armv7em-motec_imxrt_gnu-linux-musleabihf --prefix=
--libdir=/lib --disable-multilib
--with-sysroot=/armv7em-motec_imxrt_gnu-linux-musleabihf --enable-tls
--disable-libmudflap --disable-libsanitizer --disable-gnu-indirect-function
--disable-libmpx --enable-initfini-array --enable-libstdcxx-time=rt
--with-build-sysroot=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_sysroot
AR_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/ar
AS_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/gas/as-new
LD_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/ld/ld-new
NM_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/nm-new
OBJCOPY_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/objcopy
OBJDUMP_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/objdump
RANLIB_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/ranlib
READELF_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/readelf
STRIP_FOR_TARGET=/tmp/makepkg/armv7em-motec_imxrt_gnu-linux-musleabihf/src/musl-cross-make/build/local/armv7em-motec_imxrt_gnu-linux-musleabihf/obj_binutils/binutils/strip-new
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (GCC) 
COLLECT_GCC_OPTIONS='-c' '-fno-openmp' '-fno-openacc' '-fcf-protection=none'
'-g' '-mfloat-abi=hard' '-mtls-dialect=gnu'  '-O2' '-v' '-save-temps'
'-mcpu=cortex-m7' '-mthumb' '-ggdb' '-pipe' '-O2' '-fuse-linker-plugin'
'-Wframe-larger-than=384' '-Wframe-larger-than=384' '-fno-pie'
'-masm-syntax-unified' '-mslow-flash-data' '-fno-exceptions' '-T'
'/home/patrick/src/motec/adr2/machine/adr2/sys/kernel.ld' '-z'
'max-page-size=32' '-nostartfiles' '-nostdlib' '-static' '-no-pie'
'-mfloat-abi=hard' '-mtls-dialect=gnu'     '-fltrans' '-o'
'apex/sys/apex.elf.ltrans1.ltrans.o' '-mlibarch=armv7e-m+fp.dp'
'-march=armv7e-m+fp.dp'

/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/../../libexec/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/lto1
-quiet -dumpbase apex/sys/apex.elf.ltrans1.ltrans -mfloat-abi=hard
-mtls-dialect=gnu -mcpu=cortex-m7 -mthumb -masm-syntax-unified
-mslow-flash-data -mfloat-abi=hard -mtls-dialect=gnu -mlibarch=armv7e-m+fp.dp
-march=armv7e-m+fp.dp -g -ggdb -O2 -O2 -Wframe-larger-than=384
-Wframe-larger-than=384 -version -fno-openmp -fno-openacc -fcf-protection=none
-fuse-linker-plugin -fno-pie -fno-exceptions -fltrans
@apex/sys/apex.elf.ltrans1.ltrans.args.0 -o apex/sys/apex.elf.ltrans1.ltrans.s
GNU GIMPLE (GCC) version 11.2.0 (armv7em-motec_imxrt_gnu-linux-musleabihf)
        compiled by GNU C version 11.1.0, GMP version 6.1.2, MPFR version
4.0.2, MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU GIMPLE (GCC) version 11.2.0 (armv7em-motec_imxrt_gnu-linux-musleabihf)
        compiled by GNU C version 11.1.0, GMP version 6.1.2, MPFR version
4.0.2, MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
/home/patrick/src/motec/adr2/apex/sys/kern/timer.cpp: In function
'timer_callout':
/home/patrick/src/motec/adr2/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 (plus:SI (reg/f:SI 1 r1 [137])
                                (const_int 8 [0x8])) [27 MEM[(const volatile
uint64_t *)&monotonic]+0 S8 A64])
                    ]
                     [
                        (asm_input:DI ("m")
/home/patrick/src/motec/adr2/apex/sys/arch/arm/v7em/atomic.cpp:24)
                    ]
                     []
/home/patrick/src/motec/adr2/apex/sys/arch/arm/v7em/atomic.cpp:24))
            (clobber (mem:BLK (scratch) [0  A8]))
        ])
"/home/patrick/src/motec/adr2/apex/sys/arch/arm/v7em/atomic.cpp":24:2 -1
     (nil))
during RTL pass: postreload
/home/patrick/src/motec/adr2/apex/sys/kern/timer.cpp:210:1: internal compiler
error: in extract_constrain_insn, at recog.c:2671
0xff33df 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-motec_imxrt_gnu-linux-musleabihf-g++ returned
1 exit status
compilation terminated.
[Leaving LTRANS apex/sys/fs/mount.o.debug.temp.o]
[Leaving LTRANS apex/sys/fs/pipe.o.debug.temp.o]
[Leaving LTRANS apex/sys/fs/syscalls.o.debug.temp.o]
[Leaving LTRANS apex/sys/fs/util/dirbuf_add.o.debug.temp.o]
[Leaving LTRANS apex/sys/fs/vfs.o.debug.temp.o]
[Leaving LTRANS apex/sys/fs/vnode.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/clone.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/debug.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/dma.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/elf_load.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/exec.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/irq.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/main.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/prctl.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/proc.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/sch.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/sig.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/syscall_table.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/syscalls.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/syslog.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/task.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/thread.o.debug.temp.o]
[Leaving LTRANS apex/sys/kern/timer.o.debug.temp.o]
[Leaving LTRANS apex/sys/lib/crypto/sha256.o.debug.temp.o]
[Leaving LTRANS apex/sys/lib/jhash3.o.debug.temp.o]
[Leaving LTRANS apex/sys/lib/queue.o.debug.temp.o]
[Leaving LTRANS apex/sys/lib/string_utils.o.debug.temp.o]
[Leaving LTRANS apex/sys/mem/access.o.debug.temp.o]
[Leaving LTRANS apex/sys/mem/kmem.o.debug.temp.o]
[Leaving LTRANS apex/sys/mem/page.o.debug.temp.o]
[Leaving LTRANS apex/sys/mem/vm.o.debug.temp.o]
[Leaving LTRANS apex/sys/sync/cond.o.debug.temp.o]
[Leaving LTRANS apex/sys/sync/futex.o.debug.temp.o]
[Leaving LTRANS apex/sys/sync/mutex.o.debug.temp.o]
[Leaving LTRANS apex/sys/sync/rwlock.o.debug.temp.o]
[Leaving LTRANS apex/sys/sync/semaphore.o.debug.temp.o]
[Leaving LTRANS apex/sys/sync/spinlock.o.debug.temp.o]
[Leaving LTRANS apex/sys/mem/untranslated.o.debug.temp.o]
[Leaving LTRANS apex/sys/fs/arfs/vnops.o.debug.temp.o]
[Leaving LTRANS apex/sys/fs/devfs/vnops.o.debug.temp.o]
[Leaving LTRANS apex/sys/fs/ramfs/vfsops.o.debug.temp.o]
[Leaving LTRANS apex/sys/fs/ramfs/vnops.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/bootdisk/bootdisk.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/console/console.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/fsl/gpt-systick/gpt-systick.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/fsl/imx-usbphy/imx-usbphy.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/fsl/imxrt10xx-gpio/imxrt10xx-gpio.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/fsl/lpuart/driver.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/fsl/lpuart/early.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/fsl/lpuart/lpuart.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/fsl/usb2-udc/usb2-udc.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/fsl/usdhc/usdhc.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/gpio/controller.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/gpio/ref.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/mmc/command.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/mmc/device.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/mmc/host.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/mmc/mmc.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/mmc/mmc_block.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/mmc/mmc_device.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/mmc/sd.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/mmc/sd_block.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/mmc/sd_card.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/mmc/sdio.o.debug.temp.o]
[Leaving LTRANS
apex/sys/dev/nxp/imxrt10xx-ocotp/imxrt10xx-ocotp.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/nxp/imxrt10xx-pit/imxrt10xx-pit.o.debug.temp.o]
[Leaving LTRANS
apex/sys/dev/nxp/imxrt10xx-rtwdog/imxrt10xx-rtwdog.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/nxp/imxrt10xx-trng/imxrt10xx-trng.o.debug.temp.o]
[Leaving LTRANS
apex/sys/dev/nxp/imxrt10xx-xbara/imxrt10xx-xbara.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/regulator/voltage/regulator.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/regulator/voltage/fixed/fixed.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/usb/string_descriptor.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/usb/gadget/composite.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/usb/gadget/configuration.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/usb/gadget/device.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/usb/gadget/function.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/usb/gadget/gadget.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/usb/gadget/transaction.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/usb/gadget/udc.o.debug.temp.o]
[Leaving LTRANS
apex/sys/dev/usb/gadget/function/cdc_acm/cdc_acm.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/usb/gadget/function/cdc_acm/init.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/null/null.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/zero/zero.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/tty/tty.o.debug.temp.o]
[Leaving LTRANS apex/sys/dev/block/device.o.debug.temp.o]
[Leaving LTRANS apex/sys/arch/arm/v7em/arch.o.debug.temp.o]
[Leaving LTRANS apex/sys/arch/arm/v7em/atomic.o.debug.temp.o]
[Leaving LTRANS apex/sys/arch/arm/v7em/cache.o.debug.temp.o]
[Leaving LTRANS apex/sys/arch/arm/v7em/context.o.debug.temp.o]
[Leaving LTRANS apex/sys/arch/arm/v7em/exception.o.debug.temp.o]
[Leaving LTRANS apex/sys/arch/arm/v7em/interrupt.o.debug.temp.o]
[Leaving LTRANS apex/sys/arch/arm/v7em/io.o.debug.temp.o]
[Leaving LTRANS apex/sys/arch/arm/v7em/syscall.o.debug.temp.o]
[Leaving LTRANS apex/sys/arch/arm/v7em/mpu.o.debug.temp.o]
[Leaving LTRANS dev/adr2/adr2.o.debug.temp.o]
[Leaving LTRANS dev/adr2_pinmux/adr2_pinmux.o.debug.temp.o]
[Leaving LTRANS dev/can/can.o.debug.temp.o]
[Leaving LTRANS dev/fsl/flexcan/flexcan.o.debug.temp.o]
[Leaving LTRANS dev/fsl/lpspi/fsl_lpspi.o.debug.temp.o]
[Leaving LTRANS dev/fsl/lpspi/lpspi.o.debug.temp.o]
[Leaving LTRANS dev/fsl/qtimer/qtimer.o.debug.temp.o]
[Leaving LTRANS dev/nxp/imxrt-flexcan/imxrt-flexcan.o.debug.temp.o]
[Leaving LTRANS dev/nxp/imxrt10xx-adc/imxrt10xx-adc.o.debug.temp.o]
[Leaving LTRANS dev/nxp/imxrt10xx-adc-etc/imxrt10xx-adc-etc.o.debug.temp.o]
[Leaving LTRANS dev/nxp/imxrt10xx-tempmon/imxrt10xx-tempmon.o.debug.temp.o]
[Leaving LTRANS dev/panic_buffer/panic_buffer.o.debug.temp.o]
[Leaving LTRANS dev/rv3149/rv3149_init.o.debug.temp.o]
[Leaving LTRANS dev/rv3149/rv3149_if.o.debug.temp.o]
[Leaving LTRANS dev/rv3149/rv3149_fs.o.debug.temp.o]
[Leaving LTRANS dev/secure/secure.o.debug.temp.o]
[Leaving LTRANS dev/sti_l9663/l9663_init.o.debug.temp.o]
[Leaving LTRANS dev/sti_l9663/l9663_dev.o.debug.temp.o]
[Leaving LTRANS dev/sti_l9663/l9663_dpc.o.debug.temp.o]
[Leaving LTRANS dev/sti_l9663/l9663_if.o.debug.temp.o]
[Leaving LTRANS dev/sti_l9663/l9663_fs.o.debug.temp.o]
[Leaving LTRANS dev/sti_l9663/l9663_util.o.debug.temp.o]
[Leaving LTRANS dev/sti_l9663/l9663_ring.o.debug.temp.o]
[Leaving LTRANS dev/sti_l9663/l9663_crc_3.o.debug.temp.o]
[Leaving LTRANS dev/sti_l9663/psi5_crc_3.o.debug.temp.o]
[Leaving LTRANS apex/cpu/nxp/imxrt10xx/sys/cache.o.debug.temp.o]
[Leaving LTRANS machine/adr2/sys/machine.o.debug.temp.o]
[Leaving LTRANS apex/libc++/libc++.a@0xbf10.debug.temp.o]
[Leaving LTRANS apex/libc++/libc++.a@0x173e0.debug.temp.o]
[Leaving LTRANS apex/libc++/libc++.a@0x1c4d8.debug.temp.o]
[Leaving LTRANS apex/libc++/libc++.a@0xdca5c.debug.temp.o]
[Leaving LTRANS apex/libc++/libc++.a@0x39e0.debug.temp.o]
[Leaving LTRANS apex/libcxxrt/libcxxrt.a@0x3d8c.debug.temp.o]
[Leaving LTRANS apex/libcxxrt/libcxxrt.a@0xab00.debug.temp.o]
[Leaving LTRANS apex/libcxxrt/libcxxrt.a@0x13f78.debug.temp.o]
[Leaving LTRANS apex/sys/apex.elf.ltrans0.o]
[Leaving LTRANS apex/sys/apex.elf.ltrans0.ltrans.o]
[Leaving LTRANS apex/sys/apex.elf.ltrans1.o]
[Leaving LTRANS apex/sys/apex.elf.ltrans2.o]
[Leaving LTRANS apex/sys/apex.elf.ltrans3.o]
[Leaving LTRANS apex/sys/apex.elf.ltrans4.o]
[Leaving LTRANS apex/sys/apex.elf.ltrans5.o]
[Leaving LTRANS apex/sys/apex.elf.ltrans6.o]
/opt/cross/armv7em-motec_imxrt_gnu-linux-musleabihf/bin/../lib/gcc/armv7em-motec_imxrt_gnu-linux-musleabihf/11.2.0/../../../../armv7em-motec_imxrt_gnu-linux-musleabihf/bin/ld:
error: lto-wrapper failed
[Leaving apex/sys/apex.elf.lto_wrapper_args]
collect2: error: ld returned 1 exit status

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

* [Bug target/103676] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (4 preceding siblings ...)
  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
                   ` (21 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-13 23:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Patrick Oppenlander from comment #5)
> I'm a little stuck with trying to reduce this.
> 
> The instructions linked say to look at "@/tmp/ccXXXXX" to get a list of
> object files of interest. In this case the lto1 invocation which is failing
> only has one object file in the command file

The first thing to reducing this is reducing the number of object files in use.
instead of doing a full link you could use -r and try removing object files
until it does not fail.

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

* [Bug target/103676] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (5 preceding siblings ...)
  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
                   ` (20 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-13 23:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Try the following two object files:
/home/patrick/src/apex-examples/apex/sys/kern/timer.cpp
/home/patrick/src/apex-examples/apex/sys/arch/arm/v7em/atomic.cpp

At least attach the preprocessed source for these two. I might be able to help
with a testcase.

I am thinking the function in atomic.cpp is being inlined into timer.cpp and
the inline-asm with the volatile memory location is causing issues.

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

* [Bug target/103676] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (6 preceding siblings ...)
  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
                   ` (19 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: patrick.oppenlander at gmail dot com @ 2021-12-14  0:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Patrick Oppenlander <patrick.oppenlander at gmail dot com> ---
Created attachment 51991
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51991&action=edit
Preprocessed atomic.cpp

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

* [Bug target/103676] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (7 preceding siblings ...)
  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
                   ` (18 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: patrick.oppenlander at gmail dot com @ 2021-12-14  0:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Patrick Oppenlander <patrick.oppenlander at gmail dot com> ---
Created attachment 51992
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51992&action=edit
Preprocessed timer.cpp

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

* [Bug target/103676] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (8 preceding siblings ...)
  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
                   ` (17 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-14  0:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Thanks for those two preprocessed files but it looks like one more is needed.
Can you attach the one where the definition of timer_monotonic is?

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

* [Bug target/103676] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (9 preceding siblings ...)
  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
                   ` (16 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-14  0:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #10)
> Thanks for those two preprocessed files but it looks like one more is
> needed. Can you attach the one where the definition of timer_monotonic is?

Or rather timer_monotonic_coarse.

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

* [Bug target/103676] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (10 preceding siblings ...)
  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
                   ` (15 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: patrick.oppenlander at gmail dot com @ 2021-12-14  1:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Patrick Oppenlander <patrick.oppenlander at gmail dot com> ---
Created attachment 51993
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51993&action=edit
Preprocessed gpt-systick.ii

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

* [Bug target/103676] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (11 preceding siblings ...)
  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
                   ` (14 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: patrick.oppenlander at gmail dot com @ 2021-12-14  1:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Patrick Oppenlander <patrick.oppenlander at gmail dot com> ---
That should be the one. Thanks for all the help!

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

* [Bug target/103676] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (12 preceding siblings ...)
  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
                   ` (13 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-14  1:48 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|1                           |0
             Status|WAITING                     |UNCONFIRMED

--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Semi-reduced testcase (single file):
typedef unsigned long long uint64_t;
typedef uint64_t uint_fast64_t;
uint64_t timer_monotonic_coarse();
struct list {
 struct list *next;
 struct list *prev;
};

static inline list *
list_insert(list *prev, list *node)
{

 node->next = prev->next;
 node->prev = prev;
 prev->next->prev = node;
 prev->next = node;
 return node;
}




static inline list *
list_remove(list *node)
{
 node->prev->next = node->next;
 node->next->prev = node->prev;
 return node;
}

struct timer {
 list link;
 int active;
 uint_fast64_t expire;
 uint_fast64_t interval;
 void (*func)(void *);
 void *arg;
};
int irq_disable();
void irq_restore(int);
template<class T> struct atomic { T a; };
__attribute__((section(".fast_bss"))) atomic<uint64_t> monotonic;

extern "C" uint64_t
__atomic_load_8(const volatile void *p, int m)
{

 const volatile uint64_t *p64 = static_cast<const volatile uint64_t *>(p);
 uint64_t tmp;
 asm volatile(
  "ldrd %Q[r], %R[r], %[p]\n"
  : [r]"=lh"(tmp)
  : [p]"m"(*p64)
  : "memory"
 );
 return tmp;
}


uint_fast64_t
timer_monotonic_coarse()
{
 return __atomic_load_n(&monotonic.a, 0);
}

void
timer_callout(timer *tmr, uint_fast64_t nsec, uint_fast64_t interval,
       void (*func)(void *), void *arg)
{

 const uint_fast64_t period = 1000000000 / 1000;

 const int s = irq_disable();
 if (tmr->active)
  list_remove(&tmr->link);
 tmr->func = func;
 tmr->arg = arg;
 tmr->active = 1;
 tmr->interval = interval;



 tmr->expire = timer_monotonic_coarse() + period + (nsec == 1 ? 0 : nsec);
 //timer_insert(tmr);
 irq_restore(s);
}

----- CUT ----
Compile with -mcpu=cortex-m7 -mthumb -g -pipe -Wall -O2 -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  -mfloat-abi=soft

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

* [Bug target/103676] [10/11/12 Regression] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (13 preceding siblings ...)
  2021-12-14  1:48 ` pinskia at gcc dot gnu.org
@ 2021-12-14  1:50 ` pinskia at gcc dot gnu.org
  2021-12-14  2:07 ` pinskia at gcc dot gnu.org
                   ` (12 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-14  1:50 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |10.4
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
      Known to fail|                            |10.3.0
   Last reconfirmed|2021-12-12 00:00:00         |2021-12-14
      Known to work|                            |9.3.0
            Summary|internal compiler error: in |[10/11/12 Regression]
                   |extract_constrain_insn, at  |internal compiler error: in
                   |recog.c:2671                |extract_constrain_insn, at
                   |                            |recog.c:2671

--- Comment #15 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed. It looks like it worked in GCC 9.3.0 (note remove -std=c++20 as it
is no longer needed).

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

* [Bug target/103676] [10/11/12 Regression] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (14 preceding siblings ...)
  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
                   ` (11 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-14  2:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is the most reduced testcase, I could make it:
typedef unsigned long long uint64_t;
struct timer {
 int active;
 uint64_t expire;
 void *arg;
};
int irq_disable();
void irq_restore(int);
static inline uint64_t h(const  uint64_t *p64)
{
 uint64_t tmp;
 asm(
  "ldrd %Q[r], %R[r], %[p]\n"
  : [r]"=lh"(tmp)
  : [p]"m"(*p64)
  : "memory"
 );
 return tmp;
}
uint64_t monotonic;
void timer_callout(timer *tmr, uint64_t nsec, void *arg)
{
 const int s = irq_disable();
 if (tmr->active)
   tmr->arg = arg;
 tmr->expire = h(&monotonic) + 100000 + (nsec == 1 ? 0 : nsec);
 irq_restore(s);
}

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

* [Bug target/103676] [10/11/12 Regression] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (15 preceding siblings ...)
  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
                   ` (10 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-14  2:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Patrick Oppenlander from comment #13)
> That should be the one. Thanks for all the help!

Thanks for the preprocessed source, it made it easier to make the testcase that
was a single file.

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

* [Bug target/103676] [10/11/12 Regression] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (16 preceding siblings ...)
  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
                   ` (9 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-14  2:15 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ra

--- Comment #18 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #16)
> Here is the most reduced testcase, I could make it:

Note only -O2 -mthumb to reproduce this issue on arm-linux-gnueabi.
It looks register allocation related.
If I used "=l" or "=h" constraint alone, it works but not if used together.

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

* [Bug target/103676] [10/11/12 Regression] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (17 preceding siblings ...)
  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
                   ` (8 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-12-29 17:02 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |rearnsha at gcc dot gnu.org,
                   |                            |vmakarov at gcc dot gnu.org
           Keywords|needs-bisection             |

--- Comment #19 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
r10-3981-gf6ff841bc8dd87ce364deb217dc6d1ec5dc31de8 still doesn't ICE,
r10-3984-g22060d0e575e7754eb1355763d22bbe37c3caa13 already ICEs.

I guess there is a disagreement between LRA and recog on how exactly they treat
register constraints.
"=lh" for TARGET_THUMB means LO_REGS or HI_REGS classes for the output, bet LRA
sees that LO_REGS or HI_REGS is together GENERAL_REGS and picks a GENERAL_REGS
(reg:DI 7 r7 [orig:119 tmp ] [119]).  But that one has one half in LO_REGS and
another half in HI_REGS and so extract_constrain_insn -> constrain_operands
doesn't consider it as matching.

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

* [Bug target/103676] [10/11/12 Regression] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (18 preceding siblings ...)
  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
                   ` (7 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-12-29 17:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #20 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
BTW, I needed -mcpu=cortex-m7 -mthumb -O2 to reproduce the ICE.

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

* [Bug target/103676] [10/11/12 Regression] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (19 preceding siblings ...)
  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
                   ` (6 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-17 12:46 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2

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

* [Bug target/103676] [10/11/12 Regression] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (20 preceding siblings ...)
  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
                   ` (5 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2022-01-17 16:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #21 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #19)
> r10-3981-gf6ff841bc8dd87ce364deb217dc6d1ec5dc31de8 still doesn't ICE,
> r10-3984-g22060d0e575e7754eb1355763d22bbe37c3caa13 already ICEs.
> 
> I guess there is a disagreement between LRA and recog on how exactly they
> treat register constraints.
> "=lh" for TARGET_THUMB means LO_REGS or HI_REGS classes for the output, bet
> LRA sees that LO_REGS or HI_REGS is together GENERAL_REGS and picks a
> GENERAL_REGS
> (reg:DI 7 r7 [orig:119 tmp ] [119]).  But that one has one half in LO_REGS
> and another half in HI_REGS and so extract_constrain_insn ->
> constrain_operands
> doesn't consider it as matching.

Interesting case.  To find required (reload) register class, LRA (as also the
old reload pass) makes some union of register classes in one alternative which
contains all or part of the registers of the classes (in this case it is
general reg class).  The problem can be solved w/o fixing LRA (and reload pass)
by using

 asm volatile(
  "ldrd %Q[r], %R[r], %[p]\n"
  : [r]"=l,h"(tmp)
  : [p]"m,m"(*p64)
  : "memory"
 );

The problem can be solved in LRA by more complex representation of required reg
classes (still reload should have also such fix).  I guess it will complicate
LRA and reload code a lot.

We could also use more clear description of semantics of constraints currently
used by LRA/reload.  In this case we still need to output more meaningful error
for LRA/reload instead of just internal compiler error.

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

* [Bug target/103676] [10/11/12 Regression] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (21 preceding siblings ...)
  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
                   ` (4 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-01-17 17:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #22 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
If we consider such an inline asm invalid, we could error on it, ICE is not the
right thing.  But what exactly should we error on?  Alternative containing
multiple register classes for multi-word operands is still something used quite
commonly in real-world, the problem is when the RA assigns it a reg spanning
across those.  Or do most backends restrict multi-word regs to start at a reg
number divisible by the number of words they need?

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

* [Bug target/103676] [10/11/12 Regression] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (22 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2022-01-18 13:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #23 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #22)
> If we consider such an inline asm invalid, we could error on it, ICE is not
> the right thing.  But what exactly should we error on?  Alternative

I think it is better to fix it in LRA than describing the semantics.  I am
starting to work on it and will look how the fix is going.  If it is too
complicated, we could try another solution (with describing the current
semantics).

In any case, I think it is not worth to fix the same existing problem in the
old reload pass.

> containing multiple register classes for multi-word operands is still
> something used quite commonly in real-world, the problem is when the RA
> assigns it a reg spanning across those.  Or do most backends restrict
> multi-word regs to start at a reg number divisible by the number of words
> they need?

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

* [Bug target/103676] [10/11/12 Regression] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (23 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  27 siblings, 0 replies; 29+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-01-21 18:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #24 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Vladimir Makarov <vmakarov@gcc.gnu.org>:

https://gcc.gnu.org/g:85419ac59724b7ce710ebb4acf03dbd747edeea3

commit r12-6803-g85419ac59724b7ce710ebb4acf03dbd747edeea3
Author: Vladimir N. Makarov <vmakarov@redhat.com>
Date:   Fri Jan 21 13:34:32 2022 -0500

    [PR103676] LRA: Calculate and exclude some start hard registers for reload
pseudos

    LRA and old reload pass uses only one register class for reload pseudos
even if
    operand constraints contain more one register class.  Let us consider
    constraint 'lh' for thumb arm which means low and high thumb registers.
    Reload pseudo for such constraint will have general reg class (union of
    low and high reg classes).  Assigning the last low register to the reload
    pseudo is wrong if the pseudo is of DImode as it requires two hard regs.
    But it is considered OK if we use general reg class.  The following patch
    solves this problem for LRA.

    gcc/ChangeLog:

            PR target/103676
            * ira.h (struct target_ira): Add member
            x_ira_exclude_class_mode_regs.
            (ira_exclude_class_mode_regs): New macro.
            * lra.h (lra_create_new_reg): Add arg exclude_start_hard_regs and
            move from here ...
            * lra-int.h: ... to here.
            (lra_create_new_reg_with_unique_value): Add arg
            exclude_start_hard_regs.
            (class lra_reg): Add member exclude_start_hard_regs.
            * lra-assigns.cc (find_hard_regno_for_1): Setup
            impossible_start_hard_regs from exclude_start_hard_regs.
            * lra-constraints.cc (get_reload_reg): Add arg
exclude_start_hard_regs and pass
            it lra_create_new_reg[_with_unique_value].
            (match_reload): Ditto.
            (check_and_process_move): Pass NULL
            exclude_start_hard_regs to lra_create_new_reg_with_unique_value.
            (goal_alt_exclude_start_hard_regs): New static variable.
            (process_addr_reg, simplify_operand_subreg): Pass NULL
            exclude_start_hard_regs to lra_create_new_reg_with_unique_value
            and get_reload_reg.
            (process_alt_operands): Setup goal_alt_exclude_start_hard_regs.
            Use this_alternative_exclude_start_hard_regs additionally to find
            winning operand alternative.
            (base_to_reg, base_plus_disp_to_reg, index_part_to_reg): Pass NULL
            exclude_start_hard_regs to lra_create_new_reg.
            (process_address_1, emit_inc): Ditto.
            (curr_insn_transform): Pass exclude_start_hard_regs value to
            lra_create_new_reg, get_reload_reg, match_reload.
            (inherit_reload_reg, split_reg): Pass NULL exclude_start_hard_regs
            to lra_create_new_reg.
            (process_invariant_for_inheritance): Ditto.
            * lra-remat.cc (update_scratch_ops): Ditto.
            * lra.cc (lra_create_new_reg_with_unique_value): Add arg
            exclude_start_hard_regs.  Setup the corresponding member of
            lra reg info.
            (lra_create_new_reg): Add arg exclude_start_hard_regs and pass it
            to lra_create_new_reg_with_unique_value.
            (initialize_lra_reg_info_element): Initialize member
            exclude_start_hard_regs.
            (get_scratch_reg): Pass NULL to lra_create_new_reg.
            * ira.cc (setup_prohibited_class_mode_regs): Rename to
            setup_prohibited_and_exclude_class_mode_regs and calculate
            ira_exclude_class_mode_regs.

    gcc/testsuite/ChangeLog:

            PR target/103676
            * g++.target/arm/pr103676.C: New.

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

* [Bug target/103676] [10/11 Regression] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (24 preceding siblings ...)
  2022-01-21 18:37 ` cvs-commit at gcc dot gnu.org
@ 2022-01-28 16:38 ` 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
  27 siblings, 0 replies; 29+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-01-28 16:38 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[10/11/12 Regression]       |[10/11 Regression] internal
                   |internal compiler error: in |compiler error: in
                   |extract_constrain_insn, at  |extract_constrain_insn, at
                   |recog.c:2671                |recog.c:2671

--- Comment #25 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk.

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

* [Bug target/103676] [10/11 Regression] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (25 preceding siblings ...)
  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
  27 siblings, 0 replies; 29+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:47 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |10.5

--- Comment #26 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.

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

* [Bug target/103676] [11 Regression] internal compiler error: in extract_constrain_insn, at recog.c:2671
  2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
                   ` (26 preceding siblings ...)
  2022-06-28 10:47 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:41 ` rguenth at gcc dot gnu.org
  27 siblings, 0 replies; 29+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:41 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #27 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

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

end of thread, other threads:[~2023-07-07 10:41 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-12 22:32 [Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671 patrick.oppenlander at gmail dot com
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

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).