Bugzilla – Bug 1138809
LTO: gmp build fails
Last modified: 2023-04-06 15:26:52 UTC
Fails in the following test-case: abuild@marxinbox:~/rpmbuild/BUILD/gmp-6.1.2/tests/mpz> ./t-get_d_2exp mpz_get_d_2exp wrong on 2**54-1 result out of range, expect 0.5 <= got < 1.0 rnd_mode = 0 data[i] = 54 z =0x3FFFFFFFFFFFFF got =[00 00 00 00 00 00 F0 3F] 1 got exp 54 Aborted (core dumped) https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:N/gmp/standard/x86_64 For not I'm going to disable LTO for it.
Did you file an upstream bugreport? Did you do any analysis? Note that the testsuite uses the static libgmp which means we end up LTO-ing that. I'd say instead of SR#711056 we want to disable LTO for the testsuite only and see if we run into issues downstream. Does the following work? Index: gmp.spec =================================================================== --- gmp.spec (revision c7798040d19b320e52e6462ed7ede0e8) +++ gmp.spec (working copy) @@ -81,6 +81,8 @@ %check # do not disable "make check", FIX THE BUGS! +# bsc#1138809 lists mpz/t-get_d_2exp failing with LTO +export CFLAGS="%{optflags} -fno-lto" make %{?_smp_mflags} check %install
(In reply to Richard Biener from comment #1) > Did you file an upstream bugreport? Did you do any analysis? I've just sent a bug report (CCing you). And I haven't done an analysis yet. > Note that the > testsuite uses the static libgmp which means we end up LTO-ing that. Ah I see. > > I'd say instead of SR#711056 we want to disable LTO for the testsuite only > and see if we run into issues downstream. Does the following work? > > Index: gmp.spec > =================================================================== > --- gmp.spec (revision c7798040d19b320e52e6462ed7ede0e8) > +++ gmp.spec (working copy) > @@ -81,6 +81,8 @@ > > %check > # do not disable "make check", FIX THE BUGS! > +# bsc#1138809 lists mpz/t-get_d_2exp failing with LTO > +export CFLAGS="%{optflags} -fno-lto" > make %{?_smp_mflags} check > > %install No, that does not help, the issue is really in the library. Using -fno-lto does not help in test-suite. I can return to it, but for now I would prefer disabling of LTO.
So it's a known issue: https://gmplib.org/list-archives/gmp-bugs/2019-May/004547.html
This is an autogenerated message for OBS integration: This bug (1138809) was mentioned in https://build.opensuse.org/request/show/712776 Factory / gmp
So it seems it is a gmp issue. If incorrect please re-assign.
(In reply to Alynx Zhou from comment #5) > So it seems it is a gmp issue. If incorrect please re-assign. Yep, they are working on that. Please leave it assigned to me.
(In reply to Martin Liška from comment #6) > (In reply to Alynx Zhou from comment #5) > > So it seems it is a gmp issue. If incorrect please re-assign. > > Yep, they are working on that. Please leave it assigned to me. Thank you! It shows in bnc-screening-team before I assign it.