🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.ports.s390
Article #41

Re: gmpfrxx-mkii FTBFS on s309x

#41
From: Rafael Laboissière
Date: Mon, 23 Nov 2026 12:50
72 lines
4660 bytes
Hi Pranav,

Thanks for the update.

The debian/rules file of the gmpfrxx-mkii package currently contains the following:

    ifeq (s390x,$(DEB_HOST_ARCH))
    export DEB_CXXFLAGS_MAINT_APPEND = -O0
    endif

Do you think that it would be better to change it to the following?

    ifeq (s390x,$(DEB_HOST_ARCH))
    export DEB_CXXFLAGS_MAINT_APPEND = -O2 -fno-inline-functions
    endif

I would argue that the latter is the better option since it is more optimized. However, I am not an expert on this topic, so I can't judge correctly.

Best,

Rafael

* Pranav P <pranavp1729@gmail.com> [2026-11-23 11:53]:

> Hi Rafael, Hi Peter,
>
> So sorry for the late reply. I was away for some time. I have tested
> this with clang and it works perfectly fine over there. And with -O2 if
> I pass -fno-inline or -fno-inline-functions also works fine. And I don't
> see anything that points to an undefined behaviour at the respective
> part of the code (re-verified by running an LLM there as well). I think
> I'll ping Stefan (gcc maintainer for s390x) and ask for help.
>
> In the function:
>
>
> void check_division_by_zero_throws()
> {
>     const gmpxx::mpz_class numerator(42);
>     const gmpxx::mpz_class zero(0);
>
>     require_domain_error([&] {
>         const gmpxx::mpz_class quotient = numerator / zero;
>         (void)quotient;
>     });
>
>     require_domain_error([&] {
>         gmpxx::mpz_class quotient = numerator;
>         quotient /= zero;
>     });
>
>     require_domain_error([&] {
>         gmpxx::mpz_class quotient = numerator;
>         quotient /= 0;
>     });
>
>     require_domain_error([&] {
>         gmpxx::mpz_class quotient = numerator;
>         quotient /= 0.0;
>     });
> }
>
>
> If I only keep one of the require_domain_error (tried each combination)
> it doesn't crash. And it doesn't crash with every combination taken 2 at
> a time either. One example I have seen it crash is with the 1st and 4th
> `require_domain_error`s.
>
> I'll update in this thread if I find anything else.
>
> Thanks,
> Pranav
Technical Details
Message-ID: <O2BEC-dFz6-11@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NY2YN-b6vh-3@gated-at.bofh.it> <NYbfH-bbm5-1@gated-at.bofh.it> <NYZFv-bDEN-7@gated-at.bofh.it> <NYZFv-bDEN-9@gated-at.bofh.it> <NYZFv-bDEN-5@gated-at.bofh.it> <NZ20F-bF1O-5@gated-at.bofh.it> <NZ6nD-bHp3-5@gated-at.bofh.it> <NZ6nD-bHp3-3@gated-at.bofh.it> <NZfhf-bMGJ-1@gated-at.bofh.it> <O2BEC-dFz6-13@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Rafael Laboissière <rafael@debian.org>
Newsgroups: linux.debian.ports.s390
Subject: Re: gmpfrxx-mkii FTBFS on s309x
Date: Mon, 23 Nov 2026 13:50:02 +0100
Message-ID: <O2BEC-dFz6-11@gated-at.bofh.it>
References: <NY2YN-b6vh-3@gated-at.bofh.it> <NYbfH-bbm5-1@gated-at.bofh.it> <NYZFv-bDEN-7@gated-at.bofh.it> <NYZFv-bDEN-9@gated-at.bofh.it> <NYZFv-bDEN-5@gated-at.bofh.it> <NZ20F-bF1O-5@gated-at.bofh.it> <NZ6nD-bHp3-5@gated-at.bofh.it> <NZ6nD-bHp3-3@gated-at.bofh.it> <NZfhf-bMGJ-1@gated-at.bofh.it> <O2BEC-dFz6-13@gated-at.bofh.it>
X-Mailbox-Line: From debian-s390-request@lists.debian.org  Mon Nov 23 12:45:12 2026
Old-Return-Path: <rafael@debian.org>
X-Amavis-Spam-Status: No, score=-4.401 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Organization: Debian GNU/Linux
X-Content-Language: en-us
X-Position: 525
X-Debian-User: rafael
X-Mailing-List: <debian-s390@lists.debian.org> archive/latest/6152
List-ID: <debian-s390.lists.debian.org>
List-URL: <https://lists.debian.org/debian-s390/>
List-Archive: https://lists.debian.org/msgid-search/awQxpfpNyttv3MVN@laboissiere.net
Approved: robomod@news.nic.it
Lines: 72
Sender: robomod@news.nic.it
X-Original-Cc: Peter Blackman <peter@pblackman.plus.com>,
	Maho Nakata <maho.nakata@gmail.com>,
	"debian-science@lists.debian.org" <debian-science@lists.debian.org>,
	"debian-s390@lists.debian.org" <debian-s390@lists.debian.org>
X-Original-Date: Mon, 23 Nov 2026 13:29:25 +0100
X-Original-Message-ID: <awQxpfpNyttv3MVN@laboissiere.net>
X-Original-References: <PAXPR05MB878483829C858431BA870CC382722@PAXPR05MB8784.eurprd05.prod.outlook.com>
 <avQZrr0iSR18m2Xy@laboissiere.net>
 <CO1PR15MB4841AB3B26C960DE9503CCA2A0712@CO1PR15MB4841.namprd15.prod.outlook.com>
 <CO1PR15MB48414C526303D2316C558E20A0702@CO1PR15MB4841.namprd15.prod.outlook.com>
 <avcOPuLebbKKljtY@laboissiere.net>
 <avcxFFQvsg9u_rh8@laboissiere.net>
 <0800adb7ace37f22a19622ee217030806df742a7.camel@gmail.com>
 <f6f9181f-ec95-4364-9604-f5fb00af59b7@pblackman.plus.com>
 <avf3rWKJjCRl128K@laboissiere.net>
 <3608c7cf43663cb354f306f9e010d77a7b783f0b.camel@gmail.com>