Closed ilyar closed 4 years ago
Fixed in 2.9.1.
I have the same issue when compiling the C binding for Crystal lang
/usr/bin/ld: /mnt/d/projects/services/lib/cridxerdb/ext/libreindexer.a(backtrace.cc.o): in function `reindexer::debug::backtrace_internal(void**, unsigned long, void*, std::basic_string_view<char, std::char_traits<char> >&)':
/mnt/d/projects/lib/reindexer/cpp_src/debug/backtrace.cc:114: undefined reference to `_ULx86_64_init_local'
/usr/bin/ld: /mnt/d/projects/lib/reindexer/cpp_src/debug/backtrace.cc:119: undefined reference to `_ULx86_64_get_reg'
/usr/bin/ld: /mnt/d/projects/lib/reindexer/cpp_src/debug/backtrace.cc:121: undefined reference to `_ULx86_64_step'
/usr/bin/ld: /mnt/d/projects/lib/reindexer/cpp_src/debug/backtrace.cc:110: undefined reference to `_Ux86_64_getcontext'
... many more here
I have built the static library file libreindexer.a
successfully
Do you have any idea what I missed?
Found the issue, I have to add the --link-flags="-lunwind"
Env and logs: https://github.com/ilyar/reindexer-sample/pull/2