Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174968 - sci-libs/fftw-3.0.1-r2 won't compile on amd64 with enabled sse, sse2 and 3dnow flags
Summary: sci-libs/fftw-3.0.1-r2 won't compile on amd64 with enabled sse, sse2 and 3dno...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-17 19:39 UTC by MaratIK
Modified: 2007-05-02 16:02 UTC (History)
3 users (show)

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


Attachments
/var/tmp/portage/sci-libs/fftw-3.0.1-r2/temp/build.log (build.log,71.07 KB, text/plain)
2007-04-17 19:39 UTC, MaratIK
Details
fftw-3.0.1-r3.ebuild (fftw-3.0.1-r3.ebuild,2.98 KB, text/plain)
2007-04-18 06:28 UTC, MaratIK
Details
fftw-3.0.1-amd64.patch (fftw-3.0.1-amd64.patch,2.09 KB, patch)
2007-04-18 06:29 UTC, MaratIK
Details | Diff
fftw-3.0.1-amd64.patch (fftw-3.0.1-amd64.patch,2.09 KB, patch)
2007-04-18 06:29 UTC, MaratIK
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MaratIK 2007-04-17 19:39:06 UTC
After switching to default-linux/amd64/2007.0/desktop profile sci-libs/fftw-3.0.1-r2 package unmasked sse, sse2 and 3dnow flags. But with enabling any of those flags the package won't build.

Reproducible: Always

Steps to Reproduce:
1. eselect profile set default-linux/amd64/2007.0/desktop
2. emerge -uDN world
3. 
Actual Results:  
!!! ERROR: sci-libs/fftw-3.0.1-r2 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3816:   Called src_compile
  fftw-3.0.1-r2.ebuild, line 86:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sci-libs/fftw-3.0.1-r2/temp/build.log'.


Expected Results:  
emerge -uDN sci-libs/fftw-3.0.1-r2 emerges successfully

I think there is need to mask USE-flags sse, sse2 and 3dnow for this package in amd64/2007.0 profile.
Comment 1 MaratIK 2007-04-17 19:39:58 UTC
Created attachment 116554 [details]
/var/tmp/portage/sci-libs/fftw-3.0.1-r2/temp/build.log
Comment 2 Jeffrey Gardner (RETIRED) gentoo-dev 2007-04-17 21:31:32 UTC
emerge --info?
Comment 3 MaratIK 2007-04-18 05:34:18 UTC
(In reply to comment #2)
> emerge --info?
> 

Sorry, forget to add

Portage 2.1.2.2 (default-linux/amd64/2007.0/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 17 Apr 2007 19:00:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=athlon64 -mtune=athlon64 -mfpmath=sse -mmmx -msse -msse2 -msse3 -m3dnow -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -fpeel-loops -funswitch-loops -funit-at-a-time"
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/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 /etc/texmf/web2c"
CXXFLAGS="-O3 -pipe -march=athlon64 -mtune=athlon64 -mfpmath=sse -mmmx -msse -msse2 -msse3 -m3dnow -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -fpeel-loops -funswitch-loops -funit-at-a-time"
DISTDIR="/usr/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://ftp.chg.ru/pub/Linux/gentoo/"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru en"
MAKEOPTS="-j3"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/armagetron /usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip S3TC X a52 aac acpi akode alsa amd64 amr ao aoss aotuv arj arts artworkextra asf atm audacious audiofile avahi bash-completion berkdb bitmap-fonts bl blas bluetooth boehm-gc bzip2 cairo cddb cdparanoia cdr cg cli clock-screen cpudetection cracklib crypt css cups curl cvs dbus dhcp divx djvu doc dts dv dvd dvdr dvdread editor eds emboss emerald encode esd evo exif expat extrafilters fam fame ffmpeg fftw firefox flac fontconfig foomaticdb fortran fpx ftp fuse gd gdbm gif gimp gimpprint ginac glade glgd glibc-omitfp glitz glut glw gmedia gmp gnome gnome-print gnomecanvas gnuplot gnutls gphoto2 gpm graphviz gs gsf gstreamer gtalk gtk gtkhtml gtkspell guile gzip h323 hal haskell hddtemp hdf hdf5 hfs hlapi html icecast iconv icq ieee1394 imagemagick imlib isdnlog ithreads jabber jack java javascript jbig jpeg jpeg2k jython kde kdeenablefinal kdehiddenvisibility kdexdeltas key-screen lame latex lcms libg++ libnotify libsamplerate live lm_sensors logrotate lua lzo lzw mad matroska midi mikmod mjpeg mmap mmx mmxext mng modplug mouse moviepack moviesounds mozilla mp3 mpd mpeg mpeg2 mplayer musepack musicbrainz nas ncurses netjack network nls no-old-linux nptl nptlonly nsplugin nvidia ocaml offensive ogg openal openexr opengl oscar oss pam pango patented pch pcre pdf perl plotutils png pnm portaudio ppds pppd ps pulseaudio python qhull qt3 qt3support qt4 quicktime quotes rdesktop readline realmedia reflection reiserfs rle rtsp ruby samba scanner scenarios sdl sdl-image sdl-sound sdlaudio session sid slang smp sndfile speex spell spl sql sqlite sqlite3 sse sse2 ssl submenu subtitles subversion svg svgz sysfs syslog szip tcl tcpd tetex tga themes theora threads tidy tiff timidity tk trayicon truetype truetype-fonts tta type1-fonts unicode usb v4l v4l2 vcd visualization vorbis wav wavpack wma wmf wmp wxwindows x264 xanim xcomposite xhtml xine xml xorg xosd xpm xprint xscreensaver xsl xslt xv xvid xvmc zero-penalty-hit zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mulaw multi null plug rate route share shm softvol" CAMERAS="all" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="vga nvidia nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 MaratIK 2007-04-18 05:36:25 UTC
It seems like fftw has assembler sources for 32-bit architecture, but not for amd64
Comment 5 MaratIK 2007-04-18 05:41:30 UTC
Even if I set safe flags for compile (CFLAGS="-march=k8 -pipe -O2" CXXFLAGS="-march=k8 -pipe -O2" LDLAGS=""), then compilation failed too.
Comment 6 MaratIK 2007-04-18 06:28:58 UTC
Created attachment 116602 [details]
fftw-3.0.1-r3.ebuild

ebuild, which works fine for me
Comment 7 MaratIK 2007-04-18 06:29:41 UTC
Created attachment 116604 [details, diff]
fftw-3.0.1-amd64.patch

proposed patch in addition to fftw-3.0.1-r3.ebuild
Comment 8 MaratIK 2007-04-18 06:29:48 UTC
Created attachment 116606 [details, diff]
fftw-3.0.1-amd64.patch

proposed patch in addition to fftw-3.0.1-r3.ebuild
Comment 9 Alessio Cassibba (X-Drum) 2007-04-18 13:38:32 UTC
same problem here, the patch submitted (Comment  #7) works fine on my system.

emerge info:
Portage 2.1.2.2 (default-linux/amd64/2007.0/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 18 Apr 2007 11:30:08 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
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/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/splash /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="it_IT@euro"
LC_ALL="it_IT@euro"
LINGUAS="it"
MAKEOPTS="-j1"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 bash-completion berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode evo fam firefox fortran gdbm gif gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos libg++ mad midi mikmod mmx mp3 mpeg ncurses nls nptl nptlonly offensive ogg opengl pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis xml xorg xv zlib" ALSA_CARDS="emu10k1 ac97" 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="g15" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 10 MaratIK 2007-04-18 13:50:30 UTC
Comment on attachment 116604 [details, diff]
fftw-3.0.1-amd64.patch

the same as the attachment #116606 [details, diff]
Comment 11 Cedric Anderson 2007-04-21 11:59:09 UTC
Attached ebuild and patch make fftw build on my system as well.

There is a reference to a 3-tmpfile.patch in the ebuild that I had to comment out, as I don't know what patch that is or where to get it. I don't know if I screwed up, but it builds OK anyways, just thought I'd let you know.

Other than that, here's my emerge --info in case your interested:

 emerge --info
Portage 2.1.2.2 (default-linux/amd64/2007.0/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 21 Apr 2007 07:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2 -msse3"
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/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/splash /etc/terminfo"
CXXFLAGS="-march=k8 -pipe -O2 -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer nodoc noinfo parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="en_US.UTF-8"
LINGUAS="en es"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa amd64 arts berkdb bitmap-fonts branding bzip2 cairo cdparanoia cdr cli cracklib crypt css cups dbus dri dvd dvdr dvdread emboss encode esd evo exif fam ffmpeg firefox fortran gdbm ggi gif glitz gnome gpm gstreamer gtk hal iconv imagemagick ipod isdnlog joystick jpeg jpeg2k kde kdeenablefinal kerberos libg++ lirc lm_sensors mad midi mikmod mjpeg mmx mmxext mozbranding mp3 mpeg msn musicbrainz ncurses nls nptl nptlonly nvidia offensive ogg openal opengl pam pcre pdf perl pertty png povray pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection samba sdl session spell spl sqlite sse sse2 sse3 ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode v4l v4l2 vcd vorbis xine xinerama xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mulaw multi null plug rate route share shm softvol" CAMERAS="canon ptp2" ELIBC="glibc" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en es" LIRC_DEVICES="avermedia98" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 12 Alessio Cassibba (X-Drum) 2007-04-21 12:03:41 UTC
(In reply to comment #11)
> There is a reference to a 3-tmpfile.patch in the ebuild that I had to comment
> out, as I don't know what patch that is or where to get it. I don't know if I
> screwed up, but it builds OK anyways, just thought I'd let you know.

you can find that patch in: /usr/portage/sci-libs/fftw/files/
i think is needed to create a unique tempfile (tempfile name)
Comment 13 Cedric Anderson 2007-04-21 12:21:39 UTC
Sorry, I had looked in there and missed the file. Thanks for the info I double-checked and, of course, you are correct.

Cheers.
Comment 14 Sébastien Fabbro (RETIRED) gentoo-dev 2007-05-02 16:02:17 UTC
tested and fixed in cvs. Thanks a lot!