Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152743 - sci-libs/fftw-3.0.1-r2 enables sse and sse2 use flags on amd64 but fails when compiling
Summary: sci-libs/fftw-3.0.1-r2 enables sse and sse2 use flags on amd64 but fails when...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 151636
  Show dependency tree
 
Reported: 2006-10-24 22:47 UTC by Neal McConachie
Modified: 2006-10-25 02:01 UTC (History)
1 user (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 Neal McConachie 2006-10-24 22:47:29 UTC
after a recent emerge --sync, portage wants to recompile several libs using sse and or sse2 use flags.  Among these is sci-libs/fftw (version 3.0.1-r2):

[ebuild   R   ] sci-libs/fftw-3.0.1-r2  USE="sse* sse2* (-3dnow) (-altivec) -mpi"

Unfortunately, it fails to compile successfully due to an assembler error similar to that mentioned in bug #109919 (the conclusion of that bug was that sse and sse2 should not be hardcoded enabled)

Here's some output from the compile:

In file included from simd.h:22,
                 from sse.c:24:
simd-sse.h:30: warning: specifying vector types with __attribute__ ((mode)) is deprecated
simd-sse.h:30: warning: use __attribute__ ((vector_size)) instead
{standard input}: Assembler messages:
{standard input}:63: Error: suffix or operands invalid for `push'
{standard input}:65: Error: suffix or operands invalid for `pop'
make[2]: *** [sse.lo] Error 1

--- and:

!!! ERROR: sci-libs/fftw-3.0.1-r2 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  fftw-3.0.1-r2.ebuild, line 83:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

Emerge --info:

Portage 2.1.2_pre3-r8 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Gentoo Base System version 1.12.5
Last Sync: Wed, 25 Oct 2006 03:20:02 +0000
ccache version 2.3 [disabled]
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.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.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.arcticnetwork.ca/distfiles/"
LANG="en_CA.UTF-8"
LC_ALL="en_CA.UTF-8"
LINGUAS="en_CA en_US en_GB en"
MAKEOPTS="-j3 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=180"
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.namerica.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac alsa bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli cracklib crypt css cups dlloader doc dri dv dvd dvdr dvdread elibc_glibc emboss emul-linux-x86 encode examples ffmpeg firefox foomaticdb fortran gif glut gmp gnutls gpm gstreamer gtk2 ieee1394 imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipod isdnlog java javascript jikes jpeg kernel_linux lame linguas_en linguas_en_CA linguas_en_GB linguas_en_US logrotate lzw lzw-tiff mad motif mp3 mpeg musepack ncurses nls nptl nptlonly nsplugin ofx ogg opengl pam pcre perl png ppds pppd python quicktime readline reflection sdl session spell spl ssl svg tcpd threads tidy tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa vorbis wma wmf xinetd xml xorg xpm xv xvid zlib"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS
Comment 1 Michael Weyershäuser 2006-10-24 23:46:12 UTC
I can confirm this, fftw-3.1.2 (latest ~amd64) compiles fine, 3.0.1-r2 (latest stable) fails on me, too. Guess we need to test all the latest stable versions, too...
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2006-10-25 02:01:49 UTC
(In reply to comment #1)
> I can confirm this, fftw-3.1.2 (latest ~amd64) compiles fine, 3.0.1-r2 (latest
> stable) fails on me, too. Guess we need to test all the latest stable versions,
> too...

Not really. We are dealing with a testing version of portage here, so really only stable users with a testing portage hit this. That being said I just adjusted the package.use.mask entry to only unmask the flags for 3.1.2 and higher, so you won't hit this anymore.

Thanks for reporting :)