Skip to content
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

symbol lookup error on the default rust example #185

Open
mpizenberg opened this issue May 23, 2021 · 2 comments
Open

symbol lookup error on the default rust example #185

mpizenberg opened this issue May 23, 2021 · 2 comments

Comments

@mpizenberg
Copy link

I've just tried to use coz for some rust programs but I don't know how to run it correctly. When I try the default example toy provided in the rust/ directory I'm getting the following error:

$> coz run --- target/release/examples/toy
[/home/matthieu/git/plasma-umass/coz/libcoz/libcoz.cpp:100] bootstrapping coz
[/home/matthieu/git/plasma-umass/coz/libcoz/libcoz.cpp:128] Including MAIN, which is /home/matthieu/git/plasma-umass/coz/rust/target/release/examples/toy
target/release/examples/toy: symbol lookup error: /usr/local/bin/../lib/libcoz.so: undefined symbol: _ZNK3elf3elf11get_sectionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

My OS is archlinux, kernel 5.12.6, gcc 10.2.0, clang 11.1.0

Any idea how to fix this problem?

@mpizenberg
Copy link
Author

It seems that running

conan profile update settings.compiler.libcxx=libstdc++11 default

then clearing the build and rebuilding made it work.

@elftech
Copy link

elftech commented Jan 25, 2022

any way to workaroud for building without conan??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants