Skip to content

Commit

Permalink
openssh: Add a workaround for ICE on powerpc64le
Browse files Browse the repository at this point in the history
Fixes [YOCTO #15415]

The new openssh version has an ICE on powerpc64le similar to the one on
mips/mips64[1]. By adding flag "--without-hardening" to "./configure",
compiler option "-fzero-call-used-regs" will be removed when compiling. This
prevents certain functions from triggering the following ICE:

unimplemented: argument 'used' is not supported for '-fzero-call-used-regs' on this target

References
[1] https://git.openembedded.org/openembedded-core/commit/?id=5b290566519a87c563945a033cb49863317ad63d

(From OE-Core rev: bc793fa9d1fe24c102d91e97b7002b6e637cbfa5)

Signed-off-by: William Lyu <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
  • Loading branch information
wlyu2 authored and rpurdie committed Mar 8, 2024
1 parent 125771c commit b5624ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meta/recipes-connectivity/openssh/openssh_9.6p1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ EXTRA_OECONF:append:libc-musl = " --disable-wtmp --disable-lastlog"
EXTRA_OECONF:append:mips = " --without-hardening"
EXTRA_OECONF:append:mips64 = " --without-hardening"

# Work around ICE on powerpc64le starting in 9.6p1
EXTRA_OECONF:append:powerpc64le = " --without-hardening"

# Since we do not depend on libbsd, we do not want configure to use it
# just because it finds libutil.h. But, specifying --disable-libutil
# causes compile errors, so...
Expand Down

0 comments on commit b5624ee

Please sign in to comment.