Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525520 - www-client/chromium-38.0.2125.101 compilation fails: "SSE4.1 instruction set not enabled"
Summary: www-client/chromium-38.0.2125.101 compilation fails: "SSE4.1 instruction set...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-15 19:34 UTC by mercuriete
Modified: 2014-10-18 15:55 UTC (History)
0 users

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 mercuriete 2014-10-15 19:34:19 UTC
trying to emerge chomium 38 i got this compilation error
(my cpu has only sse2)



[511/15615] cd ../../ui/strings; python ../../tools/grit/grit.py -i app_locale_settings.grd build -f ../../tools/gritsettings/resource_ids -o ../../out/Release/gen/ui/strings -D _chromium -E "CHROMIUM_BUILD=chromium" -D desktop_linux -D toolkit_views -D use_aura -D use_ash -D use_nss -D remoting -D enable_extensions -D enable_plugins -D enable_printing -D enable_full_printing -D enable_themes -D enable_app_list -D enable_settings_app -D enable_google_now -D use_concatenated_impulse_responses -D enable_webrtc -D enable_task_manager -D enable_notifications -D enable_service_discovery
FAILED: i686-pc-linux-gnu-gcc -MMD -MF obj/third_party/libvpx/source/libvpx/vp8/encoder/x86/libvpx_intrinsics_sse4_1.quantize_sse4.o.d -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DDISABLE_NACL -DCHROMIUM_BUILD -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DUSE_XI2_MT=2 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DUSE_UDEV -DENABLE_EGLIMAGE=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DCLD2_DATA_SOURCE=static -DENABLE_FULL_PRINTING=1 -DENABLE_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DUSE_NSS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -I../../third_party/libvpx/source/config/linux/ia32 -I../../third_party/libvpx/source/libvpx -fstack-protector --param=ssp-buffer-size=4  -pthread -fno-exceptions -fno-strict-aliasing -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -msse4.1 -Wno-format -Wno-unused-result -msse2 -mfpmath=sse -mmmx -m32 -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables -O2 -pipe -march=pentium-m -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase -mtune=generic  -c ../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c -o obj/third_party/libvpx/source/libvpx/vp8/encoder/x86/libvpx_intrinsics_sse4_1.quantize_sse4.o
In file included from ../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:12:0:
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/include/smmintrin.h:31:3: error: #error "SSE4.1 instruction set not enabled"
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c: In function ‘vp8_regular_quantize_b_sse4_1’:
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:36:5: error: unknown type name ‘__m128i’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:38:5: error: unknown type name ‘__m128i’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:38:44: error: ‘__m128i’ undeclared (first use in this function)
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:38:44: note: each undeclared identifier is reported only once for each function it appears in
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:38:53: error: expected expression before ‘)’ token
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:39:13: error: expected ‘;’ before ‘quant_shift1’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:40:13: error: expected ‘;’ before ‘z0’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:41:13: error: expected ‘;’ before ‘z1’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:42:13: error: expected ‘;’ before ‘zbin_extra’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:43:13: error: expected ‘;’ before ‘zbin0’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:44:13: error: expected ‘;’ before ‘zbin1’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:45:13: error: expected ‘;’ before ‘round0’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:46:13: error: expected ‘;’ before ‘round1’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:47:13: error: expected ‘;’ before ‘quant0’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:48:13: error: expected ‘;’ before ‘quant1’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:49:13: error: expected ‘;’ before ‘dequant0’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:50:13: error: expected ‘;’ before ‘dequant1’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:51:13: error: expected ‘;’ before ‘qcoeff0’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:52:13: error: expected ‘;’ before ‘qcoeff1’
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:55:5: error: ‘zbin_extra’ undeclared (first use in this function)
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:59:26: error: ‘z0’ undeclared (first use in this function)
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:60:26: error: ‘z1’ undeclared (first use in this function)
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:69:5: error: ‘zbin0’ undeclared (first use in this function)
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:70:5: error: ‘zbin1’ undeclared (first use in this function)
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:80:28: error: ‘round0’ undeclared (first use in this function)
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:81:28: error: ‘round1’ undeclared (first use in this function)
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:83:30: error: ‘quant0’ undeclared (first use in this function)
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:84:30: error: ‘quant1’ undeclared (first use in this function)
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:92:30: error: ‘quant_shift1’ undeclared (first use in this function)
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:101:5: error: ‘qcoeff0’ undeclared (first use in this function)
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:104:5: error: ‘qcoeff1’ undeclared (first use in this function)
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:118:31: error: expected expression before ‘)’ token
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:119:31: error: expected expression before ‘)’ token
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:121:41: error: ‘dequant0’ undeclared (first use in this function)
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:122:41: error: ‘dequant1’ undeclared (first use in this function)
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:124:31: error: expected expression before ‘)’ token
../../third_party/libvpx/source/libvpx/vp8/encoder/x86/quantize_sse4.c:125:31: error: expected expression before ‘)’ token
ninja: build stopped: subcommand failed.


Reproducible: Always

Steps to Reproduce:
1. emerge chromium
2. compilation fails



Portage 2.2.8-r2 (default/linux/x86/13.0/desktop, gcc-4.7.3, glibc-2.19-r1, 3.14.16-gentoo i686)
=================================================================
System uname: Linux-3.14.16-gentoo-i686-Intel-R-_Celeron-R-_M_processor_1.60GHz-with-gentoo-2.2
KiB Mem:     1538692 total,    280200 free
KiB Swap:    2097148 total,   2088820 free
Timestamp of tree: Wed, 15 Oct 2014 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r1
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo java
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium-m -mno-cx16 -mno-sahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=generic"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=pentium-m -mno-cx16 -mno-sahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=generic"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="es_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/java"
USE="X a52 aac acl acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cli cracklib crypt cups cxx dbus dri dts dvb dvd dvdr emboss encode exif fam fat ffmpeg firefox flac fluidsynth fontconfig fortran gdbm gif glamor glib gpm gtk iconv icu ipv6 java jbootstrap jpeg lcms ldap libass libcaca libnotify lm_sensors mad matroska mmx mng modules mp3 mp4 mpeg ncurses networkmanager nls nptl nsplugin ntfs ogg opengl openmp opus org pam pango pcre pcsc-lite pdf png policykit polkit ppds pulseaudio qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg symlink systemd tcpd tiff truetype udev udisks unicode upower usb v4l vorbis webstart wxwidgets x264 x86 xcb xml xv xvid zlib zvbi" ABI_X86="32" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="es en" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel modesetting fbdev" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 mercuriete 2014-10-15 19:35:51 UTC
 ~ $ cat /proc/cpuinfo 
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 13
model name	: Intel(R) Celeron(R) M processor         1.60GHz
stepping	: 8
microcode	: 0x20
cpu MHz		: 1600.000
cache size	: 1024 KB
fdiv_bug	: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 2
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx bts
bogomips	: 3192.04
clflush size	: 64
cache_alignment	: 64
address sizes	: 32 bits physical, 32 bits virtual
power management:
Comment 2 Mike Gilbert gentoo-dev 2014-10-16 00:30:58 UTC
I can reproduce that failure with those CFLAGS.

It looks like the build system always builds libvpx with SSE4 support. There is some code which should choose the appropriate instruction set at run time.

I think you will need to remove -mno-sse4.1 from your CFLAGS.
Comment 3 mercuriete 2014-10-18 15:52:11 UTC
I changed the cflags to  -march=native and it works.
but i cant use distcc to make a cross compilation.


i will change the status to fixed

thanks to gentoo team :)
Comment 4 Mike Gilbert gentoo-dev 2014-10-18 15:55:28 UTC
(In reply to mercuriete from comment #3)
> I changed the cflags to  -march=native and it works.
> but i cant use distcc to make a cross compilation.

For distcc, you could probably just remove all of the -mno-XXX flags; most of them would not be enabled by default anyway.