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 Windows 7 64bit #8

Open
FilBot3 opened this issue Nov 18, 2016 · 3 comments
Open

Unable to build on Windows 7 64bit #8

FilBot3 opened this issue Nov 18, 2016 · 3 comments

Comments

@FilBot3
Copy link

FilBot3 commented Nov 18, 2016

I'm running Windows 7 64bit, with GO 1.7.3, and CentOS with GO 1.7.3, but I cannot build zabbixctl for Windows, only on the CentOS system. I did add MinGW to my path to expose the gcc compilers and other libraries, however, it seems there is something that isn't Windows compatible. First output is Windows without and with MinGW in my path. Second output is the CentOS output.

C:\Users\PD028300
λ go get github.com/kovetskiy/zabbixctl
# github.com/kovetskiy/spinner-go
Documents\GitHub\GO\src\github.com\kovetskiy\spinner-go\spinner.go:161: undefined: syscall.SYS_IOCTL
Documents\GitHub\GO\src\github.com\kovetskiy\spinner-go\spinner.go:163: undefined: syscall.TIOCGWINSZ
Documents\GitHub\GO\src\github.com\kovetskiy\spinner-go\spinner.go:165: not enough arguments in call to syscall.Syscall
# github.com/simplereach/timeutils
exec: "gcc": executable file not found in %PATH%

C:\Users\PD028300
λ cat C:\cmder\bin\mingw_cmd.cmd
@echo off

set PATH=%PATH%;C:\MinGW\bin;C:\MinGW\msys\1.0\bin;

C:\Users\PD028300
λ mingw_cmd.cmd

C:\Users\PD028300
λ go get github.com/kovetskiy/zabbixctl
# github.com/kovetskiy/spinner-go
Documents\GitHub\GO\src\github.com\kovetskiy\spinner-go\spinner.go:161: undefined: syscall.SYS_IOCTL
Documents\GitHub\GO\src\github.com\kovetskiy\spinner-go\spinner.go:163: undefined: syscall.TIOCGWINSZ
Documents\GitHub\GO\src\github.com\kovetskiy\spinner-go\spinner.go:165: not enough arguments in call to syscall.Syscall
# github.com/simplereach/timeutils
:0: sorry, unimplemented: 64-bit mode not compiled in
In file included from Documents\GitHub\GO\src\github.com\simplereach\timeutils\parse.go:3:
approxidate.h:15:7: warning: no newline at end of file

CentOS:

[pd028300@centos7-docker zabbixctl]$ GOOS=windows GOARCH=386 go build -o zabbixctl.exe main.go 
# github.com/kovetskiy/spinner-go
../spinner-go/spinner.go:161: undefined: syscall.SYS_IOCTL
../spinner-go/spinner.go:163: undefined: syscall.TIOCGWINSZ
../spinner-go/spinner.go:165: not enough arguments in call to syscall.Syscall
@kovetskiy
Copy link
Owner

Oh, strange. I will fix spinner-go, but your gcc troubles on Windows it is not about zabbixctl, and I can't help you here because I don't have a machine with windows.

# github.com/simplereach/timeutils
exec: "gcc": executable file not found in %PATH%

But how I can guess, you just need to install C compiler (gcc) for Windows.

@FilBot3
Copy link
Author

FilBot3 commented Nov 18, 2016

Yeah, I saw that, and appended MinGW with gcc to my path, and that's when the second error came up/

@mjtrangoni
Copy link
Contributor

@predatorian3 This should be working now as part of #23.
There are some small issues that I will be fixing like '-h' not working, and adding more time formats.

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