Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
openwrt-bot opened this issue Aug 19, 2019 · 9 comments
Closed
Labels

Comments

@openwrt-bot
Copy link

nouman8:

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

@openwrt-bot
Copy link
Author

nouman8:

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

@openwrt-bot
Copy link
Author

Hauke:

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/

@openwrt-bot
Copy link
Author

nouman8:

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.

@openwrt-bot
Copy link
Author

nouman8:

config file
https://pastebin.com/n84SvDHi

@openwrt-bot
Copy link
Author

lister-wrt:

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.

@openwrt-bot
Copy link
Author

Hauke:

Hi,

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

@openwrt-bot
Copy link
Author

Hauke:

Please try this patch and report back if it fixes your problem:
https://git.openwrt.org/?p=openwrt/staging/hauke.git;a=commitdiff;h=6002bbf040e0464535e1fb7177590a5aede277ad

@openwrt-bot
Copy link
Author

nouman8:

successfully compiled after applying this patch.
Thanks.

@openwrt-bot
Copy link
Author

janeman:

Awesome https://flightsbookingapps.online/google-flights/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant