Does the external toolchain for x86/64 not support SSSE3?

In trying to build hyperscan using the external toolchain for x86/64, CMake checks are failing:

% package/hyperscan/{clean,compile} package/index V=s
...
-- Building shared libraries
-- gcc version 13.2.0
CMake Error at CMakeLists.txt:198 (string):
  string begin index: -1 is out of range 0 - 0


CMake Error at CMakeLists.txt:209 (message):
  Something went wrong determining gcc tune: -mtune= not valid


-- g++ version 13.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 - Failed
-- Compiler does not support ifunc attribute, cannot build fat runtime
-- 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
-- Performing Test HAVE_AVX512VBMI
-- Performing Test HAVE_AVX512VBMI - Failed
-- Building without AVX2 support
-- Building without AVX512 support
-- Building without AVX512VBMI support
CMake Error at cmake/arch.cmake:108 (message):
  A minimum of SSSE3 compiler support is required
Call Stack (most recent call first):
  CMakeLists.txt:340 (include)


-- Configuring incomplete, errors occurred!
make[2]: *** [Makefile:84: /scratch/openwrt/build_dir/target-x86_64-openwrt-linux-musl_musl/hyperscan-5.4.2/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[2]: Leaving directory '/scratch/openwrt/feeds/packages/libs/hyperscan'
time: package/feeds/packages/hyperscan/compile#1.48#0.81#2.32
    ERROR: package/feeds/packages/hyperscan failed to build.
make[1]: *** [package/Makefile:129: package/feeds/packages/hyperscan/compile] Error 1
make[1]: Leaving directory '/scratch/openwrt'
make: *** [/scratch/openwrt/include/toplevel.mk:233: package/hyperscan/compile] Error 2
  1. The gcc version is failing to pass
  2. The mtune value is failing to pass
  3. The compilers is failing the SSSE3 check

Are these errors to be expected? I opened 15216 on github but might get more coverage posting here too.

1 Like