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

Unable to build with mingw 10.2.0 #140

Open
sago35 opened this issue Jan 27, 2021 · 6 comments
Open

Unable to build with mingw 10.2.0 #140

sago35 opened this issue Jan 27, 2021 · 6 comments

Comments

@sago35
Copy link
Member

sago35 commented Jan 27, 2021

mingw 10.2.0 has been released on 2021/01/12.
However, the included gcc 10.2 was not able to build tinyg 0.16 and dev branch.
https://chocolatey.org/packages/mingw#versionhistory

I was able to build it by installing 8.1.0.

choco install mingw -Version 8.1.0
  or
choco install mingw -Version 8.1.0 --allow-downgrade

I'm using windows 10, and I'm building according to the following page
https://tinygo.org/getting-started/windows/

@aykevl
Copy link
Member

aykevl commented Jan 27, 2021

What is the error that you are getting with MinGW 10?

@sago35
Copy link
Member Author

sago35 commented Jan 28, 2021

@aykevl
Copy link
Member

aykevl commented Feb 1, 2021

It looks like MinGW 10 doesn't support std::mutex. I'm not sure how to get it supported again, as LLVM relies on an up-to-date and fully supported compiler. Maybe some additional build flag is needed?

@deadprogram
Copy link
Member

This is an error in the latest mingw-w64 package for chocolatey.

See https://chocolatey.org/packages/mingw#comment-5223930374

We should tell people to specifically install 8.1.0

@aykevl
Copy link
Member

aykevl commented Feb 2, 2021

@deadprogram glad we're not the only ones!

Unfortunately we currently depend on MinGW, MSVC is unsupported by the Go toolchain: golang/go#20982

@sago35
Copy link
Member Author

sago35 commented Sep 17, 2022

Now we can build with the version available with choco install mingw.
The following version was installed when I tried it now.
And I was able to build correctly (make llvm-build CCACHE=OFF).

mingw 11.2.0.07112021 (gcc 11.2.0)

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

3 participants