hyperscan icon indicating copy to clipboard operation
hyperscan copied to clipboard

Hyperscan crashes when built for Unix

Open ituronova opened this issue 4 years ago • 3 comments

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 to core2_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 to core2_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 to core2_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 to core2_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 function print_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 to core2_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 to core2_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 to core2_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 function hs_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 to core2_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 function hs_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 function hs_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 function hs_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 function hs_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 to corei7_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 to corei7_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 function hs_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 function hs_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 to corei7_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 to corei7_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 to corei7_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 to avx2_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 to avx2_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 to avx2_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 to avx2_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 function print_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 to avx2_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 to avx2_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 to avx2_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 function hs_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 to avx2_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?

ituronova avatar Oct 01 '20 08:10 ituronova

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

xiangwang1 avatar Oct 09 '20 01:10 xiangwang1

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

ituronova avatar Oct 09 '20 06:10 ituronova

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

Nor7th avatar Nov 30 '20 05:11 Nor7th