when building UFO-AI, i get "SSE instruction set not enabled" on my ahtlon XP (which has SSE but no SSE2) Reproducible: Always Steps to Reproduce: 1. emerge ufo-ai 2. i have sse use-flag (but no sse2 because my cpu has sse only with 3d-now and mmx) 3. have an athlon-xp cpu sylvain@sylvain-gentoo:~$ cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 8 model name : AMD Athlon(tm) XP 2600+ stepping : 1 cpu MHz : 2079.871 cache size : 256 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 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up bogomips : 4159.74 clflush size : 32 cache_alignment : 32 address sizes : 34 bits physical, 32 bits virtual power management: ts sylvain@sylvain-gentoo:~$ tail -n 50 /var/tmp/portage/games-strategy/ufo-ai-2.2.1/temp/build.log * [UFO] src/common/cmodel.c * [UFO] src/common/common.c * [UFO] src/common/cvar.c * [UFO] src/common/files.c src/common/files.c: In function ‘FS_BuildFileList’: src/common/files.c:1043: attention : le format n'est pas une chaîne littérale et pas d'argument de format * [UFO] src/common/md4.c * [UFO] src/common/md5.c * [UFO] src/common/mem.c * [UFO] src/common/msg.c * [UFO] src/common/net.c * [UFO] src/common/netpack.c * [UFO] src/common/dbuffer.c * [UFO] src/common/scripts.c * [UFO] src/server/sv_ccmds.c * [UFO] src/server/sv_game.c * [UFO] src/server/sv_init.c * [UFO] src/server/sv_main.c * [UFO] src/server/sv_send.c * [UFO] src/server/sv_user.c * [UFO] src/server/sv_world.c * [UFO] src/game/q_shared.c Dans le fichier inclus à partir de src/game/q_shared.c:33: /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/include/xmmintrin.h:32:3: erreur: #error "SSE instruction set not enabled" src/game/q_shared.c: In function ‘VectorScale’: src/game/q_shared.c:840: erreur: ‘__m128’ undeclared (first use in this function) src/game/q_shared.c:840: erreur: (Each undeclared identifier is reported only once src/game/q_shared.c:840: erreur: for each function it appears in.) src/game/q_shared.c:840: erreur: expected ‘;’ before ‘xmm_in’ src/game/q_shared.c:842: erreur: ‘xmm_in’ undeclared (first use in this function) src/game/q_shared.c:842: attention : implicit declaration of function ‘_mm_load_ss’ src/game/q_shared.c:843: erreur: ‘xmm_scale’ undeclared (first use in this function) src/game/q_shared.c:844: erreur: ‘xmm_out’ undeclared (first use in this function) src/game/q_shared.c:844: attention : implicit declaration of function ‘_mm_mul_ss’ src/game/q_shared.c:845: attention : implicit declaration of function ‘_mm_store_ss’ make: *** [release-linux-gnu-i386/client/game/q_shared.o] Erreur 1 * ERROR: games-strategy/ufo-ai-2.2.1 failed: * emake failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 2594: Called die * The specific snippet of code: * emake || die "emake failed"; * * If you need support, post the output of 'emerge --info =games-strategy/ufo-ai-2.2.1', * the complete build log and the output of 'emerge -pqv =games-strategy/ufo-ai-2.2.1'. * The complete build log is located at '/var/tmp/portage/games-strategy/ufo-ai-2.2.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-strategy/ufo-ai-2.2.1/temp/environment'. * S: '/var/tmp/portage/games-strategy/ufo-ai-2.2.1/work/ufoai-2.2.1-source' sylvain@sylvain-gentoo:~$ sylvain@sylvain-gentoo:~$ cat /etc/make.conf # Please consult /usr/share/portage/config/make.conf.example CFLAGS="-O2 -march=i686 -pipe" CXXFLAGS="-O2 -march=i686 -pipe" # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing CHOST="i686-pc-linux-gnu" LINGUAS="fr" GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.df.lth.se/pub/gentoo/ " ACCEPT_LICENSE="dlj-1.1 AdobeFlash-10.1 googleearth" # flags globaux profile 10.0 "acl cdr consolekit crypt dbus dvd dvdr hal jpeg mad mp3 mp4 mpeg ogg ssl" # pour derniere version udev USE="${USE} extras" # ?? firefox pour sqlite ?? USE = "${USE} fts3 gnutls" # general (iproute2: nouveau tracert) USE="${USE} alsa iproute2 java kde laptop qt4" # android / java / mozilla extensions USE="${USE} ant java java6 javascript mozdevelop nsplugin" # console / fb /splash USE="${USE} directfb fbcon fbcondecor fbsplash" # kde4 / bureau (policykit pour kde car pulle par networkmanager) USE="${USE} emerald gstreamer lcms mng mysql phonon policykit python3 rdesktop sql sqlite webkit xcb xcomposite" # vlc / k3b / optims /codecs USE="${USE} 3dnow 3dnowext emovix ffmpeg id3tag jpeg2k lame matroska mmx mmxext musicbrainz sse theora win32codecs" # samba USE="${USE} ads avahi ldap samba4 winbind -zeroconf" # avahi (pour dns discovery samba, conflit zeroconf/mdnsresponder) USE="${USE} autoipd mdnsresponder-compat" # IM USE="${USE} aim msn oscar yahoo" # evolution-exchange (ca marche pas ca...) USE="${USE} exchange gnome gtk" # networkmanager / reseau USE="${USE} networkmanager radius snmp sockets socks5" VIDEO_CARDS="radeon ati radeonhd" INPUT_DEVICES="evdev" sylvain@sylvain-gentoo:~$
(Sylvain, please also post your emerge --info output, which will include everything that you have set up in the /etc/make.conf, but also a lot of informative info wrt your system's toolchain).
Maybe you should modify CFLAGS in your /etc/make.conf to CFLAGS="-O2 -march=athlon-xp -pipe -msse" and the same for CXXFLAGS Consult the /usr/share/portage/config/make.conf.example before applying these changes
sylvain@sylvain-gentoo:~$ emerge --info Portage 2.1.8.3 (default/linux/x86/10.0/desktop/kde, gcc-4.4.3, glibc-2.11.2-r0, 2.6.32-gentoo-r7-syl i686) ================================================================= System uname: Linux-2.6.32-gentoo-r7-syl-i686-AMD_Athlon-tm-_XP_2600+-with-gentoo-2.0.1 Timestamp of tree: Tue, 29 Jun 2010 20:00:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.5-r2, 3.1.2-r3 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.4, 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.1 googleearth" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -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 /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.df.lth.se/pub/gentoo/ " LANG="fr_FR.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="fr" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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="3dnow 3dnowext X a52 aac acl acpi ads aim alsa ant autoipd avahi berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus directfb dri dts dvd dvdr emboss emerald emovix encode exchange exif extras fam fbcon fbcondecor fbsplash ffmpeg firefox flac fortran fts3 gdbm gif gnome gnutls gpm gstreamer gtk hal iconv id3tag iproute2 ipv6 java java6 javascript jpeg jpeg2k kde lame laptop lcms ldap libnotify mad matroska mdnsresponder-compat mikmod mmx mmxext mng modules mozdevelop mp3 mp4 mpeg msn mudflap musicbrainz mysql ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp oscar pam pango pcre pdf perl phonon png policykit ppds pppd python python3 qt3support qt4 radius rdesktop readline reflection samba4 sdl session snmp sockets socks5 spell spl sql sqlite sse ssl startup-notification svg sysfs tcpd theora tiff truetype unicode usb vorbis webkit win32codecs winbind x264 x86 xcb xcomposite xml xorg xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mmap_emul 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon ati radeonhd" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
-msse ???????? you must kid Alfredo.......... i will not set such a flag in there, because i will soon change of CPU, and you must take in that for users... sorry same player shoot again !
UFO-AI seems to need sse (at least getting that from the sentence you put. gcc, with -march=i686 does not provide sse, it is just a PentiumPro that, as you know, lack sse instruction set The code that is compiled with such an option can run on athlon-xp but do not use/recognize sse You can say -march=native or -march=athlon-xp to inform gcc about the instruction set it can use in the generated code When / if you change your cpu, and your cpu does not have the instruction set that is present in the athlon-xp, you have to rebuild everything. At least you could try to change the make.conf only for the build of ufo-ai If the error remain the same, try also adding -msse (I don't think that is a winner, but you could try)
ok, it builds with -msse in CFLAGS