-
Notifications
You must be signed in to change notification settings - Fork 12.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
wasm-ld should ignore .rlib files in archives #55786
Comments
@llvm/issue-subscribers-lld-wasm |
I believe the behaviour of wasm-ld here matches other linkers. Specifically unknown archive members are ignored unless Here is an example of the native GNU linker giving the same error:
|
Both Response file
|
Stripping out the first |
I think that is working as intended then.. you would see the same error from GNU ld or ELF lld. |
Presumably the point is that |
|
So this is either a bug in rust, PyO3, or Emscripten, not in wasm-ld. That's good news. |
If the problem is that |
I will open a new issue in Emscripten. |
I feel like github is putting words into my mouth with "closed this as completed"... |
Yes, I think they recently changes the "closed" messages .. but I've need seen how to control them |
As per the rust issue rust-lang/rust#80775, if you try to build an empty rust file:
the result is the following error:
Rust libraries contain an index file called
lib.rmeta
. The linker is expected to ignore them. I can work around this with the following patch to the linker:https://github.com/pyodide/pyodide/pull/2378/files#diff-c21c39739d2d98d34e3063aceea3d659b11bc10471c403a0199a5bc01587e58b
Emscripten linker patch
xref Pyodide PR pyodide/pyodide#2378
@sbc100
The text was updated successfully, but these errors were encountered: