Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153123 - no atlas implementations compile on ppc64-32ul profile
Summary: no atlas implementations compile on ppc64-32ul profile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-28 02:35 UTC by Robin Johnson
Modified: 2010-06-23 01:51 UTC (History)
3 users (show)

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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-10-28 02:35:06 UTC
I use a Quad G5, on a powerpc64, 32-bit userland profile.
In the past, both blas-atlas and lapack-atlas compiled fine, but recently, they have been trying to build 64-bit versions, and failing.

lapack atlas:
powerpc-unknown-linux-gnu-gcc -I/usr/include/atlas -DL2SIZE=4194304 -I/dev/shm/portage/sci-libs/lapack-atlas-3.7.11-r1/work/ATLAS/include -I/dev/shm/portage/sci-libs/lapack-atlas-3.7.11-r1/work/ATLAS/include/Linux_UNKNOWNAltiVec_4 -I/dev/shm/portage/sci-libs/lapack-atlas-3.7.11-r1/work/ATLAS/include/contrib -DAdd_ -DStringSunStyle -DATL_OS_Linux -DATL_AltiVec -DATL_AVgcc -DATL_USE64BITS -DATL_GAS_LINUX_PPC -m64 -DATL_NCPU=4 -fomit-frame-pointer -O3 -funroll-all-loops -maltivec -mabi=altivec -c -DDREAL ../ATL_getrfC.c  -fPIC -DPIC -o .libs/ATL_dgetrfC.o
../ATL_getrf.c:1: error: -m64 not supported in this configuration
make[1]: *** [ATL_dgetrf.o] Error 1
make[1]: *** Waiting for unfinished jobs....
../ATL_getri.c:1: error: -m64 not supported in this configuration
../ATL_getrfC.c:1: error: -m64 not supported in this configuration
../ATL_getrfR.c:1: error: -m64 not supported in this configuration
make[1]: *** [ATL_dgetri.o] Error 1
make[1]: *** [ATL_dgetrfC.o] Error 1
make[1]: *** [ATL_dgetrfR.o] Error 1
make[1]: Leaving directory `/dev/shm/portage/sci-libs/lapack-atlas-3.7.11-r1/work/ATLAS/src/lapack/Linux_UNKNOWNAltiVec_4'
make: *** [dlib] Error 2

!!! ERROR: sci-libs/lapack-atlas-3.7.11-r1 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  lapack-atlas-3.7.11-r1.ebuild, line 125:   Called die

!!! Failed to make lib in /dev/shm/portage/sci-libs/lapack-atlas-3.7.11-r1/work/ATLAS/src/lapack/Linux_UNKNOWNAltiVec_4
!!! If you need support, post the topmost build error, and the call stack if relevant.

blas-atlas:
Configuration completed successfully.  You may want to examine the make include 
file (Make.Linux_UNKNOWNAltiVec_4) for accuracy before starting the install with the command:
   make install arch=Linux_UNKNOWNAltiVec_4

rm -f ./xconfig
make -f Make.top install arch=Linux_UNKNOWNAltiVec_4
make[1]: Entering directory `/dev/shm/portage/sci-libs/blas-atlas-3.7.11-r1/work/ATLAS'
cd bin/Linux_UNKNOWNAltiVec_4 ; make xatlas_install
make[2]: Entering directory `/dev/shm/portage/sci-libs/blas-atlas-3.7.11-r1/work/ATLAS/bin/Linux_UNKNOWNAltiVec_4'
/usr/lib/ccache/bin/gcc -DL2SIZE=4194304 -I/dev/shm/portage/sci-libs/blas-atlas-3.7.11-r1/work/ATLAS/include -I/dev/shm/portage/sci-libs/blas-atlas-3.7.11-r1/work/ATLAS/include/Linux_UNKNOWNAltiVec_4 -I/dev/shm/portage/sci-libs/blas-atlas-3.7.11-r1/work/ATLAS/include/contrib  -DAdd_ -DStringSunStyle -DATL_OS_Linux -DATL_AltiVec -DATL_AVgcc -DATL_USE64BITS -DATL_GAS_LINUX_PPC -m64 -DATL_NCPU=4 -Os -mtune=970 -mcpu=970 -mabi=altivec -maltivec -pipe -Wstrict-aliasing  -c ../atlas_tee.c
../atlas_tee.c:1: error: -m64 not supported in this configuration
make[2]: *** [atlas_tee.o] Error 1
make[2]: Leaving directory `/dev/shm/portage/sci-libs/blas-atlas-3.7.11-r1/work/ATLAS/bin/Linux_UNKNOWNAltiVec_4'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/dev/shm/portage/sci-libs/blas-atlas-3.7.11-r1/work/ATLAS'
make: *** [install] Error 2

!!! ERROR: sci-libs/blas-atlas-3.7.11-r1 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  blas-atlas-3.7.11-r1.ebuild, line 127:   Called die

!!! Failed to install blas-atlas
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-10-28 02:35:33 UTC
Portage 2.1.2_pre3-r9 (default-linux/ppc/ppc64/2006.1/32bit-userland/970/pmac, gcc-4.1.1, glibc-2.5-r0, 2.6.18-g64134594-dirty ppc64)
=================================================================
System uname: 2.6.18-g64134594-dirty ppc64 PPC970MP, altivec supported
Gentoo Base System version 1.12.5
Last Sync: Unknown
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-Os -mtune=970 -mcpu=970 -mabi=altivec -maltivec -pipe -Wstrict-aliasing "
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-Os -mtune=970 -mcpu=970 -mabi=altivec -maltivec -pipe -Wstrict-aliasing "
DISTDIR="/home/gentoo/distfiles"
FEATURES="assume-digest assume-digests autoaddcvs autoconfig buildpkg ccache collision-protect confcache cvs distlocks distlockss lmirror metadata-transfer mirror parallel-fetch sandbox sfperms splitdebug strict userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en en_CA en_US en_ZA en_GB"
MAKEOPTS="-j7"
PKGDIR="/home/gentoo/packages/buck-int"
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="/dev/shm"
PORTDIR="/code/gentoo/gentoo-cvs/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC=""
USE="ppc X a52 aac aalib acl aio alsa altivec amd apache2 apm ares async automount berkdb bitmap-fonts bluetooth bzip2 cairo calendar caps cdb cdda cdr cgi cjk clamav clearpasswd cli cracklib crypt cscope ctype cups curl curlwrappers daap divx4linux dlloader dri dts dv dvd dvdr dvdread dynagraph elibc_glibc emboss encode ethereal examples exif expat f77 fam fame fastcgi ffmpeg fftw flac flash foomaticdb fortran fpx frxp gcc64 gd gdbm geoip gif glitz glx gmp gnokii gnults gnuplot gnutls gpm graphviz gs gstreamer gzip hpn ical ieee1394 imap imlib innodb input_devices_dmc input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_void insecure-savers ipalias ipod ipv6 irda isdnlog javacomm jbig joystick jpeg jpeg2k kernel_linux lcms ldap libwww linguas_en linguas_en_CA linguas_en_GB linguas_en_US linguas_en_ZA live logitech-mouse lzo mad maildir mbox mcal md5sum mikmod mjpeg mod motif mozilla mp3 mpeg mpm-prefork multicall musicbrainz mysql ncurses network nptl nptlonly numeric offensive ogg oggvorbis openexr opengl osd ospfapi pam pcap pcre pda pdf pdflib perl plotutils png pnp postgres ppds pppd python qmail quicktime quotas rdesktop readline reflection rtc ruby samba scanner screen sdl session shout skins slang slp sms snmp socks5 speex spell spl sqlite ssl stream svg swat syslog t1lib tcltk tetex theora tiff truetype truetype-fonts type1 type1-fonts udev ungif unicode usb userland_GNU userlocales utf8 v4l v4l2 vcd vhosts video_cards_fbdev video_cards_nv video_cards_radeon video_cards_v4l vidix vlm vorbis winbind wmf wxwindows xanim xcomposite xinerama xml xml2 xorg xosd xprint xrandr xscreensaver xv xvid yv12 zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Markus Dittrich (RETIRED) gentoo-dev 2006-10-28 03:58:23 UTC
Thanks robbat2,

Looks like this is similar to bug #135780. The more recent blas-atlas-3.7.17
which should be bumped to 3.7.19 at some point might do it right. In the 
meantime we might have no choice and do some "conditional" patching
explicitly disabling building with -m64 on x86, ppc and friends, even though
I hate to do it. I'll have a look at it as soon as I find some time.

Best,
Markus
Comment 3 Joshua (RETIRED) gentoo-dev 2006-10-28 04:49:08 UTC
Have you tried using linux32?  I.e. do linux32 emerge blas-atlas?

If not then please try and report.
Comment 4 Joe Jezak (RETIRED) gentoo-dev 2007-01-27 17:35:31 UTC
This isn't really a ppc32 bug, so I'm removing ppc from the CC list.  Please feel free to re-add us if you want something tested on a ppc32 machine.
Comment 5 Brent Baude (RETIRED) gentoo-dev 2008-02-19 14:12:50 UTC
I just compiled lapack-atlas-3.8.0 on a 32UL just fine.  Could someone confirm it works for them as well?  If so, maybe we can mask the versions that don't build for ppc64 32UL.
Comment 6 Markus Rothe (RETIRED) gentoo-dev 2008-04-27 12:41:13 UTC
3.8.0 fails here:

>>> Unpacking atlas-3.7.39-shared-libs.patch.bz2 to /var/tmp/portage/sci-libs/blas-atlas-3.8.0/work
 * Applying atlas-3.7.39-shared-libs.patch.bz2 ...                                                                            [ ok ]
 * Applying atlas-asm-gentoo.patch ...                                                                                        [ ok ]
 * Applying atlas-3.7.39-decl-fix.patch ...                                                                                   [ ok ]
powerpc-unknown-linux-gnu-gcc -I/var/tmp/portage/sci-libs/blas-atlas-3.8.0/work/ATLAS/gentoo-build/..//CONFIG/include  -O2 -pipe -c /var/tmp/portage/sci-libs/blas-atlas-3.8.0/work/ATLAS/gentoo-build/..//CONFIG/src/atlconf_misc.c
/var/tmp/portage/sci-libs/blas-atlas-3.8.0/work/ATLAS/gentoo-build/..//CONFIG/src/atlconf_misc.c:1: error: -m64 not supported in this configuration
make: *** [atlconf_misc.o] Error 1
./xconfig -d s /var/tmp/portage/sci-libs/blas-atlas-3.8.0/work/ATLAS/gentoo-build/../ -d b /var/tmp/portage/sci-libs/blas-atlas-3.8.0/work/ATLAS/gentoo-build  -C ac powerpc-unknown-linux-gnu-gcc -F ac '-O2 -pipe' -C if gfortran -F if -O2 -Ss pmake '$(MAKE) ' -Si cputhrchk 0 -b 32
/bin/sh: line 1: ./xconfig: No such file or directory
xconfig exited with 127


# emerge --info
Portage 2.1.4.4 (default/linux/powerpc/ppc64/2008.0/32bit-userland, gcc-4.1.2, glibc-2.6.1-r0, 2.6.21-gentoo-r4 ppc64)
=================================================================
System uname: 2.6.21-gentoo-r4 ppc64 POWER5+ (gs)
Timestamp of tree: Sun, 27 Apr 2008 12:04:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.6.3, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="ppc ppc64"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
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="acl berkdb bzip2 cli cracklib crypt cups dri fortran gcc64 gdbm gpm iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl ppc pppd python readline reflection session spl ssl tcpd unicode xorg zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx trident voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 7 Nelson 2008-08-19 10:15:33 UTC
(In reply to comment #6)
> ACCEPT_KEYWORDS="ppc ppc64"
> CBUILD="powerpc-unknown-linux-gnu"

Doesn't portage interpret the ACCEPT_KEYWORDS as use flags? Then this piece of code in the ebuild should be the problem for corsair:

        if use amd64 || use ppc64; then
                archselect="-b 64"
        elif use alpha; then
                archselect=""
        else
                archselect="-b 32"
        fi

        ../configure \
                --cc="$(tc-getCC)" \
                --cflags="${CFLAGS}" \
                --prefix="${D}/${DESTTREE}" \
                --libdir="${D}/${DESTTREE}"/$(get_libdir)/atlas \
                --incdir="${D}/${DESTTREE}"/include \
                -C ac "$(tc-getCC)" -F ac "${CFLAGS}" \
                -C if ${FORTRANC} -F if "${FFLAGS:--O2}" \
                -Ss pmake "\$(MAKE) ${MAKEOPTS}" \
                -Si cputhrchk 0 ${archselect} \
                || die "configure failed"
}
Comment 8 Markus Dittrich (RETIRED) gentoo-dev 2008-08-19 12:58:37 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > ACCEPT_KEYWORDS="ppc ppc64"
> > CBUILD="powerpc-unknown-linux-gnu"
> 
> Doesn't portage interpret the ACCEPT_KEYWORDS as use flags? Then this piece of
> code in the ebuild should be the problem for corsair:
> 
>         if use amd64 || use ppc64; then
>                 archselect="-b 64"
>         elif use alpha; then
>                 archselect=""
>         else
>                 archselect="-b 32"
>         fi

I am not quite sure how portage handles multiple ACCEPT_KEYWORDS
when used as use flags (i.e., all match, the first/last one matches).
However, if ppc64 is part of the match then the above will
indeed force a 64 bit build.

Thank you very much for pointing this out.

Best,
Markus


Comment 9 Justin Lecher (RETIRED) gentoo-dev 2010-06-22 12:52:52 UTC
We have a stable version for ppc64 so I asume this one is fixed. If not please reopen.
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-06-23 01:51:59 UTC
jlec: I don't have ppc64 hardware anymore, can't test.