Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135780 - sci-libs/blas-atlas-3.6.0-r1 builds -m64 despite x86 arch
Summary: sci-libs/blas-atlas-3.6.0-r1 builds -m64 despite x86 arch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-06 08:40 UTC by Carsten Lohrke (RETIRED)
Modified: 2006-12-18 18:30 UTC (History)
1 user (show)

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


Attachments
3.7.11-config64bit.patch (3.7.11-config64bit.patch,621 bytes, patch)
2006-09-28 05:14 UTC, Fabio Rossi
Details | Diff
blas-atlas-3.7.11.ebuild.patch (diff.txt,529 bytes, patch)
2006-09-28 05:15 UTC, Fabio Rossi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Lohrke (RETIRED) gentoo-dev 2006-06-06 08:40:05 UTC
Portage 2.1_rc4-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe -fforce-addr -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon64 -pipe -fforce-addr -mfpmath=sse -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache cvs distlocks fixpackages keeptemp keepwork metadata-transfer noclean nostrip sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times  --compress  --force  --whole-file  --delete               --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'          --exclude-from=/etc/portage/rsync_excludes"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac acl acpi activefilter alsa apache2 apm audiofile avi berkdb bitmap-fonts bzip2 cddb cdparanoia cdr chroot cli crypt css cups curl dbus dga doc dv dvd dvdr editor edl eds emacs emboss encode exif faad fbcon ffmpeg firebird flac fontconfig foomaticdb fortran gcj gcl gd gif glut gphoto2 gpm graphviz gtk2 hal hbci idl idn imagemagick imap imlib isdnlog jack javascript jpeg kde kipi ladcca lcms ldap libg++ libwww lirc lm_sensors lzo mad maildir matroska mbox md5sum mmx mmxext mng mp3 mpeg musepack nas ncurses network nls nptl ofx ogg openexr opengl pam pcap pcre pdflib perl pg-hier php png postgres pppd python qt qt4 quicktime readline reflection rtc ruby samba sasl scanner sdl session skey slp snmp sox spell spl sse sse2 ssl subversion svg svga tcpd tetex theora threads tiff transcode truetype truetype-fonts type1-fonts udev usb vorbis wmf xerces xine xml xml2 xorg xv xvid yaz zeroconf zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_de userland_GNU video_cards_fbdev video_cards_nvidia video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Fabio Rossi 2006-09-28 05:07:41 UTC
Yes, I confirm the problem (Pentium4 630)

Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.5
Last Sync: Mon, 25 Sep 2006 01:53:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=prescott -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/"
LANG="it_IT.UTF-8"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac alsa apache2 arts asf audiofile bash-completion berkdb bitmap-fonts blas browserplugin bzip2 cairo cddb cdparanoia cdr chroot clamav cli cmucl crypt cups curl dlloader dri dv dvb dvd dvdr dvdread elibc_glibc encode ethereal examples exif fame fbcon ffmpeg fftw firefox foomaticdb fortran fpx gcj gd gdbm gif gimpprint ginac gmp gnutls gpm graphviz gs gtk gtk2 gtkhtml idn imagemagick imlib innodb input_devices_keyboard input_devices_mouse ipv6 isdnlog java jbig jpeg jpeg2k kde kdeenablefinal kernel_linux lcms libg++ live lm_sensors lzo mad mime mjpeg mmx mmxext mng motif mozdevelop mozsvg mozxmlterm mp3 mpeg ncurses network nls nntp nptl nptlonly nsplugin odbc ogg opengl oss pam pcre perl plotutils png ppds pppd python qt3 quicktime readline real reflection samba sdk sdl session skey smime spell spl sse sse2 ssl stats svg tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1 type1-fonts udev unicode usb userland_GNU utf8 video_cards_fbdev video_cards_i810 video_cards_vesa video_cards_vga vim-with-x vorbis wifi win32codecs wmf wxgtk1 wxwindows xanim xcomposite xine xml xmms xorg xv xvid yv12 zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Fabio Rossi 2006-09-28 05:14:23 UTC
Created attachment 98309 [details, diff]
3.7.11-config64bit.patch

Here is a patch to disable autoconfiguration of the config utility (by default it supports 32 bit systems)
Comment 3 Fabio Rossi 2006-09-28 05:15:09 UTC
Created attachment 98310 [details, diff]
blas-atlas-3.7.11.ebuild.patch

Here is the patch for the ebuild version 3.7.11
Comment 4 Markus Dittrich (RETIRED) gentoo-dev 2006-09-28 06:08:20 UTC
(In reply to comment #1)
> Yes, I confirm the problem (Pentium4 630)
> 

Thanks a lot for the patch!
Just to make sure, you can confirm the problem for 3.7.11 or for 
3.6.0-r1, for which this bug was originally filed?

Thanks,
Markus
Comment 5 Fabio Rossi 2006-09-28 08:26:35 UTC
I'm using the stable 3.7.11
Comment 6 Markus Dittrich (RETIRED) gentoo-dev 2006-09-28 09:32:19 UTC
(In reply to comment #5)
> I'm using the stable 3.7.11
> 

Thanks, I'll test it tonight and probably merge it into 3.7.11-r1 
together with the ASM volatile stuff.
Since it only seems to be a problem with x86 its probably
cleaner to do an

if use x86; then
   epatch ....
fi

unless you know of any other arch where this causes trouble.

Thanks,
Markus
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-28 10:53:20 UTC
Conditional patching is never cleaner, it's impossible to send upstream...
Comment 8 Fabio Rossi 2006-09-28 11:01:39 UTC
(In reply to comment #6)
> unless you know of any other arch where this causes trouble.

I think there is a problem on archs where it's possible to choose a 32 bit or 64 bit system (like for x86/amd64). I have only experience on x86 systems :-)
Comment 9 Markus Dittrich (RETIRED) gentoo-dev 2006-09-28 14:50:12 UTC
(In reply to comment #7)
> Conditional patching is never cleaner, it's impossible to send upstream...
> 

Hi Donnie,

I know. Unfortunately, most of these issues we're hitting with 3.7.11 are due to 
faults in blas' build system as far as I can tell (particularly for newer CPUs).
I've never had any such problems on the two P4 systems I own. 
Many of these problems should be fixed in 3.7.17 and I don't think upstream
will care about anything not related to the most recent release, i.e., 
we're probably on our own. 
What would a good alternative to conditional patching be in your 
opinion (other than "rewriting" 3.7.11 build system ;) ).

Thanks,
Markus
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-28 16:28:37 UTC
How about checking what .17 does? It's apparently doing it right.
Comment 11 Markus Dittrich (RETIRED) gentoo-dev 2006-09-28 18:02:33 UTC
(In reply to comment #10)
> How about checking what .17 does? It's apparently doing it right.
> 

Yeah, I was thinking about that, but .17 has a pretty major overhaul to 
the build system, hence I am not sure how much will transfer. Well,
I need to dig into the source at some point anyway to (hopefully) fix
the executable stack, and I might as well have a look at these issues.

Thanks,
Markus
Comment 12 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-28 20:57:41 UTC
Another option is just wait another week or so and stable .17
Comment 13 Markus Dittrich (RETIRED) gentoo-dev 2006-09-29 05:30:40 UTC
(In reply to comment #12)
> Another option is just wait another week or so and stable .17
> 

That's true! On the other hand, I have the feeling that simply due to the way
atlas does all its CPU specific code generation/optimization, there
will always be a few corner cases where some users will run into trouble. 
Considering the number of people who use blas-atlas, and the number of 
bugs we're getting, 3.7.11 isn't doing too bad.

best,
Markus
Comment 14 Markus Dittrich (RETIRED) gentoo-dev 2006-12-16 06:25:27 UTC
I've just unmasked blas-atlas-3.7.23 which should fix these -m32/64 issues.
Could somebody please test?

Thanks,
Markus
Comment 15 Fabio Rossi 2006-12-18 08:28:19 UTC
Yes, the version 3.7.23 works like a charm.
Comment 16 Markus Dittrich (RETIRED) gentoo-dev 2006-12-18 18:30:20 UTC
Great and thanks for testing. I'll close this bug then.

Best,
Markus