-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile and get errors as undefined reference to `_Ux86_64_getcontext' #278
Comments
On Wed, Apr 12, 2017 at 05:08:15AM -0700, 刘栋 wrote:
1. download the seastar latest version
2. we compile to get a libseastar.a file
./configure.py --with libseastar.a --mode release
ninja-build
then, we can get a libseastar.a file
3. call seastar api ,then compile and link, we get errors
build64_release/thirdparty/seastar/libseastar.a(reactor.o): In function `backtrace<current_backtrace()::<lambda(uintptr_t)> >':
/data/ckv_plus_proj/trunk/thirdparty/seastar/./util/backtrace.hh:33: undefined reference to `_Ux86_64_getcontext'
/data/ckv_plus_proj/trunk/thirdparty/seastar/./util/backtrace.hh:38: undefined reference to `_ULx86_64_init_local'
/data/ckv_plus_proj/trunk/thirdparty/seastar/./util/backtrace.hh:42: undefined reference to `_ULx86_64_step'
/data/ckv_plus_proj/trunk/thirdparty/seastar/./util/backtrace.hh:44: undefined reference to `_ULx86_64_get_reg'
what's the problem?
Do you have libunwind-devel installed?
…--
Gleb.
|
root@fea23:/data/ckv_plus_proj/trunk/thirdparty/seastar# ls -al /usr/local/lib/unwind root@fea23:/data/ckv_plus_proj/trunk/thirdparty/seastar# nm /usr/local/lib/libunwind.a|grep _Ux86_64_getcontext
configure_args = --mode release --with libseastar.a --ldflags '-L /usr/local/lib -lunwind' cxxflags = -std=gnu++1y -g -Wall -Werror -Wno-error=deprecated-declarations -fvisibility=hidden -pthread -I. -U_FORTIFY_SOURCE -Ifmt -DBOOST_TEST_DYN_LINK -Wno-overloaded-virtual -DFMT_HEADER_ONLY -DHAVE_XEN -DHAVE_HWLOC -DHAVE_NUMA -DHAVE_LZ4_COMPRESS_DEFAULT reactor.o should include the unwind library
|
what's the difference with the libunwind and libunwind-devel?
libunwind-devel install things you need for development: headers,
manuals, static and unversioned dynamic libraries (.so as opposite
to .so.VERSION).
…--
Gleb.
|
i have solved the problem. |
download the seastar latest version
we compile to get a libseastar.a file
./configure.py --with libseastar.a --mode release
ninja-build
then, we can get a libseastar.a file
call seastar api ,then compile and link, we get errors
build64_release/thirdparty/seastar/libseastar.a(reactor.o): In function
backtrace<current_backtrace()::<lambda(uintptr_t)> >': /data/ckv_plus_proj/trunk/thirdparty/seastar/./util/backtrace.hh:33: undefined reference to
_Ux86_64_getcontext'/data/ckv_plus_proj/trunk/thirdparty/seastar/./util/backtrace.hh:38: undefined reference to
_ULx86_64_init_local' /data/ckv_plus_proj/trunk/thirdparty/seastar/./util/backtrace.hh:42: undefined reference to
_ULx86_64_step'/data/ckv_plus_proj/trunk/thirdparty/seastar/./util/backtrace.hh:44: undefined reference to `_ULx86_64_get_reg'
what's the problem?don't libunwind pack to libseastar.a?
The text was updated successfully, but these errors were encountered: