Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349005 - sci-libs/gsl-1.14 test failure with -mfpmath=sse,387
Summary: sci-libs/gsl-1.14 test failure with -mfpmath=sse,387
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-18 10:33 UTC by mehrunes
Modified: 2021-05-25 17:20 UTC (History)
1 user (show)

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


Attachments
failed emerge log, gcc-4.4.4 (444.log,530.87 KB, text/plain)
2010-12-18 10:34 UTC, mehrunes
Details
successful emerge log, gcc-4.1.2 (412.log,594.18 KB, text/plain)
2010-12-18 10:35 UTC, mehrunes
Details
2 log files (two_logs.7z,57.45 KB, application/x-7zip-compressed)
2010-12-19 16:20 UTC, mehrunes
Details
failed emerge log, cpu: i7, ebuild: gsl-1.14-r1, CFLAGS: -mfpmath=both (i7.444.fpmath=both.log.7z,37.74 KB, application/x-7zip-compressed)
2010-12-20 09:45 UTC, mehrunes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mehrunes 2010-12-18 10:33:17 UTC
gsl self-test fails under gcc-4.4.4-r2

switching to gcc-4.4.4-r2 solves the problem

make[2]: Leaving directory `/tmp/portage/sci-libs/gsl-1.14/work/gsl-1.14/integration'
make  check-TESTS
make[2]: Entering directory `/tmp/portage/sci-libs/gsl-1.14/work/gsl-1.14/integration'
FAIL: qawc(f459) elist (1.83269371730273461e-15 observed vs 1.83308294820715351e-15 expected) [744]
FAIL: test
==================
1 of 1 test failed
==================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/tmp/portage/sci-libs/gsl-1.14/work/gsl-1.14/integration'


Reproducible: Always

Steps to Reproduce:
1. FEATURES=test CFLAGS="-march=k8 -mfpmath=sse,387 -O3" emerge =sci-libs/gsl-1.14
 - failure with gcc-4.4.4-r2

2. switch to gcc-4.1.2 and repeat the above: success



Actual Results:  
test fails with gcc-4.4.4-r2

Expected Results:  
successfule emerge for all versions of gcc

***************************************************
* I suggest that gcc maintainers look into this bug
***************************************************

emerge --info for gcc-4.4.4-r2 profile:

Portage 2.1.9.24 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r6-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-1.12.11.1
Timestamp of tree: Sat, 18 Dec 2010 00:00:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.10
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.4-r99::sage-on-gentoo
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.5, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11.1
sys-devel/binutils:  2.18-r3, 2.20.1-r1
sys-devel/gcc:       3.4.6-r2, 4.1.2, 4.3.2-r3, 4.4.3-r2, 4.4.4-r2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -mfpmath=sse,387 -O3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=k8 -mfpmath=sse,387 -O3"
DISTDIR="/usr/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans"
GENTOO_MIRRORS="ftp://gentoo.bloodhost.ru/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB"
MAKEOPTS="--jobs --load-average=3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/sage-on-gentoo /usr/local/portage/layman/oss-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7z 7zip X a52 aac acpi alsa amd64 asf bdf berkdb branding bzip2 cairo cdr cli consolekit crypt cxx dbus djbfft doc dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gmp gpm gstreamer gtk iconv jadetex jpeg latex lcms libnotify lzma mad mathextra mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib multislot ncurses nptl nptlonly objc objc++ ogg opengl openmp pam pango pcre pdf perl png ppds pppd pulseaudio python qt3support qt4 readline sdl session sndfile source spell sqlite sse sse2 ssl startup-notification static-libs svg sysfs tcpd tiff truetype unicode usb utf vorbis wavpack wma x264 xcb xml xorg xulrunner xv xvid xvmc zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 mehrunes 2010-12-18 10:34:22 UTC
Created attachment 257484 [details]
failed emerge log, gcc-4.4.4
Comment 2 mehrunes 2010-12-18 10:35:04 UTC
Created attachment 257486 [details]
successful emerge log, gcc-4.1.2
Comment 3 mehrunes 2010-12-18 10:52:31 UTC
with sys-devel/gcc-4.3.2-r3 gsl emerges successfully
with gcc-4.4.3-r2, same error 

FAIL: qawc(f459) elist (1.83269371730273461e-15 observed vs 1.83308294820715351e-15 expected) [744]
Comment 4 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-12-19 14:46:59 UTC
I cannot reproduce that with your settings on my box. Could you try CFLAGS="-O2 -pipe"?
Comment 5 mehrunes 2010-12-19 16:20:40 UTC
Created attachment 257555 [details]
2 log files

gcc (Gentoo 4.4.4-r2 p1.3, pie-0.4.5) 4.4.4

"-O2 -pipe": success
"-mfpmath=sse,387 -O2 -pipe": failure
Comment 6 Sébastien Fabbro (RETIRED) gentoo-dev 2010-12-19 18:52:51 UTC
+  19 Dec 2010; Sébastien Fabbro <bicatali@gentoo.org> gsl-1.14-r1.ebuild:
+  Filtered flag -mfpmath=sse,387 for gcc 4.4.x bug #349005
+
Comment 7 mehrunes 2010-12-20 04:45:15 UTC
> +  19 Dec 2010; Sébastien Fabbro <bicatali@gentoo.org> gsl-1.14-r1.ebuild:
> +  Filtered flag -mfpmath=sse,387 for gcc 4.4.x bug #349005
> +

The patch to ebuild does not completely solve the problem


   [[ $(gcc-major-version)$(gcc-minor-version) -eq 44 ]] \
       && filter-mfpmath sse


1) As I mentioned is post no. 3, gcc-4.4.3-r2 is buggy too

2) For gcc-4.4.4* and probably other versions of gcc, equivalent to '-mfpmath=sse,387' is '-mfpmath=both'. I doubt that 'filter-mfpmath sse' removes this equivalent form

I reopen the bug
Comment 8 mehrunes 2010-12-20 09:45:27 UTC
Created attachment 257607 [details]
failed emerge log, cpu: i7, ebuild: gsl-1.14-r1, CFLAGS: -mfpmath=both

I tested gsl-1.14-r1 ebuild with CFLAGS='... -mfpmath=both ...' on intel processor

result: failure. Error message slightly different:

FAIL: trunc result, exp(-10) (4.53999274819364437e-05 observed vs 4.53999297624848542e-05 expected) [7]
FAIL: full result, exp(-10) (4.5399927621488903e-05 observed vs 4.53999297624848542e-05 expected) [8]

emerge log attached to this post

emerge --info:

Portage 2.1.9.24 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo-r12 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r12-x86_64-Intel-R-_Core-TM-_i7_CPU_X_980_@_3.33GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 20 Dec 2010 00:00:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=native -pipe -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -foptimize-sibling-calls -fprefetch-loop-arrays -mfpmath=both"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O3 -march=native -pipe -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -foptimize-sibling-calls -fprefetch-loop-arrays -mfpmath=both"
DISTDIR="/usr/local/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news protect-owned sandbox sfperms splitdebug strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB"
MAKEOPTS="--jobs --load-average=30"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp/portage/tmpdir"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/general.overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl airplay alsa amd64 ao asf berkdb bzip2 cdda cli crypt cue cups cxx djbfft dri examples ffmpeg flac fortran gdbm gpm iconv jack kpathsea libcaca mac mmap mmx mng modules mp3 mudflap multilib musepack ncurses nophonehome nptl nptlonly ofa opengl openmp pam pcre perl pppd python readline session sndfile speex sse sse2 ssl static-libs sysfs tcpd truetype unicode vcd vocoder wavpack xorg xvmc zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS