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

*: issue building NSQ for windows/amd64 #1203

Closed
smalhotra-spirent opened this issue Oct 25, 2019 · 1 comment · Fixed by #1205
Closed

*: issue building NSQ for windows/amd64 #1203

smalhotra-spirent opened this issue Oct 25, 2019 · 1 comment · Fixed by #1205
Labels

Comments

@smalhotra-spirent
Copy link

I'm seeing the following errors (on Linux/Mac/Windows machines) when I try to build NSQ for Windows:

Steps followed:

$ git clone https://github.com/nsqio/nsq $GOPATH/src/github.com/nsqio/nsq
$ cd $GOPATH/src/github.com/nsqio/nsq
$ dep ensure
$ GOOS=windows GOARCH=amd64 make

Build errors:

$ GOOS=windows GOARCH=amd64 make
go build  -o build/nsqd ./apps/nsqd
# github.com/nsqio/nsq/internal/dirlock
internal/dirlock/dirlock.go:28:8: undefined: syscall.Flock
internal/dirlock/dirlock.go:28:35: undefined: syscall.LOCK_EX
internal/dirlock/dirlock.go:28:51: undefined: syscall.LOCK_NB
internal/dirlock/dirlock.go:37:9: undefined: syscall.Flock
internal/dirlock/dirlock.go:37:38: undefined: syscall.LOCK_UN
internal/dirlock/dirlock_windows.go:5:6: DirLock redeclared in this block
	previous declaration at internal/dirlock/dirlock.go:11:6
internal/dirlock/dirlock_windows.go:9:6: New redeclared in this block
	previous declaration at internal/dirlock/dirlock.go:16:23
internal/dirlock/dirlock_windows.go:15:19: (*DirLock).Lock redeclared in this block
	previous declaration at internal/dirlock/dirlock.go:22:6
internal/dirlock/dirlock_windows.go:19:19: (*DirLock).Unlock redeclared in this block
	previous declaration at internal/dirlock/dirlock.go:35:6
make: *** [build/nsqd] Error 2

I tried the same steps on a native Windows machine, but still no success.

@ploxiln
Copy link
Member

ploxiln commented Oct 25, 2019

caused by #1195
(for now you can try the last stable tag, or a commit just before #1195 was merged)

@ploxiln ploxiln added the bug label Oct 25, 2019
@mreiferson mreiferson changed the title Issues while building NSQ for windows/amd64 *: issue building NSQ for windows/amd64 Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants