Stream: git-wasmtime

Topic: wasmtime / issue #3168 mingw C api release does not conta...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 09 2021 at 11:45):

madebr opened issue #3168:

The 0.29.0 release does not contain an import library for the shared library.
It should contain a file named lib/libwasmtime.dll.a.

The contents of wasmtime-v0.29.0-x86_64-mingw-c-api.zip are:

wasmtime-v0.29.0-x86_64-mingw-c-api
├── include
   ├── doc-wasm.h
   ├── wasi.h
   ├── wasm.h
   ├── wasmtime
      ├── config.h
      ├── error.h
      ├── extern.h
      ├── func.h
      ├── global.h
      ├── instance.h
      ├── linker.h
      ├── memory.h
      ├── module.h
      ├── store.h
      ├── table.h
      ├── trap.h
      └── val.h
   └── wasmtime.h
├── lib
   ├── libwasmtime.a
   └── wasmtime.dll
├── LICENSE
└── README.md

3 directories, 21 files

view this post on Zulip Wasmtime GitHub notifications bot (Aug 09 2021 at 11:56):

madebr edited issue #3168:

The 0.29.0 release does not contain an import library for the shared library.
It should contain a file named lib/libwasmtime.dll.a.

The contents of wasmtime-v0.29.0-x86_64-mingw-c-api.zip are:

wasmtime-v0.29.0-x86_64-mingw-c-api
├── include
   ├── doc-wasm.h
   ├── wasi.h
   ├── wasm.h
   ├── wasmtime
      ├── config.h
      ├── error.h
      ├── extern.h
      ├── func.h
      ├── global.h
      ├── instance.h
      ├── linker.h
      ├── memory.h
      ├── module.h
      ├── store.h
      ├── table.h
      ├── trap.h
      └── val.h
   └── wasmtime.h
├── lib
   ├── libwasmtime.a
   └── wasmtime.dll
├── LICENSE
└── README.md

3 directories, 21 files

It can be manually generated using

dlltool -D wasmtime.dll -l libwasmtime.dll.a

view this post on Zulip Wasmtime GitHub notifications bot (Aug 09 2021 at 11:57):

madebr edited issue #3168:

The 0.29.0 release does not contain an import library for the shared library.
It should contain a file named lib/libwasmtime.dll.a.

The contents of wasmtime-v0.29.0-x86_64-mingw-c-api.zip are:

wasmtime-v0.29.0-x86_64-mingw-c-api
├── include
   ├── doc-wasm.h
   ├── wasi.h
   ├── wasm.h
   ├── wasmtime
      ├── config.h
      ├── error.h
      ├── extern.h
      ├── func.h
      ├── global.h
      ├── instance.h
      ├── linker.h
      ├── memory.h
      ├── module.h
      ├── store.h
      ├── table.h
      ├── trap.h
      └── val.h
   └── wasmtime.h
├── lib
   ├── libwasmtime.a
   └── wasmtime.dll
├── LICENSE
└── README.md

3 directories, 21 files

view this post on Zulip Wasmtime GitHub notifications bot (Aug 09 2021 at 15:26):

bjorn3 commented on issue #3168:

Rustc doesn't create import libraries afaik. You will need to make them yourself. According to stackoverflow you can use the following commands:

echo LIBRARY WASMTIME > wasmtime.def
echo EXPORTS >> wasmtime.def
for /f "skip=19 tokens=4" %A in ('dumpbin /exports wasmtime.dll') do echo %A >> wasmtime.def
lib /def:wasmtime.def /out:wasmtime.lib

view this post on Zulip Wasmtime GitHub notifications bot (Aug 09 2021 at 15:56):

alexcrichton commented on issue #3168:

Thanks for the report! This was forgotten by accident, and I've submitted https://github.com/bytecodealliance/wasmtime/pull/3170 to fix this.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 09 2021 at 17:08):

pepyakin commented on issue #3168:

Closed by #3170

view this post on Zulip Wasmtime GitHub notifications bot (Aug 09 2021 at 17:08):

pepyakin closed issue #3168:

The 0.29.0 release does not contain an import library for the shared library.
It should contain a file named lib/libwasmtime.dll.a.

The contents of wasmtime-v0.29.0-x86_64-mingw-c-api.zip are:

wasmtime-v0.29.0-x86_64-mingw-c-api
├── include
   ├── doc-wasm.h
   ├── wasi.h
   ├── wasm.h
   ├── wasmtime
      ├── config.h
      ├── error.h
      ├── extern.h
      ├── func.h
      ├── global.h
      ├── instance.h
      ├── linker.h
      ├── memory.h
      ├── module.h
      ├── store.h
      ├── table.h
      ├── trap.h
      └── val.h
   └── wasmtime.h
├── lib
   ├── libwasmtime.a
   └── wasmtime.dll
├── LICENSE
└── README.md

3 directories, 21 files

Last updated: Dec 23 2024 at 13:07 UTC