Skip to contentSkip to conversation

New: toolchain Arm AArch64 toolchain 11.2-2022.02

Buildroot [email protected] 1 participant 3 messages Sep 21, 2022 – Oct 25, 2022

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=15006

            Bug ID: 15006
           Summary: toolchain Arm AArch64 toolchain 11.2-2022.02
           Product: buildroot
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Target Milestone: ---

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

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

[Buildroot] [Bug 15006] toolchain Arm AArch64 toolchain 11.2-2022.02

https://bugs.busybox.net/show_bug.cgi?id=15006

--- Comment #1 from [email protected] ---
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

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

[Buildroot] [Bug 15006] toolchain Arm AArch64 toolchain 11.2-2022.02

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=15006

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Thomas Petazzoni <[email protected]> --- Fixed by
https://gitlab.com/buildroot.org/buildroot/-/commit/ab828e25fb3ea640cfa7e85a5dd765db208db80a.

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot