Skip to content

threads.h: No such file or directory compilation terminated on Windows #245

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

Closed
ekasetiawans opened this issue Sep 2, 2019 · 5 comments
Closed

Comments

@ekasetiawans
Copy link

ekasetiawans commented Sep 2, 2019

hover run -b '@beta'
hover: Using engine from cache
hover: Cleaning the build directory
hover: ⚠ The go-flutter project tries to stay compatible with the beta channel of Flutter.
hover: ⚠     It's advised to use the beta channel. ($ flutter channel beta)
hover: Bundling flutter app
hover: Downloading 'go-flutter' @beta
go: finding github.com/go-flutter-desktop/go-flutter beta
go: finding github.com/go-gl/gl latest
go: finding github.com/go-gl/glfw latest
go: finding gopkg.in/check.v1 latest
# github.com/go-flutter-desktop/go-flutter/embedder
embedder_helper.c:3:21: fatal error: threads.h: No such file or directory
compilation terminated.
hover: Updating go-flutter to @beta version failed: exit status 2
@ekasetiawans ekasetiawans changed the title threads.h: No such file or directory compilation terminated. threads.h: No such file or directory compilation terminated on Windows Sep 2, 2019
@GeertJohan GeertJohan mentioned this issue Sep 2, 2019
@pchampio
Copy link
Member

pchampio commented Sep 2, 2019

Can you run:

$ go env CC
gcc          # in my setup will vary for you
$ gcc --version
gcc (GCC) 9.1.0
Copyright © 2019 Free Software Foundation, Inc.
[...]

@ekasetiawans
Copy link
Author

PS X:\Development\> go env CC
gcc
PS X:\Development\> gcc --version
gcc.exe (tdm64-1) 5.1.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@ekasetiawans
Copy link
Author

I have try update my gcc with latest version of mingw64 but the problem not solved yet.

PS X:\Development> gcc --version
gcc.exe (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

PS X:\Development> hover run -b '@beta'
hover: Using engine from cache
hover: Cleaning the build directory
hover: ⚠ The go-flutter project tries to stay compatible with the beta channel of Flutter.
hover: ⚠     It's advised to use the beta channel. ($ flutter channel beta)
hover: Bundling flutter app
hover: Downloading 'go-flutter' @beta
go: finding github.com/go-flutter-desktop/go-flutter beta
go: finding github.com/go-gl/gl latest
go: finding github.com/go-gl/glfw latest
go: finding gopkg.in/check.v1 latest
# github.com/go-flutter-desktop/go-flutter/embedder
embedder_helper.c:3:10: fatal error: threads.h: No such file or directory
 #include <threads.h>
          ^~~~~~~~~~~
compilation terminated.
hover: Updating go-flutter to @beta version failed: exit status 2

@pchampio
Copy link
Member

pchampio commented Sep 2, 2019

Now that we pushed changes to 'beta', can you re run hover run -b '@beta' on some of your projects

@ekasetiawans
Copy link
Author

It's working now, thanks @Drakirus

pchampio added a commit that referenced this issue Apr 15, 2020
rework of the last atempt: #329
Had to use a new internal package to query thread ID.
pakcage currentthread is compatible with windows (tested on the very old: gcc.exe (tdm64-1) 5.1.0) (#245)
pchampio added a commit that referenced this issue Apr 15, 2020
rework of the last atempt: #329
Had to use a new internal package to query thread ID.
pakcage currentthread is compatible with windows (tested on the very old: gcc.exe (tdm64-1) 5.1.0) (#245)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants