Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128542 - net-analyzer/rrdtool needs -mieee
Summary: net-analyzer/rrdtool needs -mieee
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Alpha Linux
: High enhancement (vote)
Assignee: Alpha Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-02 10:25 UTC by Marc
Modified: 2006-04-03 12:12 UTC (History)
2 users (show)

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


Attachments
patch to add -mieee if use alpha is set (rrdtool-1.2.11-diff.patch,305 bytes, patch)
2006-04-02 10:26 UTC, Marc
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc 2006-04-02 10:25:22 UTC
rrdtool needs something like the attached patch to run
without an floating point exception.
Comment 1 Marc 2006-04-02 10:26:42 UTC
Created attachment 83729 [details, diff]
patch to add -mieee if use alpha is set
Comment 2 Marcelo Goes (RETIRED) gentoo-dev 2006-04-02 12:29:09 UTC
Alpha: feel free to commit if you like.
Comment 3 Fernando J. Pereda (RETIRED) gentoo-dev 2006-04-02 13:01:41 UTC
Users should have -mieee on their C[XX]FLAGS. On top of that we patch GCC so it always uses -mieee by default.

Thanks for the report anyway.

Cheers,
Ferdy
Comment 4 Marc 2006-04-03 10:12:22 UTC
(In reply to comment #3)
> Users should have -mieee on their C[XX]FLAGS. On top of that we patch GCC so it
> always uses -mieee by default.

Since I installed gentoo on my alpha some years ago, I've never specified
-mieee in my CFLAGS and it worked flawlessly...

Why should I specify -mieee in the flags, when gcc is patched with -mieee as default? And why didn't rrdtool work correctly when gcc adds -mieee by default?

I looked at the gentoo-install docs and found no reference that I should use
that flag. Could you give me a link, please?

I grep'ed through portage now, and found a lot ebuilds that do the same as I suggested, why?

Thank you

Marc
Comment 5 Fernando J. Pereda (RETIRED) gentoo-dev 2006-04-03 10:26:02 UTC
Please post your emerge --info to see why you needed to append-flags -mieee.

The -mieee flag should be turned on because lot of software depends on IEEE-compliant fp math. And we've seen weird breakages in the past related to this flag.

Gcc does that to prevent such breakages in case the user forgets to add the -mieee flag. I belive the make.conf.example has that flag turned on.

The Gentoo/Alpha FAQ should have more information: http://www.gentoo.org/doc/en/gentoo-alpha-faq.xml

Cheers,
Ferdy
Comment 6 Marc 2006-04-03 12:12:50 UTC
Ok, thank you for the explanations!

witch work # emerge --info
Portage 2.0.54 (default-linux/alpha/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.15.4 alpha)
=================================================================
System uname: 2.6.15.4 alpha EV56
Gentoo Base System version 1.6.14
distcc 2.18.3 alpha-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.2.3-r5, 2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="alpha"
AUTOCLEAN="yes"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-mcpu=ev56 -O2 -pipe"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=ev56 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/gentoo-java-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="alpha acl apache apache2 arts berkdb bitmap-fonts bzip2 crypt cups dri eds encode ev56 expat font-server foomaticdb fortran gd gdbm gif gmp gpm gstreamer gtk2 imlib ipv6 jikes jpeg libg++ libwww mad mhash mikmod motif mp3 mpeg mysql ncurses nls no-htdocs nptl ogg oggvorbis opengl oss pam pcre pdflib perl php png postgres python quicktime readline sdl slang snmp spell ssl tcpd tiff truetype-fonts type1-fonts udev vorbis xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS