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

            Bug ID: 119664
           Summary: ICE compiling Linux with h8300-linux compiler
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wbx at openadk dot org
  Target Milestone: ---

Created attachment 61028
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61028&action=edit
tcp_minisocks preprocessed

Hi,

now I am targeting real hardware (EDOSK 2674). I get an ICE with Linux 4.4.302.
See here the error message:
/home/wbx/openadk/toolchain_hitachi-edosk2674_uclibc-ng_flat_nommu/usr/bin/h8300-openadk-linux-uclibc-gcc
-Wp,-MD,net/ipv4/.tcp_minisocks.o.d -nostdinc -isystem
/home/wbx/openadk/toolchain_hitachi-edosk2674_uclibc-ng_flat_nommu/usr/lib/gcc/h8300-openadk-linux-uclibc/15.0.1/include
-I./arch/h8300/include -Iarch/h8300/include/generated/uapi
-Iarch/h8300/include/generated  -Iinclude -I./arch/h8300/include/uapi
-Iarch/h8300/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi
-include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE
-ms -mint32 -fno-builtin -D__linux__ -DUTS_SYSNAME=\"uClinux\"
-fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation
-Wno-format-overflow -Wno-int-in-bool-context -Wno-address-of-packed-member
-Wno-attribute-alias -Os -fno-allow-store-data-races -DCC_HAVE_ASM_GOTO
-Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable
-Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls
-fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign
-Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds
-Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized
-fno-strict-overflow -fno-merge-all-constants -fmerge-constants
-fno-stack-check -fconserve-stack -Werror=implicit-int
-Werror=strict-prototypes -Werror=date-time -Wno-packed-not-aligned   
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(tcp_minisocks)" 
-D"KBUILD_MODNAME=KBUILD_STR(tcp_minisocks)" -c -o net/ipv4/tcp_minisocks.o
net/ipv4/tcp_minisocks.c
net/ipv4/tcp_minisocks.c: In function 'tcp_timewait_state_process':
net/ipv4/tcp_minisocks.c:262:1: error: unrecognizable insn:
  262 | }
      | ^
(insn 758 76 759 9 (set (reg:CCZ 12 cc)
        (eq (zero_extract:QI (reg:QI 5 r5 [orig:130 *th_78(D)+13 ] [130])
                (const_int 1 [0x1])
                (const_int 2 [0x2]))
            (const_int 0 [0]))) "include/net/tcp.h":1306:5 -1
     (nil))
during RTL pass: split2
net/ipv4/tcp_minisocks.c:262:1: internal compiler error: in extract_insn, at
recog.cc:2882
0x7fc0e8327249 __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x7fc0e8327304 __libc_start_main_impl
        ../csu/libc-start.c:360
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.


./toolchain_hitachi-edosk2674_uclibc-ng_flat_nommu/usr/bin/h8300-openadk-linux-uclibc-gcc
-v
Using built-in specs.
COLLECT_GCC=./toolchain_hitachi-edosk2674_uclibc-ng_flat_nommu/usr/bin/h8300-openadk-linux-uclibc-gcc
COLLECT_LTO_WRAPPER=/home/wbx/openadk/toolchain_hitachi-edosk2674_uclibc-ng_flat_nommu/usr/libexec/gcc/h8300-openadk-linux-uclibc/15.0.1/lto-wrapper
Target: h8300-openadk-linux-uclibc
Configured with:
/home/wbx/openadk/toolchain_build_hitachi-edosk2674_uclibc-ng_flat_nommu/w-gcc-git-1/gcc-git/configure
--prefix=/home/wbx/openadk/toolchain_hitachi-edosk2674_uclibc-ng_flat_nommu/usr
--with-bugurl=https://openadk.org --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=h8300-openadk-linux-uclibc
--with-gmp=/home/wbx/openadk/host_x86_64-linux-gnu/usr
--with-mpfr=/home/wbx/openadk/host_x86_64-linux-gnu/usr --enable-__cxa_atexit
--with-system-zlib --with-gnu-ld --with-gnu-as --disable-libsanitizer
--disable-install-libiberty --disable-libitm --disable-libmudflap
--disable-libgomp --disable-libcc1 --disable-libmpx --disable-libcilkrts
--disable-libquadmath --disable-libquadmath-support --disable-decimal-float
--disable-gcov --disable-libstdcxx-pch --disable-ppl-version-check
--disable-cloog-version-check --without-ppl --without-cloog --without-isl
--disable-werror --disable-nls --enable-obsolete --disable-lto --disable-tls
--disable-threads --disable-libatomic --disable-shared --disable-libssp
--disable-biarch --disable-multilib --enable-languages=c
--with-build-sysroot='/../../target_hitachi-edosk2674_uclibc-ng_flat_nommu'
--with-sysroot='/../../target_hitachi-edosk2674_uclibc-ng_flat_nommu'
Thread model: single
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.1 20250407 (experimental) (GCC) 

thanks
 Waldemar

Reply via email to