Drop the optimisation level for ppc64le cross-compile
authorMatt Caswell <matt@openssl.org>
Wed, 24 Aug 2022 14:10:56 +0000 (15:10 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 24 Aug 2022 15:07:30 +0000 (16:07 +0100)
The default cross compiler (gcc 9.4.0) for ppc64le on Ubunut 20.04 seems
buggy and causes a seg fault in sslapitest. This doesn't impact any other
CI cross compile platforms and does not seem to impact the gcc 10.3.0 cross
compiler.

We just drop the optimisation level on that platform.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19056)

.github/workflows/cross-compiles.yml

index 0b4609e57ee9a717162856ed374d82fd14525de8..1bb1cf189ec5a0aaaedb80e5ab269385a4263678 100644 (file)
@@ -80,7 +80,10 @@ jobs:
           }, {
             arch: powerpc64le-linux-gnu,
             libs: libc6-dev-ppc64el-cross,
-            target: linux-ppc64le
+            # The default compiler for this platform on Ubuntu 20.04 seems
+            # buggy and causes test failures. Dropping the optimisation level
+            # resolves it.
+            target: -O2 linux-ppc64le
           }, {
             arch: riscv64-linux-gnu,
             libs: libc6-dev-riscv64-cross,