Bug#999351: ruby3.0: Please build with -O1 on alpha

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.alpha
Message-ID <163653846900.1569200.14695057515914333435.reportbug__22737.7912773349$1636538614$gmane$org@nofan.physik.fu-berlin.de>
Source: ruby2.7
Severity: normal
Tags: patch
User: [email protected]
Usertags: alpha
X-Debbugs-Cc: [email protected]

Hi!

ruby3.0 currently FTBFS on alpha with an GCC internal compiler error [1].

This can be worked around by passing -O1 to the compiler. Could you patch debian/rules
so that -O1 is passed to the compiler?

--- debian/rules.orig   2021-10-18 14:52:16.000000000 +0200
+++ debian/rules        2021-11-07 23:12:07.114346920 +0100
@@ -62,6 +62,10 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
 configure_options += $(shell dpkg-buildflags --export=configure)
 
+ifneq (,$(filter $(DEB_HOST_ARCH),alpha))
+export DEB_CFLAGS_MAINT_APPEND += -O1
+endif
+
 # See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93808
 ifneq (,$(filter $(DEB_HOST_ARCH),sh3 sh4))
 export DEB_CFLAGS_MAINT_APPEND += -fno-crossjumping

Thanks,
Adrian

> [1] https://buildd.debian.org/status/fetch.php?pkg=ruby3.0&arch=alpha&ver=3.0.2-5&stamp=1635296543&raw=0

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.