Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 684540 - net-libs/webkit-gtk-2.24.1 src_configure(): CMake Error at CMakeLists.txt:115 (message): SSE2 support is required to compile WebKit
Summary: net-libs/webkit-gtk-2.24.1 src_configure(): CMake Error at CMakeLists.txt:115...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-27 22:45 UTC by 5836000
Modified: 2019-05-17 21:49 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 5836000 2019-04-27 22:45:10 UTC
#logs
tail --lines=100 /var/tmp/portage/net-libs/webkit-gtk-2.24.1/temp/build.log

* Package: net-libs/webkit-gtk-2.24.1
* Repository: gentoo
* Maintainer: gnome@gentoo.org
* USE: X abi_x86_32 egl elibc_glibc geolocation gstreamer introspection kernel_linux libnotify opengl spell userland_GNU webgl x86
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking webkitgtk-2.24.1.tar.xz to /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work
>>> Source unpacked in /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work
>>> Preparing source in /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkitgtk-2.24.1 ...
* Disabling deprecation warnings ... [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkitgtk-2.24.1 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build"
cmake -C /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_QUARTZ_TARGET=no -DENABLE_API_TESTS=no -DENABLE_GTKDOC=no -DENABLE_GEOLOCATION=yes -DCMAKE_DISABLE_FIND_PACKAGE_OpenGLES2=ON -DENABLE_GLES2=no -DENABLE_VIDEO=yes -DENABLE_WEB_AUDIO=yes -DENABLE_INTROSPECTION=yes -DUSE_LIBNOTIFY=yes -DUSE_LIBSECRET=no -DUSE_OPENJPEG=no -DUSE_WOFF2=ON -DENABLE_PLUGIN_PROCESS_GTK2=no -DENABLE_SPELLCHECK=yes -DENABLE_WAYLAND_TARGET=no -DENABLE_WEBGL=yes -DCMAKE_DISABLE_FIND_PACKAGE_EGL=OFF -DCMAKE_DISABLE_FIND_PACKAGE_OpenGL=OFF -DENABLE_X11_TARGET=yes -DENABLE_OPENGL=ON -DCMAKE_BUILD_TYPE=Release -DPORT=GTK -DRUBY_EXECUTABLE=/usr/bin/ruby24 -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build/gentoo_toolchain.cmake /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkitgtk-2.24.1
loading initial cache file /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/i686-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/i686-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The CMake build type is: Gentoo
-- Performing Test HAVE_SSE2_EXTENSIONS
-- Performing Test HAVE_SSE2_EXTENSIONS - Failed
CMake Error at CMakeLists.txt:115 (message):
SSE2 support is required to compile WebKit


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build/CMakeFiles/CMakeError.log".
* ERROR: net-libs/webkit-gtk-2.24.1::gentoo failed (configure phase):
* cmake failed
*
* Call stack:
* ebuild.sh, line 124: Called src_configure
* environment, line 4934: Called cmake-utils_src_configure
* environment, line 1550: Called die
* The specific snippet of code:
* "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
*
* If you need support, post the output of `emerge --info '=net-libs/webkit-gtk-2.24.1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=net-libs/webkit-gtk-2.24.1::gentoo'`.
* The complete build log is located at '/var/tmp/portage/net-libs/webkit-gtk-2.24.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-libs/webkit-gtk-2.24.1/temp/environment'.
* Working directory: '/var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build'
* S: '/var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkitgtk-2.24.1'

#more logs
tail --lines=200 /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build/CMakeFiles/CMakeError.log
Performing C++ SOURCE FILE Test HAVE_SSE2_EXTENSIONS failed with the following output:
Change Dir: /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/ninja" "cmTC_5165b"
[1/2] Building CXX object CMakeFiles/cmTC_5165b.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_5165b.dir/src.cxx.o
/usr/bin/i686-pc-linux-gnu-g++ -DNDEBUG -O2 -march=i686 -pipe -fno-strict-aliasing -DHAVE_SSE2_EXTENSIONS -o CMakeFiles/cmTC_5165b.dir/src.cxx.o -c src.cxx
src.cxx: In function ‘int main()’:
src.cxx:7:15: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
a = _mm_loadu_pd (vals);
~~^~~~~~~~~~~~~~~~~~~~~
In file included from src.cxx:2:
/usr/lib/gcc/i686-pc-linux-gnu/8.2.0/include/emmintrin.h:170:1: error: inlining failed in call to always_inline ‘void _mm_storeu_pd(double*, __m128d)’: target specific option mismatch
_mm_storeu_pd (double *__P, __m128d __A)
^~~~~~~~~~~~~
src.cxx:9:27: note: called from here
_mm_storeu_pd (vals,b);
~~~~~~~~~~~~~~^~~~~~~~
In file included from src.cxx:2:
/usr/lib/gcc/i686-pc-linux-gnu/8.2.0/include/emmintrin.h:245:1: error: inlining failed in call to always_inline ‘__m128d _mm_add_pd(__m128d, __m128d)’: target specific option mismatch
_mm_add_pd (__m128d __A, __m128d __B)
^~~~~~~~~~
src.cxx:8:28: note: called from here
b = _mm_add_pd (a,a);
~~~~~~~~~~~^~~~~
In file included from src.cxx:2:
/usr/lib/gcc/i686-pc-linux-gnu/8.2.0/include/emmintrin.h:128:1: error: inlining failed in call to always_inline ‘__m128d _mm_loadu_pd(const double*)’: target specific option mismatch
_mm_loadu_pd (double const *__P)
^~~~~~~~~~~~
src.cxx:7:30: note: called from here
a = _mm_loadu_pd (vals);
~~~~~~~~~~~~~^~~~~~
ninja: build stopped: subcommand failed.

Return value: 1
Source file was:

#include <emmintrin.h>
int main ()
{
__m128d a, b;
double vals[2] = {0};
a = _mm_loadu_pd (vals);
b = _mm_add_pd (a,a);
_mm_storeu_pd (vals,b);
return(0);
}

##sse2 is enabled
CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3"

## and it was no issues with currently installed version 2.22.6
[ebuild U ] net-libs/webkit-gtk-2.24.1:4/37::gentoo [2.22.6:4/37::gentoo] USE="X egl geolocation gstreamer introspection libnotify opengl spell webgl (-aqua) -coverage -doc -gles2 -gnome-keyring -jpeg2k% -nsplugin -test -wayland (-jit%*)" 17,479 KiB



#it looks loke upstream bug below 
https://bugs.webkit.org/show_bug.cgi?id=196768

#also see gentoo forum treat 
https://forums.gentoo.org/viewtopic-p-8330030.html#8330030

#
 emerge --info
Portage 2.3.62 (python 3.6.5-final-0, default/linux/x86/17.0/desktop/plasma/systemd, gcc-8.2.0, glibc-2.28-r6, 4.19.27-gentoo-r1 i686)
=================================================================
System uname: Linux-4.19.27-gentoo-r1-i686-Intel-R-_Atom-TM-_CPU_N2600_@_1.60GHz-with-gentoo-2.6
KiB Mem:     1018380 total,     63276 free
KiB Swap:    4194300 total,   4024164 free
Timestamp of repository gentoo: Sat, 27 Apr 2019 06:00:01 +0000
Head commit of repository gentoo: c7779b29f76d57649a36cd5b6d53c7fb1d8bbe71
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r4::gentoo
sys-devel/gcc:            8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.xxxyyy.com/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=1  --load-average=4"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacs acl acpi activities alsa berkdb bidi bluetooth branding bzip2 cairo cdda cdio cdr cli crypt cryptsetup cups cxx dbus declarative device-mapper dri dts dvd dvdr emboss encode exif fam ffmpeg flac fortran gdbm gif glamor gnutls gpm gtk harfbuzz iconv ipv6 jpeg kde kipi kwallet lcms ldap libnotify libtirpc live lua mad matroska messages mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openh264 openmp opus pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline savedconfig sddm sdl seccomp semantic-desktop spell ssl startup-notification svg svga symlink systemd tcpd theora tiff tls truetype udev udisks unicode upower usb user-session vcd vlm vorbis vpx widgets wxwidgets x264 x86 xattr xcb xcomposite xml xv xvid zlib" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mart Raudsepp gentoo-dev 2019-04-28 13:11:22 UTC
I suspect -march=i686 is too little. Can you try -march=native or do you have reasons to not use that?
Comment 2 Larry the Git Cow gentoo-dev 2019-05-17 21:49:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f492a9f52730307bf2010a8ebea9f08e0c7936b7

commit f492a9f52730307bf2010a8ebea9f08e0c7936b7
Author:     Mart Raudsepp <leio@gentoo.org>
AuthorDate: 2019-05-17 21:47:44 +0000
Commit:     Mart Raudsepp <leio@gentoo.org>
CommitDate: 2019-05-17 21:48:06 +0000

    net-libs/webkit-gtk: bump to 2.24.2
    
    Hopefully handles SSE2 missing from CXXFLAGS better.
    Unknown what happens for machines that are actually without
    SSE2 runtime support.
    
    Closes: https://bugs.gentoo.org/684540
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Mart Raudsepp <leio@gentoo.org>

 net-libs/webkit-gtk/Manifest                 |   1 +
 net-libs/webkit-gtk/webkit-gtk-2.24.2.ebuild | 281 +++++++++++++++++++++++++++
 2 files changed, 282 insertions(+)