Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 650558 - dev-libs/gmp: pgo tuning doesn't work
Summary: dev-libs/gmp: pgo tuning doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://gmplib.org/list-archives/gmp-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-15 12:42 UTC by Nikita Zlobin
Modified: 2023-07-30 17:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Zlobin 2018-03-15 12:42:48 UTC
Tune command: ./tune/tuneup | tee gmp.mparam.h.new

and following eend call seem to not give good status to proceed.
I tried to do it manually, inside sources.

I watched two attempts on two laptop, both have this:
 speed_measure() could not get 4 results within 1.0%

After what some results are printed - in unsorted and sorted columns.
Then:

echo $?
0

On next tuneup run:
$ echo ${PIPESTATUS[*]/#/+}
+134 +0

$ echo $(( 0 + +134 +0 ))
134
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2018-03-20 20:12:25 UTC
Can you provide 'emerge --info' and explain a bit more what you expect to see?
Comment 2 Nikita Zlobin 2018-03-20 21:17:45 UTC
$ emerge --info gmp
Portage 2.3.19 (python 3.5.4-final-0, !../../var/lib/layman/distros/profiles/CLDX/amd64, gcc-6.4.0, glibc-2.25-r10, 4.14.19-calculate x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.19-calculate-x86_64-Intel-R-_Pentium-R-_CPU_B950_@_2.10GHz-with-gentoo-17.12.2
KiB Mem:     8038060 total,   1777072 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 07 Mar 2018 05:00:01 +0000
Head commit of repository gentoo: 25c00a1114bb72904a551b1445950aa175e4fab5

Head commit of repository audio-overlay: 86676d28a3aff0f9e022fab15b261eaba3935011

Head commit of repository compiz-reloaded: 9ff144c39658add56712c01309d0321ac52b9664

sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
ccache version 3.3.4 [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r10::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://git.calculate-linux.org/repo/gentoo.git
    priority: -1000

audio-overlay
    location: /var/lib/layman/audio-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-audio/audio-overlay.git
    masters: gentoo

compiz-reloaded
    location: /var/lib/portage/overlays/compiz-reloaded
    sync-type: git
    sync-uri: https://github.com/kajzersoze/compiz-reloaded-overlay
    masters: gentoo

nick87720z
    location: /usr/local/portage
    masters: gentoo

4nykey
    location: /var/lib/layman/4nykey
    sync-type: laymansync
    sync-uri: https://github.com/4nykey/4nykey.git
    masters: gentoo
    priority: 50

abendbrot
    location: /var/lib/layman/abendbrot
    sync-type: laymansync
    sync-uri: https://github.com/stefan-gr/abendbrot.git
    masters: gentoo
    priority: 50

anders-larsson
    location: /var/lib/layman/anders-larsson
    sync-type: laymansync
    sync-uri: https://github.com/anders-larsson/gentoo-overlay.git
    masters: gentoo
    priority: 50

archenroot
    location: /var/lib/layman/archenroot
    sync-type: laymansync
    sync-uri: https://github.com/archenroot/gentoo-overlay.git
    masters: gentoo
    priority: 50

calculate
    location: /var/lib/layman/calculate
    sync-type: laymansync
    sync-uri: git://github.com/calculatelinux/calculate.git
    masters: gentoo
    priority: 50

cg
    location: /var/lib/layman/cg
    sync-type: laymansync
    sync-uri: https://github.com/brothermechanic/cg.git
    masters: gentoo
    priority: 50

deadbeef-overlay
    location: /var/lib/layman/deadbeef-overlay
    sync-type: laymansync
    sync-uri: https://github.com/damex/deadbeef-overlay.git
    masters: gentoo
    priority: 50

distros
    location: /var/lib/layman/distros
    sync-type: laymansync
    sync-uri: git://github.com/calculatelinux/distros.git
    masters: calculate gentoo
    priority: 50

dlang
    location: /var/lib/layman/dlang
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/dlang.git
    masters: gentoo
    priority: 50

eclipse
    location: /var/lib/layman/eclipse
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/eclipse-overlay.git
    masters: gentoo
    priority: 50

elementary
    location: /var/lib/layman/elementary
    sync-type: laymansync
    sync-uri: git://github.com/pimvullers/elementary.git
    masters: gentoo
    priority: 50

enlightenment-live
    location: /var/lib/layman/enlightenment-live
    sync-type: laymansync
    sync-uri: https://github.com/rafspiny/enlightenment-live.git
    masters: gentoo
    priority: 50

fkmclane
    location: /var/lib/layman/fkmclane
    sync-type: laymansync
    sync-uri: https://github.com/fkmclane/overlay.git
    masters: gentoo
    priority: 50

gamerlay
    location: /var/lib/layman/gamerlay
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/gamerlay.git
    masters: gentoo
    priority: 50

gnome
    location: /var/lib/layman/gnome
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/gnome.git
    masters: gentoo
    priority: 50

jorgicio
    location: /var/lib/layman/jorgicio
    sync-type: laymansync
    sync-uri: https://github.com/jorgicio/jorgicio-gentoo.git
    masters: gentoo
    priority: 50

lxde-gtk3
    location: /var/lib/layman/lxde-gtk3
    sync-type: laymansync
    sync-uri: https://github.com/rilian-la-te/lxde-gtk3-overlay.git
    masters: gentoo
    priority: 50

mv
    location: /var/lib/layman/mv
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/user/mv.git
    masters: gentoo
    priority: 50

mva
    location: /var/lib/layman/mva
    sync-type: laymansync
    sync-uri: https://github.com/msva/mva-overlay
    masters: gentoo
    priority: 50

octave
    location: /var/lib/layman/octave
    sync-type: laymansync
    sync-uri: https://github.com/rafaelmartins/octave-overlay.git
    masters: gentoo
    priority: 50

palemoon
    location: /var/lib/layman/palemoon
    sync-type: laymansync
    sync-uri: https://github.com/deu/palemoon-overlay.git
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    sync-type: laymansync
    sync-uri: https://github.com/pentoo/pentoo-overlay.git
    masters: gentoo
    priority: 50

prism-overlay
    location: /var/lib/layman/prism-overlay
    sync-type: laymansync
    sync-uri: git://github.com/hasufell/prism-overlay.git
    masters: gentoo
    priority: 50

proaudio
    location: /var/lib/layman/proaudio
    sync-type: laymansync
    sync-uri: svn://svn.tuxfamily.org/svnroot/proaudio/proaudio/trunk/overlays/proaudio
    masters: gentoo
    priority: 50

qt
    location: /var/lib/layman/qt
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50

ring-overlay
    location: /var/lib/layman/ring-overlay
    sync-type: laymansync
    sync-uri: https://github.com/stefan-langenmaier/ring-overlay.git
    masters: gentoo
    priority: 50

rion
    location: /var/lib/layman/rion
    sync-type: laymansync
    sync-uri: https://github.com/rion-overlay/rion-overlay.git
    masters: gentoo
    priority: 50

rust
    location: /var/lib/layman/rust
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/gentoo-rust.git
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sci.git
    masters: gentoo
    priority: 50

stefantalpalaru
    location: /var/lib/layman/stefantalpalaru
    sync-type: laymansync
    sync-uri: https://github.com/stefantalpalaru/gentoo-overlay.git
    masters: gentoo
    priority: 50

stuff
    location: /var/lib/layman/stuff
    sync-type: laymansync
    sync-uri: https://github.com/istitov/stuff.git
    masters: gentoo
    priority: 50

tox-overlay
    location: /var/lib/layman/tox-overlay
    sync-type: laymansync
    sync-uri: git://github.com/Tox/gentoo-overlay-tox.git
    masters: gentoo
    priority: 50

unity-gentoo
    location: /var/lib/layman/unity-gentoo
    sync-type: laymansync
    sync-uri: git://github.com/shiznix/unity-gentoo.git
    masters: gentoo
    priority: 50

wine
    location: /var/lib/layman/wine
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/repo/proj/wine.git
    masters: gentoo
    priority: 50

Installed sets: @autodeps, @custom
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -fno-delete-null-pointer-checks"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /var/lib/i2pd/certificates"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -fno-delete-null-pointer-checks"
DISTDIR="/var/calculate/remote/distfiles"
EMERGE_DEFAULT_OPTS=" --binpkg-changed-deps=n --quiet-build=n --binpkg-respect-use=y --jobs=4 --ask-enter-invalid --jobs=1 --quiet-build=y"
FCFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
GENTOO_MIRRORS="https://mirror.yandex.ru/gentoo-distfiles/ http://gentoo.modulix.net/gentoo/ rsync://mirrors.telepoint.bg/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
INSTALL_MASK="/etc/systemd /usr/lib*/systemd /etc/shorewall/*[^.]???? /etc/shorewall/???? /etc/shorewall/??? /etc/shorewall6/*[^.]???? /etc/shorewall6/???? /etc/shorewall6/???"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="ru ru_RU en"
MAKEOPTS="-j3 -l1.8"
PKGDIR="/var/calculate/packages/x86_64"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/calculate/tmp"
USE="3dnow 3dnowext X a52 aac acl acpi aes alac alsa amd64 amr audiofile avi avx berkdb bittorrent bluetooth box bzip2 cairo caps cdda cddb cdparanoia cgroups chm cli consolekit cpudetection cracklib crypt css cue cups cxx dbus dftk djvu dri dv dvd dvdr dvdread ebook encode exif faac fexif ffmpeg flac flash fma3 fma4 foomaticdb fortran ftp gadu gd gdbm gif gnutls gphoto2 gpm gstreamer gtk hunspell iconv id3tag idn ieee1394 imagemagick imap int64 introspection ios ipod ipv6 irc jabber jack jemalloc jpeg jpeg2k klibc lcms libnotify libwww linguas_ru lm_sensors logrotate lz4 lzma lzo mad matroska mikmod mimap mmx mmxext mng modules mp3 mpeg mplayer multilib musepack ncurses networkmanager nfs nls nptl nsplugin ogg oggvorbis openal opencore-amr openexr opengl openmp opus oscar padlock pam pch pcre pdf pgo pic pie png policykit popcnt ppp pulseaudio quicktime raw rdesktop readline real samba sasl scanner sdl seccomp semantic-desktop smp smtp sndfile speex spell srt sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssse3 svg taglib tcpd tga theora threads tiff truetype udev udisks unicode upnp upower usb userlocales v4l v4l2 vaapi vcd vhosts vnc vorbis vpx wavpack webkit webp wimax win32codecs wmf wxwindows x264 x265 xanim xattr xcb xcomposite xfce xft xinerama xmp xop xv xvid xvmc zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput evdev mutouch synaptics keyboard mouse" KERNEL="linux" L10N="ru en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5" RUBY_TARGETS="ruby23" THEMES="CLDX" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-libs/gmp-6.1.2::gentoo was built with the following:
USE="asm cxx doc pgo -static-libs" ABI_X86="(64) -32 (-x32)"
CHOST=""
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -fno-delete-null-pointer-checks -Wno-error -Wno-error -Wno-error -Wno-error -Wno-error -Wno-error -Wno-error -Wno-error"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -fno-delete-null-pointer-checks -Wno-error -Wno-error -Wno-error -Wno-error -Wno-error -Wno-error -Wno-error -Wno-error"
Comment 3 Nikita Zlobin 2018-03-20 21:24:14 UTC
Since runing this test and rebuilding with its result is for what pgo use flag is there, i expected, that it will work.

I don't know, could it be worth it to try rebuild after at least those tests, which could complete...

Sent report with question to author about this issue, but he still did not respond.

From first look (by just "echo $?") test looks ok, though partially.
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2018-03-20 22:36:11 UTC
Aha, you concern is the following failure in the build log:

  0.000020604       0.000044571
  0.000014774       0.000056996
Oops, can't measure all mpn_jacobi_base methods at 48                                                                                                                                   [ !! ]
>>> Source compiled.

is it correct?
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2018-03-20 22:43:50 UTC
For me tuneup fails with assertion failure (i guess time measurement failured):

(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007f4712f37f51 in __GI_abort () at abort.c:79
#2  0x0000564bb8dbce19 in one (threshold=0x564bb90138d0 <dc_div_qr_threshold>, param=0x564bb9014cc0 <param>) at /tmp/portage/dev-libs/gmp-6.1.2/work/gmp-6.1.2/tune/tuneup.c:603
#3  0x0000564bb8dbe8b7 in tune_dc_div () at /tmp/portage/dev-libs/gmp-6.1.2/work/gmp-6.1.2/tune/tuneup.c:1634
#4  0x0000564bb8dc05dc in all () at /tmp/portage/dev-libs/gmp-6.1.2/work/gmp-6.1.2/tune/tuneup.c:2892
#5  0x0000564bb8dbb7cb in main (argc=1, argv=0x7ffed50f4f08) at /tmp/portage/dev-libs/gmp-6.1.2/work/gmp-6.1.2/tune/tuneup.c:2968
Comment 6 Nikita Zlobin 2018-03-21 07:16:59 UTC
Yes, these lines... and it seems to happen each time in different moment of test progress.
Also trying to do it with clear runtime (rebooted and loged to console, stoped X, cups, gpm... everything not necessary to work in console and use this test) was useless.
Comment 7 Nikita Zlobin 2018-03-29 10:37:23 UTC
Just got reply from author/maintainer:
--------------
Cc: gmp-bugs@gmplib.org
Subject: Re: tuneup: speed_measure() could not get 4 results within 1.0%
Date: Wed, 28 Mar 2018 21:56:45 +0200

(some fields are omited)

"We are aware of that tuning of the various GCD thresholds don't work
properly.  This has been broken for a very long time.  I have not spent
enough time on it to understand why it does not work.  If somebody else
could do that, it would be very good."
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2018-03-29 19:02:49 UTC
Thank you! Was it a private email or also a public bug (just for reference purpose)?
Comment 9 Nikita Zlobin 2018-03-29 19:41:57 UTC
It was reply to gmp-bugs mailing list.
I simply decided to omit some personal emails from this thread, as CC to ML seemed for me to be enough. Different mail clients use different way of replying to ML - like here, it was To: me, but CC: ML.

Or is it better to repost with all fields?
Another point for that, is that everyone reporting to gmp-bugs, would get same message. So, i'm unsure.
Comment 10 Nikita Zlobin 2018-03-29 19:45:09 UTC
I did not get point first time. Since it is mailing list thread, it may be referenced through archive:
https://gmplib.org/list-archives/gmp-bugs/2018-March/004349.html

and i could just post this url previous time :)
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2018-03-29 19:51:40 UTC
(In reply to Nikita Zlobin from comment #10)
> I did not get point first time. Since it is mailing list thread, it may be
> referenced through archive:
> https://gmplib.org/list-archives/gmp-bugs/2018-March/004349.html

Yeah, i just wanted a link. Apologies for confusion! Thank you!
Comment 12 Larry the Git Cow gentoo-dev 2018-04-15 17:52:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=005d4b05b7b7a0d81af3ae011ca677a5814422b2

commit 005d4b05b7b7a0d81af3ae011ca677a5814422b2
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-04-15 17:51:53 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-04-15 17:52:11 +0000

    dev-libs/gmp: drop USE=pgo (bitrot), bug #650558
    
    Nikita found out that USE=pgo does not work for quite a while
    both upstream and downstream:
    https://gmplib.org/list-archives/gmp-bugs/2018-March/004349.html
    
    Let's remove USE=pgo completely until better times.
    
    Reported-by: Nikita Zlobin
    Closes: https://bugs.gentoo.org/650558
    Package-Manager: Portage-2.3.28, Repoman-2.3.9

 dev-libs/gmp/gmp-6.1.2-r1.ebuild | 112 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 112 insertions(+)
Comment 13 Larry the Git Cow gentoo-dev 2019-02-05 22:19:16 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de85d6ef4ae9f32550c0fa2090a135d63bc757f3

commit de85d6ef4ae9f32550c0fa2090a135d63bc757f3
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-02-05 22:18:53 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-02-05 22:19:04 +0000

    dev-libs/gmp: drop USE=pgo from stable ebuild, bug #658688
    
    USE=pgo generates optimal constants when running 'tuneup' benchmark
    locally. If benchmark does not succeed default parameters are used.
    Else benchmark's output is used to tune gmp behaviour.
    
    Unfortunately at least on x86 some primitives like
    __mpn_sqr_basecase generate invalid assembly code at fail tests.
    
    In bug #650558 we found out that 'tuneup' is not very well maintained
    upstream. Let's dropp support for USE=pgo until it gets better.
    
    Reported-by: Robert Gill
    Closes: https://bugs.gentoo.org/658688
    Bug: https://bugs.gentoo.org/650558
    Package-Manager: Portage-2.3.59, Repoman-2.3.12
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-libs/gmp/gmp-6.1.2.ebuild | 13 +------------
 dev-libs/gmp/metadata.xml     |  1 -
 2 files changed, 1 insertion(+), 13 deletions(-)
Comment 14 Larry the Git Cow gentoo-dev 2023-07-30 17:01:36 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d89510821e84ece8bf057f57f297016fae114e06

commit d89510821e84ece8bf057f57f297016fae114e06
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-07-30 17:01:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-07-30 17:01:19 +0000

    dev-libs/gmp: add comment wrt no pgo
    
    Bug: https://bugs.gentoo.org/454912
    Bug: https://bugs.gentoo.org/650558
    Bug: https://bugs.gentoo.org/658688
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/gmp/gmp-6.3.0.ebuild | 4 ++++
 1 file changed, 4 insertions(+)