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

Can't build gitea on Windows (undefined: syscall.Kill) #8544

Closed
2 of 7 tasks
lukbukkit opened this issue Oct 16, 2019 · 2 comments · Fixed by #8537
Closed
2 of 7 tasks

Can't build gitea on Windows (undefined: syscall.Kill) #8544

lukbukkit opened this issue Oct 16, 2019 · 2 comments · Fixed by #8537

Comments

@lukbukkit
Copy link
Contributor

lukbukkit commented Oct 16, 2019

  • Gitea version (or commit ref): 167e8f1
  • Git version: git version 2.23.0.windows.1
  • Go version: go version go1.13.1 windows/amd64
  • Operating system: Windows 10 1903
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

When trying to build Gitea under Windows 10 I get this error:

I guess the error is caused by the fact that the methods of the Go package syscall are platform dependent. See syscall_windows.go, there is no Kill method. The code which breaks my build was introduced with #7274.

# code.gitea.io/gitea/modules/graceful
modules\graceful\server.go:112:7: undefined: syscall.Kill
modules\graceful\server.go:158:7: undefined: syscall.Kill
modules\graceful\server_signals.go:22:3: undefined: syscall.SIGUSR1
modules\graceful\server_signals.go:23:3: undefined: syscall.SIGUSR2
modules\graceful\server_signals.go:26:3: undefined: syscall.SIGTSTP
modules\graceful\server_signals.go:57:8: undefined: syscall.SIGUSR1
modules\graceful\server_signals.go:59:8: undefined: syscall.SIGUSR2
modules\graceful\server_signals.go:68:8: undefined: syscall.SIGTSTP

The build works fine with the commit 4a290bd.

@zeripath
Copy link
Contributor

Fixed by #8537

@lukbukkit
Copy link
Contributor Author

Thanks a lot!

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants