Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52604 - running octave version 2.1.57 lo_ieee_init warning, caused by setting LDFLAGS='-lz'
Summary: running octave version 2.1.57 lo_ieee_init warning, caused by setting LDFLAGS...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-31 11:19 UTC by David Heavens
Modified: 2004-09-30 17:16 UTC (History)
0 users

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


Attachments
ebuild that creates working ieee floating point octave build (octave-2.1.57-r2.ebuild,2.78 KB, text/plain)
2004-06-01 16:44 UTC, David Heavens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Heavens 2004-05-31 11:19:32 UTC
octave gives the warning lo_ieee_init warning.  this prevents the use of a number of important built-in functions that depend upon ieee floating point bounds.

this warning is a result of the configure script being handed what turns out to be a bad option, this was discovered as a result of re-configuring the package manually.

after testing the options and flags, the one found problematic was setting the flag LDFLAGS='-lz'.  this is in all current octave ebuilds, but was only tested using octave version 2.1.57

Reproducible: Always
Steps to Reproduce:
1. run octave from the shell or gui.
#> octave
2. use a function that depends upon the initiation of ieee floating point at the prompt.
octave-1 > gamma (1)

Actual Results:  
in trying to run the gamma function it produced this error message,

 ***MESSAGE FROM ROUTINE DGAMLM IN LIBRARY SLATEC.
 ***FATAL ERROR, PROG ABORTED, TRACEBACK REQUESTED
 *  UNABLE TO FIND XMAX
 *  ERROR NUMBER = 2
 *   
 ***END OF MESSAGE
 
 ***JOB ABORT DUE TO FATAL ERROR.
0          ERROR MESSAGE SUMMARY
 LIBRARY    SUBROUTINE MESSAGE START             NERR     LEVEL     COUNT
 SLATEC     DGAMLM     UNABLE TO FIND XMAX          2         2         1

this is not a problem with slatec.

Expected Results:  
it should have calculated the value of gamma(1) which is 1.

Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
http://gentoo.tiscali.nl/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acpi alsa apm arts avi berdb berkdb caps cdr cjk crypt cups curl
dga doc dvd emacs encode esd fftw flac foomaticdb gdbm gif ginac gmp gnome gpm
gstreamer gtk gtk2 guile hdf hdf5 imagemagick imlib java jpeg kde kerberos krb4
lcms leim libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls offensive
oggvorbis opengl oss pam pdflib perl plotutils png ppds python qt quicktime
readline ruby samba sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype
unicode usb wmf x86 xml xml2 xmms xv zlib"

octave specific USE flags are "hdf5 mpi"


the fix is to remove the LDFLAGS='-lz' from the octave ebuild.
Comment 1 David Heavens 2004-06-01 02:06:22 UTC
suggested fix does not fully fix the init_ieee_lo problem although it does with a non-ebuild compilation.
Comment 2 David Heavens 2004-06-01 16:44:56 UTC
Created attachment 32505 [details]
ebuild that creates working ieee floating point octave build

add "-funroll-loops" to the line containing "filter-flags" in src_compile().
using LDFLAGS='-lk' is still problematic.
Comment 3 Patrick Kursawe (RETIRED) gentoo-dev 2004-06-07 00:55:25 UTC
Using octave-2.1.57-r1 I get:

octave:1> gamma(1)
ans = 1
octave:2> 

Could you recompile with more conservitive CFLAGS?
Comment 4 Patrick Kursawe (RETIRED) gentoo-dev 2004-06-30 12:02:55 UTC
Nearly a month without reaction - David, still there?
Comment 5 David Heavens 2004-07-01 02:49:17 UTC
I have I just overlayed the ebuild to include filtering for the -funroll-loops cflag. (As well as removing the LDFLAG)

Sorry for the late reply.
Comment 6 David Heavens 2004-07-01 02:49:42 UTC
I have I just overlayed the ebuild to include filtering for the -funroll-loops cflag. (As well as removing the LDFLAG)

Sorry for the late reply.
Comment 7 Danny van Dyk (RETIRED) gentoo-dev 2004-09-30 17:16:32 UTC
WORKSFORME with patches in CVS.

David: Please reopen if there are still prolems it didn't see.