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 on Win10 / mingw #37

Open
bdangit opened this issue Sep 15, 2017 · 1 comment
Open

unable to build on Win10 / mingw #37

bdangit opened this issue Sep 15, 2017 · 1 comment

Comments

@bdangit
Copy link

bdangit commented Sep 15, 2017

Hi, I'm unable to build this project in Win10 / mingw.

I have the following installed:

  • golang 1.9.0
  • mingw 5.3.0
[terraform-provider-vix] [master ≡] > mingw32-make.exe
go build
# github.com/hooklift/terraform-provider-vix/vendor/github.com/hooklift/govix
In file included from C:/tools/mingw64/x86_64-w64-mingw32/include/stdlib.h:9:0,
                 from ./helper.h:6,
                 from ..\..\go\src\github.com\hooklift\terraform-provider-vix\vendor\github.com\hooklift\govix\guest.go:8:
C:/tools/mingw64/x86_64-w64-mingw32/include/crtdefs.h:35:44: error: conflicting types for 'size_t'
 __MINGW_EXTENSION typedef unsigned __int64 size_t;
                                            ^
In file included from C:/Users/woof/Work/terraform-provider-vix/vendor/libvix/include/vix.h:26:0,
                 from ..\..\go\src\github.com\hooklift\terraform-provider-vix\vendor\github.com\hooklift\govix\guest.go:7:
C:/Users/woof/Work/terraform-provider-vix/vendor/libvix/include/vm_basic_types.h:811:29: note: previous declaration of 'size_t' was here
              typedef uint64 size_t;
                             ^
In file included from C:/tools/mingw64/x86_64-w64-mingw32/include/stdlib.h:9:0,
                 from ./helper.h:6,
                 from ..\..\go\src\github.com\hooklift\terraform-provider-vix\vendor\github.com\hooklift\govix\guest.go:8:
C:/tools/mingw64/x86_64-w64-mingw32/include/crtdefs.h:45:35: error: conflicting types for 'ssize_t'
 __MINGW_EXTENSION typedef __int64 ssize_t;
                                   ^
In file included from C:/Users/woof/Work/terraform-provider-vix/vendor/libvix/include/vix.h:26:0,
                 from ..\..\go\src\github.com\hooklift\terraform-provider-vix\vendor\github.com\hooklift\govix\guest.go:7:
C:/Users/woof/Work/terraform-provider-vix/vendor/libvix/include/vm_basic_types.h:830:28: note: previous declaration of 'ssize_t' was here
              typedef int64 ssize_t;
                            ^
In file included from C:/tools/mingw64/x86_64-w64-mingw32/include/stdlib.h:9:0,
                 from ./helper.h:6,
                 from ..\..\go\src\github.com\hooklift\terraform-provider-vix\vendor\github.com\hooklift\govix\guest.go:8:
C:/tools/mingw64/x86_64-w64-mingw32/include/crtdefs.h:75:44: error: conflicting types for 'uintptr_t'
 __MINGW_EXTENSION typedef unsigned __int64 uintptr_t;
                                            ^
In file included from C:/Users/woof/Work/terraform-provider-vix/vendor/libvix/include/vix.h:26:0,
                 from ..\..\go\src\github.com\hooklift\terraform-provider-vix\vendor\github.com\hooklift\govix\guest.go:7:
C:/Users/woof/Work/terraform-provider-vix/vendor/libvix/include/vm_basic_types.h:216:19: note: previous declaration of 'uintptr_t' was here
 typedef uint64    uintptr_t;
                   ^
Makefile:11: recipe for target 'build' failed
mingw32-make: *** [build] Error 2

Any help is greatly apperciated!

@arizvisa
Copy link
Contributor

probably try with msys instead of mingw32 or mingw64.

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

2 participants