intel / intel/hyperscan

CMake not detecting ${GNUCC_ARCH} on Arch Linux, gcc 9.2

Open
#194 7 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
5.5k
Forks
816
Avg merge
4d 21h
Merged PRs (30d)
2

Description

I have just cloned Hyperscan to my machine and am building it. Os is Arch Linux with latest kernel and GCC and I had some trouble with CMake. It repported error with Unix Makefiles generator. It didn't found the right architecture for -mtune flag.

The macro was in CMakeLists.txt, line 196:
` set (EXEC_ARGS ${CC_ARG1} -E - -mtune=${GNUCC_ARCH})`

Changing this to:
`set EXEC_ARGS ${CC_ARG1} -E - -mtune=native)`

seems to fix the issue. At least it did for me, Hyperscan seems to have built fine.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.