Commit 11d83607b8 for openssl.org
commit 11d83607b8152c77e1175190e42034c5a6f6e77c
Author: t0kubetsu <alexis.danjon@nc3.lu>
Date: Tue Oct 20 11:00:49 2026 +0200
poly1305-armv9-sve2.pl: close STDOUT before exiting
The last line of the script was " STDOUT or die ...", without the
"close" keyword, so the pipe to arm-xlate.pl was never closed
explicitly. Perl could then exit before arm-xlate.pl had written the
output file, and make compiled poly1305-armv9-sve2.S before it existed:
gcc: error: crypto/poly1305/poly1305-armv9-sve2.S: No such file or directory
This was seen on linux-aarch64 builds in the manylinux2014 image
(perl 5.16.3) under QEMU. Running the generator alone 5 times in that
image, the output file was missing right after perl exited 5 times out
of 5; with this change, 0 times out of 5.
The other perlasm scripts, for example poly1305-armv8.pl and
chacha-armv8-sve.pl, already end with "close STDOUT or die ...".
CLA: trivial
Assisted-by: Claude Code:claude-opus-5-5
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Merge-date: Fri Oct 23 12:49:47 2026
Merged-from: https://github.com/openssl/openssl/pull/33276
diff --git a/crypto/poly1305/asm/poly1305-armv9-sve2.pl b/crypto/poly1305/asm/poly1305-armv9-sve2.pl
index 1ba59c796d..aa35299494 100755
--- a/crypto/poly1305/asm/poly1305-armv9-sve2.pl
+++ b/crypto/poly1305/asm/poly1305-armv9-sve2.pl
@@ -1418,4 +1418,4 @@ foreach my $line (split("\n",$code)) {
}
}
- STDOUT or die "error closing STDOUT: $!";
+close STDOUT or die "error closing STDOUT: $!";