-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
"recursive" Dependency Causes "section too large" Error When Compiling for wasm #13513
Comments
I have try to reproduce the bug by either build wasmtest or build Can you provide more information? (cargo and rustc version...) |
This obviously doesn't resolve the issue, but rustwasm/wasm-pack#1381 (comment) fixed it for me |
I have applied the @blaginin suggestion:
@Eason0729 these are my cargo and rust versions
When I build with: However, in the release mode:
I don't know why this still refers to Xcode path. Since wasm-pack build goes with release flag, we need to solve this (assuming I am not the only one) |
It compiles under 1.82.0 and 1.83.0(didn't use LLVM 15), I think it's LLVM version related. In addition, I may need some help on how to use specific version of LLVM?
|
@berkaysynnada, is this sill an issue? rustwasm/wasm-pack#1381 (comment) seems to work for me too.
|
That worked for me now (and passed the tests). Perhaps I should have tried with cargo clean 😞 |
I'm still getting this issue. Mac M4 with Sequoia 15.2.
|
This should works on Mac, but I didn't have one to test. We should try figuring out the reason. If we couldn't, maybe just make |
Describe the bug
I am encountering a problem when trying to compile wasmtest with the following command:
RUSTFLAGS="-C link-arg=--max-memory=4294967296" cargo build --release --target wasm32-unknown-unknown
The build fails with the following error:
I suspect the issue is related to the psm dependency, and it is coming with
recursive
crate, which was introduced in #13310. I am unsure if this error can be resolved without removing or replacing this dependency.To Reproduce
Go in
datafusion/wasmtest
andrun cargo build --target wasm32-unknown-unknown
Expected behavior
It needs to compile
Additional context
I tried again after removing
recursive
dep, and it works successfullyThe text was updated successfully, but these errors were encountered: