Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633642 - dev-libs/hyperscan: SSSE3 check fails on amd AMD A6-5400K APU
Summary: dev-libs/hyperscan: SSSE3 check fails on amd AMD A6-5400K APU
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Christian Roessner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-06 18:27 UTC by Vladi
Modified: 2017-10-30 21:17 UTC (History)
1 user (show)

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 Vladi 2017-10-06 18:27:42 UTC
Build fails on ssse3 check even tho my /proc/cpuinfo shows ssse3 in cpu flags..
 
 * Package:    dev-libs/hyperscan-4.4.1
 * Repository: gentoo
 * Maintainer: c@roessner.co proxy-maint@gentoo.org
 * USE:        abi_x86_64 amd64 cpu_flags_x86_ssse3 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   distcc preserve-libs sandbox selinux sesandbox userpriv usersandbox
>>> Working in BUILD_DIR: "/var/tmp/portage/portage/dev-libs/hyperscan-4.4.1/work/hyperscan-4.4.1_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/portage/dev-libs/hyperscan-4.4.1/work/hyperscan-4.4.1_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/portage/dev-libs/hyperscan-4.4.1/work/hyperscan-4.4.1_build/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/portage/dev-libs/hyperscan-4.4.1/work/hyperscan-4.4.1_build/gentoo_toolchain.cmake  /var/tmp/portage/portage/dev-libs/hyperscan-4.4.1/work/hyperscan-4.4.1
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/portage/dev-libs/hyperscan-4.4.1/work/hyperscan-4.4.1_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 6.4.0
-- The CXX compiler identification is GNU 6.4.0
-- Check for working C compiler: /usr/lib64/distcc/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/lib64/distcc/bin/x86_64-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/lib64/distcc/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/lib64/distcc/bin/x86_64-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
-- Performing Test ARCH_64_BIT
-- Performing Test ARCH_64_BIT - Success
-- Performing Test ARCH_32_BIT
-- Performing Test ARCH_32_BIT - Failed
-- Build type GENTOO
-- Boost version: 1.62.0
-- Performing Test BOOST_REVGRAPH_OK
-- Performing Test BOOST_REVGRAPH_OK - Failed
-- trying patched
-- Performing Test BOOST_REVGRAPH_PATCH
-- Performing Test BOOST_REVGRAPH_PATCH - Success
-- Found PythonInterp: /usr/bin/python (found version "3.4.5")
-- Build date: 2017-10-06
-- g++ version 6.4.0
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file intrin.h
-- Looking for include file intrin.h - not found
-- Looking for C++ include intrin.h
-- Looking for C++ include intrin.h - not found
-- Looking for include file x86intrin.h
-- Looking for include file x86intrin.h - found
-- Looking for C++ include x86intrin.h
-- Looking for C++ include x86intrin.h - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for _aligned_malloc
-- Looking for _aligned_malloc - not found
-- Performing Test HAS_C_HIDDEN
-- Performing Test HAS_C_HIDDEN - Success
-- Performing Test HAS_CXX_HIDDEN
-- Performing Test HAS_CXX_HIDDEN - Success
-- generator is Unix Makefiles
-- Performing Test HAS_C_ATTR_IFUNC
-- Performing Test HAS_C_ATTR_IFUNC - Success
-- Performing Test HAVE_SSSE3
-- Performing Test HAVE_SSSE3 - Failed
-- Performing Test HAVE_AVX2
-- Performing Test HAVE_AVX2 - Failed
CMake Error at CMakeLists.txt:298 (message):
  A minimum of SSSE3 compiler support is required


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/portage/dev-libs/hyperscan-4.4.1/work/hyperscan-4.4.1_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/portage/dev-libs/hyperscan-4.4.1/work/hyperscan-4.4.1_build/CMakeFiles/CMakeError.log".
 * ERROR: dev-libs/hyperscan-4.4.1::gentoo failed (configure phase):
 *   cmake failed
 *
 * Call stack:
 *     ebuild.sh, line  115:  Called src_configure
 *   environment, line 2956:  Called cmake-utils_src_configure
 *   environment, line  881:  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 '=dev-libs/hyperscan-4.4.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/hyperscan-4.4.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/portage/dev-libs/hyperscan-4.4.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/portage/dev-libs/hyperscan-4.4.1/temp/environment'.
 * Working directory: '/var/tmp/portage/portage/dev-libs/hyperscan-4.4.1/work/hyperscan-4.4.1_build'
 * S: '/var/tmp/portage/portage/dev-libs/hyperscan-4.4.1/work/hyperscan-4.4.1'


processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 16
model name      : AMD A6-5400K APU with Radeon(tm) HD Graphics
stepping        : 1
microcode       : 0x6001119
cpu MHz         : 3593.323
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
apicid          : 16
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs            : fxsave_leak sysret_ss_attrs null_seg
bogomips        : 7189.08
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro
Comment 1 Vladi 2017-10-06 18:29:05 UTC
Portage 2.3.8 (python 3.4.5-final-0, default/linux/amd64/13.0/selinux, gcc-6.4.0, glibc-2.25-r7, 4.13.5+ x86_64)
=================================================================
System uname: Linux-4.13.5+-x86_64-AMD_A6-5400K_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.4.1
KiB Mem:     7406420 total,    231328 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 06 Oct 2017 06:45:01 +0000
Head commit of repository gentoo: 9fbf87b2e6ad27507e846ed357a3d40e35127d46
Head commit of repository digint: f3aa16e7e1239e1a008787f5133ee1bfa1987594

sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28 p1.2) 2.28
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo, 2.28.1::gentoo
sys-devel/gcc:            6.3.0::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

digint
    location: /var/lib/layman/digint
    sync-type: git
    sync-uri: git://dev.tty0.ch/portage/digint-overlay.git
    masters: gentoo
    priority: 50

raiagent
    location: /var/lib/layman/raiagent
    sync-type: laymansync
    sync-uri: git://github.com/leycec/raiagent.git
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/x11.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -mcx16 -mpopcnt -pipe"
CHOST="x86_64-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/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=amdfam10 -mcx16 -mpopcnt -pipe"
DISTDIR="/mnt/das/var/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp/portage"
USE="3dnow 3dnowext 64bit a52 aac adns alsa amd64 async bash-completion berkdb btrfs bzip2 caps cgi chroot ck-server clamav clang cli client-libs command-args consolekit cracklib crypt ctype curl cxx dedicated device-mapper dri dts dvb dynamicplugin enca encode enscript epoll extensions faac faad fasttrack ffmpeg flac fontconfig fpm fuse gbm gd gdbm geoip gif glamor glibc-omitfp gnutella gnutls hardcoded-tables hash iconv imap inline inotify iproute2 ipv6 ithreads jemalloc jpeg kerberos logrotate lzo magic matroska mmxext modules mp3 mp4 mpeg mpm-worker multilib mysql nagios-dns nagios-ping nagios-ssh ncurses network nfsv3 nls no-old-linux nonfsv4 nptl odbc offensive ogg ogm open_perms opengl openmp optimization pam pcre pcre2 pdo perl php pic png policykit python python3 readline rpc rrdtool rtmp samba seccomp selinux session shared-dricore silvercity slang smi smtp snmp snortsam sockets spell spice sqlite sqlite3 sse3 ssl ssse3 subversion svg sync-plugin-portage sysfs syslog theora threads tidy tiff truetype udev unconfined unicode urandom usbredir userlocales v4l vdpau vhosts vim-syntax virtfs vorbis vpx wifi x264 xattr xml xmlwriter xrandr xvid zero-penalty-hit zip zlib" ABI_X86="64" 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" APACHE2_MODULES="alias auth_basic authz_host authz_user authn_file autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mime mime_magic negotiation proxy proxy_http rewrite setenvif so status unique_id userdir usertrack vhost_alias cgid" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" 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="keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en bg" LIRC_DEVICES="userspace" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_req limit_zone map referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi dav gzip_static proxy mp4" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Mike Gilbert gentoo-dev 2017-10-28 15:40:22 UTC
Your CFLAGS do not enable the SSSE3 instruction set, which probably causes this.
Comment 3 Vladi 2017-10-30 21:17:17 UTC
Yup, fixed my CFLAGS and it compiled just fine. Thanks!