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

Support (LLVM) libc++ on other platforms such as linux #3

Open
theoparis opened this issue Jul 28, 2024 · 2 comments
Open

Support (LLVM) libc++ on other platforms such as linux #3

theoparis opened this issue Jul 28, 2024 · 2 comments

Comments

@theoparis
Copy link

theoparis commented Jul 28, 2024

See https://github.com/mlua-rs/luau-src-rs/blob/main/src/lib.rs#L243
LLVM libc++ is currently only supported on apple platforms.

I get a bunch of linking errors due to this:

  ld.lld: error: undefined symbol: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::append(char const*)
          >>> referenced by string:1361 (/home/theo/src/llvm-builds/install/bin/../include/c++/v1/string:1361)
          >>>               93bf4816e2ff97ae-Compiler.o:(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::operator+=[abi:ne200000](char const*)) in archive /home/theo/src/car-thing-tools/target/debug/deps/libmlua_sys-905d254762e6b864.rlib


@khvzak
Copy link
Member

khvzak commented Aug 29, 2024

Could you try the latest release (0.640), or if it does not work, steps how to reproduce the issue?

@theoparis
Copy link
Author

Hmm it did work but I had to add -Clink-arg=-lc++abi to RUSTFLAGS for some reason.

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