intel / hyperscan

High-performance regular expression matching library
https://www.hyperscan.io
Other
4.78k stars 710 forks source link

Hyperscan crashes when built for Unix #275

Open ituronova opened 3 years ago

ituronova commented 3 years ago

Hello, I have a problem with compiling Hyperscan on Unix system. Hyperscan crashes and throws exception:

[ 89%] Built target expressionutil [ 90%] Built target crosscompileutil [ 91%] Built target corpusomatic [ 91%] Built target databaseutil [ 92%] Linking CXX executable ../bin/unit-hyperscan /usr/bin/ld: ../lib/libhs.a(runtime.c.o): in function hs_open_stream': /home/lenka/cnt-mata-bench/tools/hyperscan/src/runtime.c:566: undefined refere tocore2_hs_stream_alloc' /usr/bin/ld: ../lib/libhs.a(runtime.c.o): in function hs_copy_stream': /home/lenka/cnt-mata-bench/tools/hyperscan/src/runtime.c:728: undefined refere tocore2_hs_stream_alloc' /usr/bin/ld: ../lib/libhs.a(runtime.c.o): in function hs_close_stream': /home/lenka/cnt-mata-bench/tools/hyperscan/src/runtime.c:1021: undefined refece tocore2_hs_stream_free' /usr/bin/ld: ../lib/libhs.a(runtime.c.o): in function hs_expand_stream': /home/lenka/cnt-mata-bench/tools/hyperscan/src/runtime.c:1228: undefined refece tocore2_hs_stream_alloc' /usr/bin/ld: /home/lenka/cnt-mata-bench/tools/hyperscan/src/runtime.c:1234: ufined reference to core2_hs_stream_free' /usr/bin/ld: ../lib/libhs.a(database.c.o): in functionprint_database_string /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:393: undefined refece to core2_hs_misc_alloc' /usr/bin/ld: /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:396: ufined reference tocore2_hs_misc_free' /usr/bin/ld: ../lib/libhs.a(database.c.o): in function hs_free_database': /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:56: undefined refere tocore2_hs_database_free' /usr/bin/ld: ../lib/libhs.a(database.c.o): in function hs_serialize_database /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:79: undefined refere tocore2_hs_misc_alloc' /usr/bin/ld: /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:82: unined reference to core2_hs_misc_free' /usr/bin/ld: ../lib/libhs.a(database.c.o): in functionhs_deserialize_databa: /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:266: undefined refece to core2_hs_database_alloc' /usr/bin/ld: /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:283: ufined reference tocore2_hs_database_free' /usr/bin/ld: /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:269: ufined reference to core2_hs_database_free' /usr/bin/ld: ../lib/libhs.a(runtime.c.o): in functionhs_open_stream': /home/lenka/cnt-mata-bench/tools/hyperscan/src/runtime.c:566: undefined refere to corei7_hs_stream_alloc' /usr/bin/ld: ../lib/libhs.a(runtime.c.o): in functionhs_copy_stream': /home/lenka/cnt-mata-bench/tools/hyperscan/src/runtime.c:728: undefined refere to corei7_hs_stream_alloc' /usr/bin/ld: ../lib/libhs.a(runtime.c.o): in functionhs_close_stream': /home/lenka/cnt-mata-bench/tools/hyperscan/src/runtime.c:1021: undefined refece to corei7_hs_stream_free' /usr/bin/ld: ../lib/libhs.a(runtime.c.o): in functionhs_expand_stream': /home/lenka/cnt-mata-bench/tools/hyperscan/src/runtime.c:1228: undefined refece to corei7_hs_stream_alloc' /usr/bin/ld: /home/lenka/cnt-mata-bench/tools/hyperscan/src/runtime.c:1234: ufined reference tocorei7_hs_stream_free' /usr/bin/ld: ../lib/libhs.a(database.c.o): in function print_database_string /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:393: undefined refece tocorei7_hs_misc_alloc' /usr/bin/ld: /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:396: ufined reference to corei7_hs_misc_free' /usr/bin/ld: ../lib/libhs.a(database.c.o): in functionhs_free_database': /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:56: undefined refere to corei7_hs_database_free' /usr/bin/ld: ../lib/libhs.a(database.c.o): in functionhs_serialize_database /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:79: undefined refere to corei7_hs_misc_alloc' /usr/bin/ld: /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:82: unined reference tocorei7_hs_misc_free' /usr/bin/ld: ../lib/libhs.a(database.c.o): in function hs_deserialize_databa: /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:266: undefined refece tocorei7_hs_database_alloc' /usr/bin/ld: /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:283: ufined reference to corei7_hs_database_free' /usr/bin/ld: /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:269: ufined reference tocorei7_hs_database_free' /usr/bin/ld: ../lib/libhs.a(runtime.c.o): in function hs_open_stream': /home/lenka/cnt-mata-bench/tools/hyperscan/src/runtime.c:566: undefined refere toavx2_hs_stream_alloc' /usr/bin/ld: ../lib/libhs.a(runtime.c.o): in function hs_copy_stream': /home/lenka/cnt-mata-bench/tools/hyperscan/src/runtime.c:728: undefined refere toavx2_hs_stream_alloc' /usr/bin/ld: ../lib/libhs.a(runtime.c.o): in function hs_close_stream': /home/lenka/cnt-mata-bench/tools/hyperscan/src/runtime.c:1021: undefined refece toavx2_hs_stream_free' /usr/bin/ld: ../lib/libhs.a(runtime.c.o): in function hs_expand_stream': /home/lenka/cnt-mata-bench/tools/hyperscan/src/runtime.c:1228: undefined refece toavx2_hs_stream_alloc' /usr/bin/ld: /home/lenka/cnt-mata-bench/tools/hyperscan/src/runtime.c:1234: ufined reference to avx2_hs_stream_free' /usr/bin/ld: ../lib/libhs.a(database.c.o): in functionprint_database_string /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:393: undefined refece to avx2_hs_misc_alloc' /usr/bin/ld: /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:396: ufined reference toavx2_hs_misc_free' /usr/bin/ld: ../lib/libhs.a(database.c.o): in function hs_free_database': /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:56: undefined refere toavx2_hs_database_free' /usr/bin/ld: ../lib/libhs.a(database.c.o): in function hs_serialize_database /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:79: undefined refere toavx2_hs_misc_alloc' /usr/bin/ld: /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:82: unined reference to avx2_hs_misc_free' /usr/bin/ld: ../lib/libhs.a(database.c.o): in functionhs_deserialize_databa: /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:266: undefined refece to avx2_hs_database_alloc' /usr/bin/ld: /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:283: ufined reference toavx2_hs_database_free' /usr/bin/ld: /home/lenka/cnt-mata-bench/tools/hyperscan/src/database.c:269: ufined reference to `avx2_hs_database_free' collect2: error: ld returned 1 exit status make[2]: [unit/CMakeFiles/unit-hyperscan.dir/build.make:371: bin/unit-hypcan] Error 1 make[1]: [CMakeFiles/Makefile2:679: unit/CMakeFiles/unit-hyperscan.dir/alError 2

Do you have any idea what is wrong?

xiangwang1 commented 3 years ago

Can you share your environment (CPU platform, OS and Compiler version) and compile commands with us?

ituronova commented 3 years ago

Linux f18ce45bc332 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 GNU/Linux

Nor7th commented 3 years ago

Could you also share your cmake command and full cmake result?