-
Notifications
You must be signed in to change notification settings - Fork 108
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
refreshAll failed to find C++ standard library if I specify '--sysroot' #174
Comments
Hi Dante! Thanks for giving the tool a go. Sorry we got you snagged on this rough edge. Here's my analysis:
@dantesun, could I ask you to try the following two things (without any sysroot workarounds you'd added to satisfy the tool):
If those don't work, please tag kon72 and ask him if he know's what's up. He might be able to help better, since having last touched that code and worked on emscripten support. Cheers, |
@cpsauer Thanks for your quick response. I tried the two things you said but unfortunately my problem still exists. @kon72 Could you take a look at this issue, thanks. I am using bazel 5.4.0. BUILD
WORKSPACE
I got errors when running
WASM_SDK
|
@cpsauer I can't find EM_BIN_PATH declared in emscripten_toolchain 2.0.7 which my proxy_wasm_cpp_sdk dependes on. |
Hello @dantesun, Thanks for providing the information. That helps me a lot to figure out the issue. When I implemented the emscripten support, I expected your projects to use emsdk's official Bazel toolchain, so this tool is relying on sysroot flag that is supposed to be set inside that toolchain in order to make up the environment variable that is necessary to invoke emcc.sh wrapper script. I think we have two options to resolve this issue:
|
(Thanks so much, Kon!) |
I am working on istio wasm-cpp extensions project. And I am using the following bazel configuration:
When I run
bazel run @hedron_compile_commands//:refresh_all
, I got the error:I found that I have to specify the 'sysroot' to Bazel C++ compiler options, so I downloaed the Clang SDK from
https://github.com/llvm/llvm-project/releases/download/llvmorg-17.0.5/clang+llvm-17.0.5-x86_64-linux-gnu-ubuntu-22.04.tar.xz
, unpacked into/home/dsun/apps/clang
. Then I specify the 'sysroot' inbazel.rc
Then I ran
bazel run @hedron_compile_commands//:refresh_all
again and I got the following error:I got stuck and have no idea how to solve this. Please help.
The text was updated successfully, but these errors were encountered: