Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218384 - dev-libs/liboil-0.3.14 fails to build on AMD K7 non-SSE
Summary: dev-libs/liboil-0.3.14 fails to build on AMD K7 non-SSE
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-19 10:22 UTC by Jisakiel
Modified: 2008-04-19 16:01 UTC (History)
0 users

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


Attachments
build log (build.log,167.02 KB, text/plain)
2008-04-19 10:23 UTC, Jisakiel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jisakiel 2008-04-19 10:22:47 UTC
mkdir .libs
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -mmmx -msse -Wall -D_BSD_SOURCE -D_GNU_SOURCE -I../.. -DOIL_ENABLE_UNSTABLE_API -march=athlon-tbird -pipe -mno-sse -fno-strict-aliasing -O2 -MT libfb_la-fbmmx.lo -MD -MP -MF .deps/libfb_la-fbmmx.Tpo -c fbmmx.c  -fPIC -DPIC -o .libs/libfb_la-fbmmx.o
In file included from fbmmx.c:40:
/usr/lib/gcc/i686-pc-linux-gnu/4.2.3/include/xmmintrin.h:35:3: error: #error "SSE instruction set not enabled"
fbmmx.c: In function 'expand_alpha':
fbmmx.c:743: warning: implicit declaration of function '_mm_shuffle_pi16'
fbmmx.c:743: warning: implicit declaration of function '_MM_SHUFFLE'
fbmmx.c:743: error: incompatible types in return
fbmmx.c: In function 'expand_alpha_rev':
fbmmx.c:749: error: incompatible types in return
fbmmx.c: In function 'invert_colors':
fbmmx.c:755: error: incompatible types in return
make[3]: *** [libfb_la-fbmmx.lo] Error 1
make[3]: se sale del directorio `/var/tmp/portage/dev-libs/liboil-0.3.14/work/liboil-0.3.14/liboil/fb'
make[2]: *** [all-recursive] Error 1
make[2]: se sale del directorio `/var/tmp/portage/dev-libs/liboil-0.3.14/work/liboil-0.3.14/liboil'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/var/tmp/portage/dev-libs/liboil-0.3.14/work/liboil-0.3.14'
make: *** [all] Error 2
 *
 * ERROR: dev-libs/liboil-0.3.14 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2816:  Called die
 * The specific snippet of code:
 *       emake -j1 || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * 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/dev-libs/liboil-0.3.14/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/liboil-0.3.14/temp/environment'.
 *

 * Messages for package dev-libs/liboil-0.3.14:

 *
 * ERROR: dev-libs/liboil-0.3.14 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2816:  Called die
 * The specific snippet of code:
 *       emake -j1 || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * 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/dev-libs/liboil-0.3.14/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/liboil-0.3.14/temp/environment'.


Error might be related to me using an AMD K7 Thunderbird *without* SSE support. 

Reproducible: Always




emerge --info: 
Portage 2.1.5_rc4 (default/linux/x86/2008.0/developer, gcc-4.2.3, glibc-2.7-r2, 2.6.24-zen4 i686)
=================================================================
System uname: 2.6.24-zen4 i686 AMD Athlon(tm) processor
Timestamp of tree: Sat, 19 Apr 2008 08:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.4.4-r9, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/confcache:  0.4.2-r1
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer -mno-sse -fno-strict-aliasing"
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/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d /etc/xdg/xfce4/ /usr/share/X11/xkb"
CXXFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer -mno-sse -fno-strict-aliasing -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache collision-protect cvs digest distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms sign splitdebug unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.udc.es/gentoo/"
INSTALL_MASK="TODO.gz HACKING.gz TODO.gz AUTHORS.gz"
LANG="es_ES.utf8"
LC_ALL="es_ES.utf8"
LDFLAGS=""
LINGUAS="es es_ES"
MAKEOPTS="-j2"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/vmware /usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/sunrise /usr/portage/local/layman/pro-audio /usr/portage/local/layman/java-overlay /usr/portage/local/layman/java-experimental /usr/portage/local/layman/bazaar-experimental /usr/portage/local/layman/mozilla /usr/portage/local/layman/x11 /usr/portage/local/layman/arcon-portage /usr/portage/local/layman/gnome /usr/portage/local/layman/custom-kernels /usr/portage/local/layman/kde /usr/portage/local/overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac ace acl acpi acpi4linux administrator aiglx alsa amarok amazon amuled apache2apm applet archive artswrappersuid audacious audiofile autoreplace avahi bash-completion beagle berkdb bittorrent bluetooth bonjour branding browserplugin bzip2 c++ cairo caps ccache cdda cddb cdio cdparanoia cdr cdrom chardet chroot cli codecs compositor connectionstatus contactnotes cpudetection cracklib crypt css ctype cups daap dbusdevhelp dga dhcp dia disk-partition divx divx4linux dri dssi dts dv dvd dvdr dvdread eds emboss emerald encode equalizer evo exif exo export exscalibar extraengine fam fat fbsplash ffmpeg firefox flac fontconfig foomaticdb fortran fuse gcj gdbm gif gimp gimpprint glade glib glibc-omitfp glitz glut gmail gmailtimestamps gnokii gnome gnutls gphoto2 gpm graphviz gsf gstreamer gtk gtk2 gtk2-unicode gtkhtml hal haskell hfs history howl htmlhandbook http hyperestraier iconv icu id3 id3tag idn ieee1394 imagemagick imlib inherit-graph innodb inotify ipod ipv6 jabberjack jack-tmpfs jackmidi java javascript jikes jingle joystick jpeg jpeg2k jrtplib kde kdeenablefinal kdehiddenvisibility kdepim kerberos kexi keyring ladcca ldap libnotify libsamplerate logrotate lufsusermount mad mailwrapper mbox mdnsresponder-compat midi mikmod mime mjpeg mmap mmx mng mono mozbranding mozdevelop mozsvg mp3 mp4 mpeg mpeg2 mpeg4 mplayer msn mudflap muine musepack musicbrainz mysql nautilus ncurses nepomuk netmeeting network new-login nforce2 nfs nls no-seamonkey nodrm nosrc nowlistening nptl nptlonly nsplugin ntfs obex offensive ogg ole openal opengl openmp pager pam panel-plugin pascal patch pch pcre pdf perl php pic pidgin pie plasma plotutils plugin pmu png portage portaudio postscript ppds pppd psyco pulseaudio python qt3 qt3support qt4 query-browser quicktime quotas rar rdesktop readline recode reflection reiser4 reiserfs remote rtsp samba sdl sdl-image search semantic-desktop session skins smime sms snmp sourceview spell spl sql ssl startup-notification statistics stats stencil-buffer subtitles subversion svg svk svn-mirror svnserve swat syslog systray taglib tagwriting tcltk tcpd tetex texteffect theora thesaurus thumbnail thunar-vfs thunderbird tiff timidity toolbar tracker transcode translator transparency truetype type1 uml unicode upnp usb userlocales userpriv utf8 v4l v4l2 valgrind vcd vhosts vim-syntax vim-with-x vnc vorbis vst wav wavpack webdav webservices win32codecs winpopup wma workbench wxgtk1 wxwindows x264x86 xattr xcb xcomposite xforms xine xml xorg xrandr xscreensaver xulrunner xv xvid zeroconf zip zlib" ALSA_CARDS="emu10k1 ice1712 intel8x0 usb-audio" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cachemime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="directory ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick vmmouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES" USERLAND="GNU" VIDEO_CARDS="radeon ati vesa fbdev vga vmware v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



 (I use mno-sse just to be sure that no sse instructions try to be emitted).
Comment 1 Jisakiel 2008-04-19 10:23:53 UTC
Created attachment 150268 [details]
build log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-04-19 15:59:46 UTC
I have an early K7 here:

processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 6
model		: 2
model name	: AMD Athlon(tm) Processor
stepping	: 1
cpu MHz		: 700.085
cache size	: 512 KB
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 1
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips	: 1401.52
clflush size	: 32

[ebuild   R   ] dev-libs/liboil-0.3.14  USE="doc" 0 kB

(In reply to comment #0)
>  (I use mno-sse just to be sure that no sse instructions try to be emitted).

$ eix -c liboil
[I] dev-libs/liboil (0.3.14(0.3)@04/19/2008): library of simple functions that are optimized for various CPUs

liboil first finds that your compiler can emit SSE instructions and then your CFLAGS tell the build system explicitly not to.

I advise you to visit http://liboil.freedesktop.org/wiki/ and read how liboil actually works.

Another bug wrangler might have stated that your CFLAGS simply suck and that you should stick to perhaps an -O* and a -march and maybe a -pipe.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-04-19 16:01:58 UTC
(In reply to comment #2)
> I advise you to visit http://liboil.freedesktop.org/wiki/ and read how liboil
> actually works.

Particularly the "Overview" section.