Hello, I'm using the current Buildroot master branch after the 2022.08 release and after the merge of the next branch that include a ARM toolchain version bump to 11.2-2022.02. This toolchain trigger some "Illegal instruction" error on some x86_64 host like Intel(R) Xeon(R) CPU X5670. gfortran is not able to pass the check in helper.mk: <built-in>: internal compiler error: Illegal instruction 0x7f42c83efd5f ??? ./signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 0x7f42c83dad09 __libc_start_main ../csu/libc-start.c:308 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. Disabling gfortran allows to continue the build but it break with busybox build with similar errors: free(): invalid next size (fast) editors/awk.c: In function ‘parse_expr’: editors/awk.c:608:21: internal compiler error: Aborted 608 | #define G (*(struct globals2 *)ptr_to_globals) | ^~~~~~~~ editors/awk.c:642:23: note: in expansion of macro ‘G’ 642 | #define t_info (G.t_info ) | ^ editors/awk.c:1406:41: note: in expansion of macro ‘t_info’ 1406 | cn = vn->r.n = new_node(t_info); | ^~~~~~ during GIMPLE pass: strlen networking/tc.c: In function ‘cbq_print_opt.isra’: networking/tc.c:234:12: internal compiler error: Illegal instruction 234 | static int cbq_print_opt(struct rtattr *opt) | ^~~~~~~~~~~~~ free(): invalid pointer during GIMPLE pass: ssa coreutils/sort.c: In function ‘bb_ascii_toupper’: coreutils/sort.c:648:1: internal compiler error: Aborted 648 | } | ^ 0x7f107f6b2d5f ??? ./signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 0x7f107f6b2ce1 __GI_raise ../sysdeps/unix/sysv/linux/raise.c:51 0x7f107f69c536 __GI_abort ./stdlib/abort.c:79 0x7f107f6f5767 __libc_message ../sysdeps/posix/libc_fatal.c:155 0x7f107f6fca59 malloc_printerr ./malloc/malloc.c:5347 0x7f107f6fdc13 _int_free ./malloc/malloc.c:4173 0x7f107f69dd09 __libc_start_main ../csu/libc-start.c:308 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://bugs.linaro.org/> for instructions. It happen with the arm and aarch64 target. Tested with Intel(R) Core(TM) i7-10850H cpu doesn't trigger such problem. Best regards, Romain
Hello, It seems this is a similar issue than for arm-gnu-toolchain (bare-metal toolchain) [1] [1] https://gitlab.com/buildroot.org/buildroot/-/commit/f1017a5834b744e6f87c3372a6de60d553566fd2 There is even a new release 11.3.Rel1 but the prebuilt binaries still crash. Best regards, Romain
Fixed by https://gitlab.com/buildroot.org/buildroot/-/commit/ab828e25fb3ea640cfa7e85a5dd765db208db80a.