Open eseifert opened 4 years ago
Will below changes help?
to
string(FIND "${_GCC_OUTPUT}" "march" POS)
string(SUBSTRING "${_GCC_OUTPUT}" ${POS} -1 _GCC_OUTPUT)
string(REGEX REPLACE "march=[ \t]*([^ \n]*)[ \n].*" "\\1"
I had the same bug when using 5.1.0. With 5.2.1 my compile worked fine on Gentoo on gcc 9.2.0 where this bug came from. https://bugs.gentoo.org/707486
me too version 5.2.0 also run error -- Build date: 2020-04-13 CMake Error at CMakeLists.txt:97 (message): Ragel state machine compiler not found
-- Configuring incomplete, errors occurred! See also "/home/sodo/snort_src/hyperscan-5.2.0-build/CMakeFiles/CMakeOutput.log".
@zhousodo, I think your error is caused by missing ragel library but not by non-English locale. (http://intel.github.io/hyperscan/dev-reference/getting_started.html#requirements)
@xiangwang1, I confirm that your patch works for all affected locales, namely de_DE
, fr_FR
and sv_SV
.
@arkamar, thanks. We will fix this in the upcoming release.
I had problems compile hyperscan 5.2.1 on Gentoo Linux. The configuration fails with
My system has
LC_ALL="de_DE.utf8"
set and the output ofgcc -c -Q --help=target -march=native -mtune=native
looks like this:I could solve the installation problemby using
LC_ALL=C
. So, my guess is that the CMake parsing code relies on certain locale settings.