OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity High
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by nouman8 - 19.08.2019

FS#2455 - Compile Error on Arch Linux with gcc 9.2 selected toolchain

make[4]: Entering directory ‘openwrt/build_dir/target-mips_74kc_musl/json-c-0.13.1’ make all-recursive
make[5]: Entering directory ‘openwrt/build_dir/target-mips_74kc_musl/json-c-0.13.1’ Making all in .
make[6]: Entering directory ‘openwrt/build_dir/target-mips_74kc_musl/json-c-0.13.1’

CC       json_object.lo

during RTL pass: split2
json_object.c: In function ‘json_object_int_inc’:
json_object.c:735:1: internal compiler error: Segmentation fault

735 | }
    | ^

0xa1397f crash_signal

openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/toplev.c:326

0xcd428e mips_split_move(rtx_def*, rtx_def*, mips_split_type, rtx_def*)

openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/config/mips/mips.c:4871

0xe9cc20 gen_split_59(rtx_insn*, rtx_def)
openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/config/mips/mips.md:5248
0xeec295 split_3
openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/config/mips/mips.md:5246
0xeec295 split_insns(rtx_def*, rtx_insn*)
openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/config/mips/mips.md:7019
0x72b189 try_split(rtx_def*, rtx_insn*, int)
openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/emit-rtl.c:3851
0x9843d1 split_insn
openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/recog.c:2901
0x988e47 split_all_insns()
openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/recog.c:3005
0x988ed8 execute
openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/recog.c:3905
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://bugs.openwrt.org/> for instructions.
make[6]:
* [Makefile:597: json_object.lo] Error 1
make[6]: Leaving directory ‘openwrt/build_dir/target-mips_74kc_musl/json-c-0.13.1’ make[5]: * [Makefile:661: all-recursive] Error 1
make[5]: Leaving directory ‘openwrt/build_dir/target-mips_74kc_musl/json-c-0.13.1’ make[4]:
* [Makefile:459: all] Error 2
make[4]: Leaving directory ‘openwrt/build_dir/target-mips_74kc_musl/json-c-0.13.1’ make[3]: * [Makefile:65: openwrt/build_dir/target-mips_74kc_musl/json-c-0.13.1/.built] Error 2
make[3]: Leaving directory ‘openwrt/package/libs/libjson-c’ time: package/libs/libjson-c/compile#0.60#0.12#0.69
make[2]:
* [package/Makefile:113: package/libs/libjson-c/compile] Error 2
make[2]: Leaving directory ‘openwrt’ make[1]: * [package/Makefile:107: openwrt/staging_dir/target-mips_74kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory ‘openwrt’ make:
* [openwrt/include/toplevel.mk:218: world] Error 2

nouman8 commented on 19.08.2019 23:27
make[4]: Entering directory 'openwrt/build_dir/target-mips_74kc_musl/json-c-0.13.1'
make  all-recursive
make[5]: Entering directory 'openwrt/build_dir/target-mips_74kc_musl/json-c-0.13.1'
Making all in .
make[6]: Entering directory 'openwrt/build_dir/target-mips_74kc_musl/json-c-0.13.1'
  CC       json_object.lo
during RTL pass: split2
json_object.c: In function 'json_object_int_inc':
json_object.c:735:1: internal compiler error: Segmentation fault
  735 | }
      | ^
0xa1397f crash_signal
	openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/toplev.c:326
0xcd428e mips_split_move(rtx_def*, rtx_def*, mips_split_type, rtx_def*)
	openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/config/mips/mips.c:4871
0xe9cc20 gen_split_59(rtx_insn*, rtx_def**)
	openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/config/mips/mips.md:5248
0xeec295 split_3
	openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/config/mips/mips.md:5246
0xeec295 split_insns(rtx_def*, rtx_insn*)
	openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/config/mips/mips.md:7019
0x72b189 try_split(rtx_def*, rtx_insn*, int)
	openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/emit-rtl.c:3851
0x9843d1 split_insn
	openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/recog.c:2901
0x988e47 split_all_insns()
	openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/recog.c:3005
0x988ed8 execute
	openwrt/build_dir/toolchain-mips_74kc_gcc-9.2.0_musl/gcc-9.2.0/gcc/recog.c:3905
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://bugs.openwrt.org/> for instructions.
make[6]: *** [Makefile:597: json_object.lo] Error 1
make[6]: Leaving directory 'openwrt/build_dir/target-mips_74kc_musl/json-c-0.13.1'
make[5]: *** [Makefile:661: all-recursive] Error 1
make[5]: Leaving directory 'openwrt/build_dir/target-mips_74kc_musl/json-c-0.13.1'
make[4]: *** [Makefile:459: all] Error 2
make[4]: Leaving directory 'openwrt/build_dir/target-mips_74kc_musl/json-c-0.13.1'
make[3]: *** [Makefile:65: openwrt/build_dir/target-mips_74kc_musl/json-c-0.13.1/.built] Error 2
make[3]: Leaving directory 'openwrt/package/libs/libjson-c'
time: package/libs/libjson-c/compile#0.60#0.12#0.69
make[2]: *** [package/Makefile:113: package/libs/libjson-c/compile] Error 2
make[2]: Leaving directory 'openwrt'
make[1]: *** [package/Makefile:107: openwrt/staging_dir/target-mips_74kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory 'openwrt'
make: *** [openwrt/include/toplevel.mk:218: world] Error 2
Project Manager
Hauke Mehrtens commented on 01.09.2019 11:24

This looks like a problem in the upstream GCC.

Could you please open a bug report at the gcc project, see https://www.gnu.org/software/gcc/bugs/

nouman8 commented on 02.09.2019 05:14

i'm able to compile latest master branch for x86 with gcc 9.2 perfectly fine on the same machine but not for ath79...i can upload .config that causes the error.
i consider myself noob so me reporting a gcc bug is not right and i wont be able to follow up later.

nouman8 commented on 02.09.2019 05:25
lister-wrt commented on 08.09.2019 10:35

I have the same issue on Manjaro Arch. I can build x86, mvebu and ath79 but ramips, lantiq and ar71xx fail with the same error.

Tried make clean/dirclean but it didn't help.

Project Manager
Hauke Mehrtens commented on 08.09.2019 18:04

Hi,

I can reproduce this problem and created a bug report for GCC:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91702

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing