[Bug 2137464] [NEW] crypto/ec/asm/ecp_nistp521-ppc64.pl output regex failure

Ravi Kant Sharma 2137464 at bugs.launchpad.net
Mon Jan 5 13:27:16 UTC 2026


Public bug reported:

I have a scenario where the ecp_nistp521-ppc64.pl matches the incorrect
param for output instead of crypto/ec/ecp_nistp521-ppc64.s

Here is the build log on Ubuntu 24.04.

CC="gcc" /usr/bin/perl ../crypto/ec/asm/ecp_nistp521-ppc64.pl
"linux64le" -I. -Iinclude -Iproviders/common/include
-Iproviders/implementations/include -I.. -I../include
-I../providers/common/include -I../providers/implementations/include
-fPIC -pthread -m64 -Wa,--noexecstack -Wall -fzero-call-used-regs=used-
gpr -DOPENSSL_TLS_SECURITY_LEVEL=2 -Wa,--noexecstack -g -O3 -ffile-
prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -fno-stack-clash-protection -fdebug-prefix-
map=/<<PKGBUILDDIR>>=/usr/src/openssl-3.0.13-0ubuntu3.7
-DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC
-DOPENSSLDIR="\"/usr/lib/ssl\"" -DENGINESDIR="\"/usr/lib/powerpc64le-
linux-gnu/engines-3\"" -DMODULESDIR="\"/usr/lib/powerpc64le-linux-
gnu/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -Wdate-time
-D_FORTIFY_SOURCE=3 -DAES_ASM -DECP_NISTP521_ASM -DECP_NISTZ256_ASM
-DKECCAK1600_ASM -DOPENSSL_BN_ASM_MONT -DOPENSSL_CPUID_OBJ
-DPOLY1305_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM
-DX25519_ASM  crypto/ec/ecp_nistp521-ppc64.s

It matches -fdebug-prefix-
map=/<<PKGBUILDDIR>>=/usr/src/openssl-3.0.13-0ubuntu3.7

This leads to ecp_nistp521-ppc64.pl writing output to STDOUT instead of
the file crypto/ec/ecp_nistp521-ppc64.s . The missing .s file leads
Missing .s file leads to gcc erroring out and build failure.

This does not happen on Questing and Resolute because the regex does not
match the openssl version release, it will fail once we have an SRU.

** Affects: openssl (Ubuntu)
     Importance: Medium
     Assignee: Ravi Kant Sharma (ravi-sharma)
         Status: Confirmed

** Changed in: openssl (Ubuntu)
   Importance: Undecided => Medium

** Changed in: openssl (Ubuntu)
       Status: New => Confirmed

** Changed in: openssl (Ubuntu)
     Assignee: (unassigned) => Ravi Kant Sharma (ravi-sharma)

** Changed in: openssl (Ubuntu)
    Milestone: None => ubuntu-26.04

** Description changed:

  I have a scenario where the ecp_nistp521-ppc64.pl matches the incorrect
  param for output instead of crypto/ec/ecp_nistp521-ppc64.s
  
  Here is the build log on Ubuntu 24.04.
  
  CC="gcc" /usr/bin/perl ../crypto/ec/asm/ecp_nistp521-ppc64.pl
  "linux64le" -I. -Iinclude -Iproviders/common/include
  -Iproviders/implementations/include -I.. -I../include
  -I../providers/common/include -I../providers/implementations/include
  -fPIC -pthread -m64 -Wa,--noexecstack -Wall -fzero-call-used-regs=used-
  gpr -DOPENSSL_TLS_SECURITY_LEVEL=2 -Wa,--noexecstack -g -O3 -ffile-
  prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
  -Werror=format-security -fno-stack-clash-protection -fdebug-prefix-
  map=/<<PKGBUILDDIR>>=/usr/src/openssl-3.0.13-0ubuntu3.7
  -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC
  -DOPENSSLDIR="\"/usr/lib/ssl\"" -DENGINESDIR="\"/usr/lib/powerpc64le-
  linux-gnu/engines-3\"" -DMODULESDIR="\"/usr/lib/powerpc64le-linux-
  gnu/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -Wdate-time
  -D_FORTIFY_SOURCE=3 -DAES_ASM -DECP_NISTP521_ASM -DECP_NISTZ256_ASM
  -DKECCAK1600_ASM -DOPENSSL_BN_ASM_MONT -DOPENSSL_CPUID_OBJ
  -DPOLY1305_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM
  -DX25519_ASM  crypto/ec/ecp_nistp521-ppc64.s
  
- It matches -fno-stack-clash-protection -fdebug-prefix-
+ It matches -fdebug-prefix-
  map=/<<PKGBUILDDIR>>=/usr/src/openssl-3.0.13-0ubuntu3.7
  
  This leads to ecp_nistp521-ppc64.pl writing output to STDOUT instead of
  the file crypto/ec/ecp_nistp521-ppc64.s . The missing .s file leads
  Missing .s file leads to gcc erroring out and build failure.
  
  This does not happen on Questing and Resolute because the regex does not
  match the openssl version release, it will fail once we have an SRU.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssl in Ubuntu.
https://bugs.launchpad.net/bugs/2137464

Title:
  crypto/ec/asm/ecp_nistp521-ppc64.pl output regex failure

Status in openssl package in Ubuntu:
  Confirmed

Bug description:
  I have a scenario where the ecp_nistp521-ppc64.pl matches the
  incorrect param for output instead of crypto/ec/ecp_nistp521-ppc64.s

  Here is the build log on Ubuntu 24.04.

  CC="gcc" /usr/bin/perl ../crypto/ec/asm/ecp_nistp521-ppc64.pl
  "linux64le" -I. -Iinclude -Iproviders/common/include
  -Iproviders/implementations/include -I.. -I../include
  -I../providers/common/include -I../providers/implementations/include
  -fPIC -pthread -m64 -Wa,--noexecstack -Wall -fzero-call-used-
  regs=used-gpr -DOPENSSL_TLS_SECURITY_LEVEL=2 -Wa,--noexecstack -g -O3
  -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
  -Werror=format-security -fno-stack-clash-protection -fdebug-prefix-
  map=/<<PKGBUILDDIR>>=/usr/src/openssl-3.0.13-0ubuntu3.7
  -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC
  -DOPENSSLDIR="\"/usr/lib/ssl\"" -DENGINESDIR="\"/usr/lib/powerpc64le-
  linux-gnu/engines-3\"" -DMODULESDIR="\"/usr/lib/powerpc64le-linux-
  gnu/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -Wdate-time
  -D_FORTIFY_SOURCE=3 -DAES_ASM -DECP_NISTP521_ASM -DECP_NISTZ256_ASM
  -DKECCAK1600_ASM -DOPENSSL_BN_ASM_MONT -DOPENSSL_CPUID_OBJ
  -DPOLY1305_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM
  -DX25519_ASM  crypto/ec/ecp_nistp521-ppc64.s

  It matches -fdebug-prefix-
  map=/<<PKGBUILDDIR>>=/usr/src/openssl-3.0.13-0ubuntu3.7

  This leads to ecp_nistp521-ppc64.pl writing output to STDOUT instead
  of the file crypto/ec/ecp_nistp521-ppc64.s . The missing .s file leads
  Missing .s file leads to gcc erroring out and build failure.

  This does not happen on Questing and Resolute because the regex does
  not match the openssl version release, it will fail once we have an
  SRU.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/2137464/+subscriptions




More information about the foundations-bugs mailing list