Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674218 - >=dev-libs/hyperscan-5.1.0: fix configure on only SSSE3 cpus
Summary: >=dev-libs/hyperscan-5.1.0: fix configure on only SSSE3 cpus
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christian Roessner
URL: https://github.com/intel/hyperscan/pu...
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: 674220
  Show dependency tree
 
Reported: 2019-01-01 02:11 UTC by David Heidelberg (okias)
Modified: 2020-06-10 14:24 UTC (History)
2 users (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 David Heidelberg (okias) 2019-01-01 02:11:56 UTC
This patch needs to be added:
https://github.com/intel/hyperscan/pull/129/commits/4261b74d6bb98c5548b1b6fe022e7c3d1ac7bf5e

Already send to upstream and waiting for inclusion.
Comment 1 David Heidelberg (okias) 2019-01-01 03:14:53 UTC
better reference pull request: https://github.com/intel/hyperscan/pull/129
Comment 2 Alexey Shvetsov archtester gentoo-dev 2019-10-08 14:37:25 UTC
There are no such version in tree
Comment 3 David Heidelberg (okias) 2019-10-08 15:00:32 UTC
-- Building without AVX512 support
CMake Error at cmake/arch.cmake:79 (message):
  A minimum of SSSE3 compiler support is required

Updating version to 5.1.0
Comment 4 David Heidelberg (okias) 2019-10-08 15:01:44 UTC
anyway, for 5.1.0 it dies later anyway, so probably another fix is needed....
Comment 5 Petr Vaněk gentoo-dev 2020-05-05 19:28:31 UTC
Could you provide a build.log and emerge --info please?
Comment 6 David Heidelberg (okias) 2020-05-06 09:25:28 UTC
Bug is still valid (I have it patched locally).

```
 * Package:    dev-libs/hyperscan-5.2.1-r1
 * Repository: gentoo
 * Maintainer: c@roessner.co arkamar@atlas.cz,proxy-maint@gentoo.org
 * USE:        abi_x86_64 amd64 cpu_flags_x86_ssse3 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Using python3.6 to build
>>> Unpacking source...
>>> Unpacking hyperscan-5.2.1.tar.gz to /var/tmp/portage/dev-libs/hyperscan-5.2.1-r1/work
>>> Source unpacked in /var/tmp/portage/dev-libs/hyperscan-5.2.1-r1/work
>>> Preparing source in /var/tmp/portage/dev-libs/hyperscan-5.2.1-r1/work/hyperscan-5.2.1 ...
 * Working in BUILD_DIR: "/var/tmp/portage/dev-libs/hyperscan-5.2.1-r1/work/hyperscan-5.2.1_build"
 * Hardcoded definition(s) removed in CMakeLists.txt:
 *      set(CMAKE_BUILD_TYPE RELWITHDEBINFO CACHE STRING "" FORCE )
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/hyperscan-5.2.1-r1/work/hyperscan-5.2.1 ...
 * Working in BUILD_DIR: "/var/tmp/portage/dev-libs/hyperscan-5.2.1-r1/work/hyperscan-5.2.1_build"
cmake -C /var/tmp/portage/dev-libs/hyperscan-5.2.1-r1/work/hyperscan-5.2.1_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_AND_SHARED=OFF -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-libs/hyperscan-5.2.1-r1/work/hyperscan-5.2.1_build/gentoo_toolchain.cmake  /var/tmp/portage/dev-libs/hyperscan-5.2.1-r1/work/hyperscan-5.2.1
loading initial cache file /var/tmp/portage/dev-libs/hyperscan-5.2.1-r1/work/hyperscan-5.2.1_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/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/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/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.71.0
-- Found PythonInterp: /var/tmp/portage/dev-libs/hyperscan-5.2.1-r1/temp/python3.6/bin/python (found version "3.6.10") 
-- Build date: 2020-05-06
-- Building shared libraries
-- gcc version 9.2.0
-- g++ version 9.2.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
-- Looking for _LIBCPP_VERSION
-- Looking for _LIBCPP_VERSION - not found
-- generator is Ninja
-- 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
-- Performing Test HAVE_AVX512
-- Performing Test HAVE_AVX512 - Failed
-- Building without AVX2 support
-- Building without AVX512 support
CMake Error at cmake/arch.cmake:79 (message):
  A minimum of SSSE3 compiler support is required
Call Stack (most recent call first):
  CMakeLists.txt:332 (include)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/dev-libs/hyperscan-5.2.1-r1/work/hyperscan-5.2.1_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/dev-libs/hyperscan-5.2.1-r1/work/hyperscan-5.2.1_build/CMakeFiles/CMakeError.log".
 * ERROR: dev-libs/hyperscan-5.2.1-r1::gentoo failed (configure phase):

Cannot provide whole emerge --info, but at least:
emerge --info
sh bash 4.4_p23-r1
ld GNU gold (Gentoo 2.32 p2 2.32.0) 1.16
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17::gentoo, 3.6.10::gentoo
dev-util/cmake:           3.14.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.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo, 2.33.1-r1::gentoo
sys-devel/gcc:            9.2.0-r3::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r7::gentoo

CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="-pipe -O2 -mtune=native"
Comment 7 Larry the Git Cow gentoo-dev 2020-06-10 14:24:56 UTC
The bug has been closed via the following commit(s):

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

commit 9a92f89023d4d4a6b6687f9196062bab87c52e07
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2020-05-07 14:40:56 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-06-10 14:24:41 +0000

    dev-libs/hyperscan: bug fixes: #674218, #707486, #722802
    
    * support non-English locales; The patch is taken from
      https://github.com/intel/hyperscan/issues/217#issuecomment-583932263
    * respect cpu_flags_x86 USE flags
    * respect -O flags
    * set release build type; CMAKE_BUILD_TYPE=Release disables -Werror flag
      which used to trigger false positive error in GCC-10.
      https://github.com/intel/hyperscan/issues/239
    
    Closes: https://bugs.gentoo.org/674218
    Closes: https://bugs.gentoo.org/707486
    Closes: https://bugs.gentoo.org/722802
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../hyperscan/files/hyperscan-5.2.1-locales.patch    | 20 ++++++++++++++++++++
 dev-libs/hyperscan/hyperscan-5.2.1-r1.ebuild         | 15 ++++++++++++++-
 2 files changed, 34 insertions(+), 1 deletion(-)