summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssh
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-15 14:02:35 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-16 15:14:26 +0000
commit2774954f7eb6301888d286a4fddf99be3c5adf48 (patch)
tree6ed97dd455391bbb8ddb1857a62dab53590e229e /meta/recipes-connectivity/openssh
parent0de05c35bdd146cf2356de7850daf74e713991f4 (diff)
downloadpoky-2774954f7eb6301888d286a4fddf99be3c5adf48.tar.gz
openssh: Add a work around for ICE on mips/mips64
Unfortunately the new openssh version has an ICE on mips. This looks similar to: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104817 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104820 Given how long these have been open, workaround the issue by disabling the compiler hardening options on mips. It is likely better to do this than have the open CVEs for everyone as we can't upgrade. An example: | during RTL pass: zero_call_used_regs | clientloop.c: In function 'client_loop': | clientloop.c:1699:1: internal compiler error: in int_mode_for_mode, at stor-layout.cc:407 | 1699 | } | | ^ | 0x14d0acc internal_error(char const*, ...) | ???:0 | 0x5cf765 fancy_abort(char const*, int, char const*) | ???:0 | 0x826f1f emit_move_insn_1(rtx_def*, rtx_def*) | ???:0 | 0x8270c5 emit_move_insn(rtx_def*, rtx_def*) | ???:0 | 0xb7b994 default_zero_call_used_regs(HARD_REG_SET) | ???:0 | Please submit a full bug report, with preprocessed source (by using -freport-bug). | Please include the complete backtrace with any bug report. (From OE-Core rev: 5b290566519a87c563945a033cb49863317ad63d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssh')
-rw-r--r--meta/recipes-connectivity/openssh/openssh_9.6p1.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh_9.6p1.bb b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
index 6366cefdf9..1fd36a266f 100644
--- a/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
@@ -81,6 +81,10 @@ EXTRA_OECONF = "'LOGIN_PROGRAM=${base_bindir}/login' \
81# musl doesn't implement wtmp/utmp and logwtmp 81# musl doesn't implement wtmp/utmp and logwtmp
82EXTRA_OECONF:append:libc-musl = " --disable-wtmp --disable-lastlog" 82EXTRA_OECONF:append:libc-musl = " --disable-wtmp --disable-lastlog"
83 83
84# Work around ICE on mips/mips64 starting in 9.6p1
85EXTRA_OECONF:append:mips = " --without-hardening"
86EXTRA_OECONF:append:mips64 = " --without-hardening"
87
84# Since we do not depend on libbsd, we do not want configure to use it 88# Since we do not depend on libbsd, we do not want configure to use it
85# just because it finds libutil.h. But, specifying --disable-libutil 89# just because it finds libutil.h. But, specifying --disable-libutil
86# causes compile errors, so... 90# causes compile errors, so...