mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] PTXDIST 2025.09.0: build failure of openssl-3.5.2 when gcc option -fzero-call-used-regs is not supported
@ 2025-09-17  6:32 ruggero rossi via ptxdist
  2025-09-17  8:30 ` Christian Melki
  0 siblings, 1 reply; 4+ messages in thread
From: ruggero rossi via ptxdist @ 2025-09-17  6:32 UTC (permalink / raw)
  To: ptxdist; +Cc: ruggero rossi

[-- Attachment #1: Type: text/plain, Size: 537 bytes --]

Hello everybody,

On my system, the gcc toolchain does not support the
-fzero-call-used-regs option.

With PTXDIST 2025.09.0 this causes the build of OpenSSL 3.5.2 to fail.

An ad-hoc patch is trivial:
I removed the -fzero-call-used-regs=used-gpr flag from
openssl-3.5.2/Configurations/20-debian.conf (see attached patch).

My question is: would it be possible to integrate a more general solution
into PTXDIST, so that the build works regardless of whether the toolchain
supports this GCC option?

Best regards,

Ruggero Rossi










[-- Attachment #2: 0005-no-fzero-call-used-regs.patch --]
[-- Type: text/x-patch, Size: 469 bytes --]

Index: openssl-3.5.2/Configurations/20-debian.conf
===================================================================
--- openssl-3.5.2.orig/Configurations/20-debian.conf
+++ openssl-3.5.2/Configurations/20-debian.conf
@@ -1,6 +1,6 @@
 my %targets = (
 	"debian" => {
-		cflags => add("-Wa,--noexecstack -Wall -fzero-call-used-regs=used-gpr"),
+		cflags => add("-Wa,--noexecstack -Wall"),
 	},
 	"debian-alpha" => {
 		inherit_from => [ "linux-alpha-gcc", "debian" ],

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-09-17  9:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-17  6:32 [ptxdist] PTXDIST 2025.09.0: build failure of openssl-3.5.2 when gcc option -fzero-call-used-regs is not supported ruggero rossi via ptxdist
2025-09-17  8:30 ` Christian Melki
2025-09-17  9:00   ` ruggero rossi via ptxdist
2025-09-17  9:18     ` Christian Melki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox