Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345713 - sci-mathematics/octave-3.2.4-r1 with USE=sparse fails
Summary: sci-mathematics/octave-3.2.4-r1 with USE=sparse fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-16 08:28 UTC by alexsaa
Modified: 2011-02-08 10:46 UTC (History)
0 users

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 alexsaa 2010-11-16 08:28:46 UTC
octave with USE=sparse fails at computing [1 1; 1 0; 0 0] \ [1; 0; 0]...

Reproducible: Always

Steps to Reproduce:
1. # USE=sparse emerge octave
2. $ octave
3. octave:1> [1 1; 1 0; 0 0] \ [1; 0; 0]
Actual Results:  
 ** On entry to DLASDA parameter number  2 had an illegal value
 ** On entry to DLASDA parameter number  2 had an illegal value
error: exception encountered in Fortran subroutine dgelsd_

Expected Results:  
ans =
   7.7048e-18
   1.0000e+00

0. The test above fails at the same time with
[ 0.50374   0.61402   0.43301; 0.60290   0.78609   0.43301 ] \ [ -1.0531; -1.0531 ]
obtained from http://comments.gmane.org/gmane.comp.gnu.octave.general/31243 .
That discussion seems to be related to my problem.

1. Failure does not reproduce if USE=-sparse.

2. Switching between lapack and blas implementations (atlas/reference) has no effect.

3. Manually installed official tarball octave-3.2.4.tar.bz2 does not fail (run ./configure with no options).
Tarball does not fail even if I pass the same configure options as portage does:
cat /var/tmp/portage/sci-mathematics/octave-3.2.4-r1/work/octave-3.2.4/config.log |head -20 |grep ./configure

4. I hope I've found the way portage hurts octave: when running ./configure, it sets LDFLAGS="-Wl,-O1 -Wl,--as-needed" (along with other options). That options seems to have crucial effect on official tarball on my boxes:

./tar xf octave-3.2.4.tar.bz2
./configure; make -j12; echo '[1 1; 1 0; 0 0] \ [1; 0; 0]' |./run-octave # works fine
LDFLAGS="-Wl,-O1 -Wl,--as-needed" ./configure; make -j12; echo '[1 1; 1 0; 0 0] \ [1; 0; 0]' |./run-octave  # fails as described

5. On my box, official octave 3.3.53 fails the same way as gentoo's octave-3.2.4 (unless arpack is disabled when configured). However, octave-3 is not in portage now :)

Tested with sci-libs/lapack-reference 3.1.1-r1, sci-libs/lapack-atlas 3.8.0, sci-libs/blas-atlas 3.8.0, sci-libs/blas-reference 20070226, sci-libs/arpack 96-r2.

The problem is present both on x86 and x86_64.

x86 emerge --info:

Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r6-i686-Intel-R-_Core-TM-2_Quad_CPU_Q8400_@_2.66GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 22 Oct 2010 01:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-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
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 jrockit IBM-J1.6"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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="-O2 -march=i686 -pipe"
DISTDIR="/var/tmp/portage-distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr consolekit cracklib crypt cups cxx dbus djvu dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk hal iconv ipv6 jpeg kpathsea lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pdf perl png ppds pppd python qt3support qt4 readline sdl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis x264 x86 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" FOO2ZJS_DEVICES="hpp1505" 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" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware" 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, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2010-11-19 17:36:37 UTC
Could be an as-needed issue with arpack. Assigning to maintainers.
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2011-01-24 21:06:49 UTC
A small fix in arpack-96-r2 for the lapack dependency should fix this:

+  24 Jan 2011; Sébastien Fabbro <bicatali@gentoo.org> arpack-96-r2.ebuild:
+  Added missing lapack dependency, fixed some as-needed requirements for
+  parpack in the patch, fixed a test. Also should fix bug #352602 and bug
+  #345713
+
Comment 3 alexsaa 2011-02-08 10:46:51 UTC
I've updated world up to portage tree 2011-02-06 on x86 box and rebuilt arpack-96-r2 with new portage on x86_64 box. Both tests on both boxes pass. Thank you.