Skip to content

AOT LLVM - Issue migrating from 8 to 9 (bad wasm file version: 0x1000d (expected 0x1)) #2685

Closed as not planned
@sardonic1

Description

@sardonic1

I have a wasi-wasm project compiling a WASM successfully under the 8.x compiler, validated by wabt, and running in a Chicory runtime. E.g.

<PackageReference Include="Microsoft.DotNet.ILCompiler.LLVM" Version="8.0.0-*" />
<PackageReference Include="runtime.win-x64.Microsoft.DotNet.ILCompiler.LLVM" Version="8.0.0-*" />

However, when I try to switch to the 9.x compiler e.g.

<PackageReference Include="Microsoft.DotNet.ILCompiler.LLVM" Version="9.0.0-*" />
<PackageReference Include="runtime.$(NETCoreSdkPortableRuntimeIdentifier).Microsoft.DotNet.ILCompiler.LLVM" Version="9.0.0-*" />

A WASM is output with the WASM magic number, but a version of 0x1000d as reported by wabt wasm_validate. Is this by design? Has the 9.x compiler moved beyond and no longer supporting version 1 or is there some silent failure munging the output wasm bytes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-NativeAOT-LLVMLLVM generation for Native AOT compilation (including Web Assembly)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions