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

unexpected end-of-file (at offset 0x1e18f7) #842

Closed
JensGM opened this issue Nov 28, 2022 · 3 comments
Closed

unexpected end-of-file (at offset 0x1e18f7) #842

JensGM opened this issue Nov 28, 2022 · 3 comments

Comments

@JensGM
Copy link

JensGM commented Nov 28, 2022

Hey,

When running wasm-tools component new -o out.wasm in.wasm, I'm struggling to generate bindings on other platforms than mac. On mac it's fine, but on both linux and windows I get:

Error: failed to parse the input component

Caused by:
    unexpected end-of-file (at offset 0x1e18f7)
@alexcrichton
Copy link
Member

Thanks for the report but this is likely due to a recent change in the binary format. Can you confirm that the platforms you're testing all have the same version of wasm-tools and/or the producer toolchain?

@JensGM
Copy link
Author

JensGM commented Nov 28, 2022

Hey, I managed to resolve it by removing a pinned version for wasm-tools, it likely just worked by luck on mac. Closing this issue. After updating I do however fail to generate bindings for python using python3 -m wasmtime.bindgen with an error:

RuntimeError: failed to extract interface information from component

Caused by:
    invalid leading byte (0x3) for component external kind (at offset 0x1e0d4f)

Is this due to the format change? (newest wasmtime for python)

@JensGM JensGM closed this as completed Nov 28, 2022
@alexcrichton
Copy link
Member

Yes that looks due to a format change, you'll want to make sure everything is up-to-date and at the latest version.

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