Code Monkey home page Code Monkey logo

Comments (5)

c0mm4nd avatar c0mm4nd commented on June 15, 2024 1

@lunfardo314 Dont use obsolete tdm-gcc. MSYS2 environment is a better choice on windows, on which wasmtime works prefectly. And as far as I know, the default gcc toolchains on github actions, circle-ci, travis's windows matric are all based on MSYS2.

Currently the gcc version of MSYS2 has been rolling to 10.1.0. I guess maybe some incompatible details exists between it and your 5.1.0.

from wasmtime-go.

alexcrichton avatar alexcrichton commented on June 15, 2024

Thanks for the report! This can I think come up if MinGW is perhaps at a different version than Wasmtime itself was built with. Do you know what version of gcc you're using in your environment? We're using release built on Github Actions and I'm not entirely sure what gcc version they're using but it's probably somewhat recent.

from wasmtime-go.

lunfardo314 avatar lunfardo314 commented on June 15, 2024

Yes, I think it may be the reason.
gcc -v reports the following:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=C:/TDM-GCC-64/bin/../libexec/gcc/x86_64-w64-mingw32/5.1.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-5.1.0/configure --build=x86_64-w64-mingw32 --enable-targets=all --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-libgomp --enable-lto --enable-graphite --enable-cxx-flags=-DWINPTHREAD_STATIC --disable-build-with-cxx --disable-build-poststage1-with-cxx --enable-libstdcxx-debug --enable-threads=posix --enable-version-specific-runtime-libs --enable-fully-dynamic-string --enable-libstdcxx-threads --enable-libstdcxx-time --with-gnu-ld --disable-werror --disable-nls --disable-win32-registry --prefix=/mingw64tdm --with-local-prefix=/mingw64tdm --with-pkgversion=tdm64-1 --with-bugurl=http://tdm-gcc.tdragon.net/bugs
Thread model: posix
gcc version 5.1.0 (tdm64-1)

from wasmtime-go.

alexcrichton avatar alexcrichton commented on June 15, 2024

Ah yeah that's a pretty old version of gcc, would it be possible to switch to msys2? Does that fix your issue?

If not then the only solution would be to build the wasmtime library yourself on your system I think.

from wasmtime-go.

alexcrichton avatar alexcrichton commented on June 15, 2024

I'm going to close this since it seems like it was a gcc version thing, but if it continues to crop up feel free to reopen.

from wasmtime-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.