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

failure on windows build (undefined: unix.Signal) #65

Closed
thehajime opened this issue Sep 12, 2020 · 4 comments · Fixed by #66
Closed

failure on windows build (undefined: unix.Signal) #65

thehajime opened this issue Sep 12, 2020 · 4 comments · Fixed by #66

Comments

@thehajime
Copy link
Contributor

Regression of #61 ?

I'm trying to bump the version of go-runc at containerd (as a part of containerd/containerd#4526, related to #64), but run into a failure on windows build due to the change in this PR.

The error detail:

https://github.com/ukontainer/containerd/runs/1104376893?check_suite_focus=true#step:7:16

+ export CGO_ENABLED=1
+ CGO_ENABLED=1
+ cd src/github.com/containerd/containerd
+ mingw32-make.exe binaries
+ bin/ctr.exe
+ bin/containerd.exe
# github.com/containerd/containerd/vendor/github.com/containerd/go-runc
##[error]vendor\github.com\containerd\go-runc\runc.go:66:16: undefined: unix.Signal
##[error]mingw32-make: *** [Makefile.windows:28: bin/containerd.exe] Error 2
##[error]Process completed with exit code 2.
@thehajime
Copy link
Contributor Author

@KentaTada ping ?

@KentaTada
Copy link
Contributor

@thehajime
IANAM and I'm not familiar with your work.
I think the RCA in this issue was due to building runc.go for Windows although Pdeathsig is only supported for Linux.
So the fix of this issue is not to change the type of Pdeathsig but to modify supported platform of runc.go.

@thehajime
Copy link
Contributor Author

@KentaTada Thanks for the message.

Let me explain a bit of context of this issue.

As I described in the message above, I was trying to bump up the version of go-runc at containerd/containerd#4526 in order to reflect my patch (#64), but the containerd/containerd uses slightly old version of go-runc (7016d3c).

So, my patch is not directly involved with the changed in #61, just faced a build failure when pulling the go-runc into the latest containerd.

Why is the patches #61 not pulled in containerd even the associated patches (containerd/containerd#4317) are in?

@KentaTada
Copy link
Contributor

@thehajime
As I've already said above, I think we need to modify the incorrect "type Runc struct" because it includes Linux-specific member like PdeathSignal. It should not be used for Windows build.

But I have no concrete idea how to modify it now. Should runc.go be separated for each platform? It should be discussed and fixed at first.

thehajime added a commit to thehajime/go-runc that referenced this issue Sep 29, 2020
This commit fixes the following build failure.

+ mingw32-make.exe binaries
+ bin/ctr.exe
+ bin/containerd.exe
unix.Signal
Error 2

Fixes containerd#65.
Fixes: 421b4ca ("Change the type of PdeathSignal")

Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
thehajime added a commit to thehajime/go-runc that referenced this issue Sep 29, 2020
This commit fixes the following build failure.

+ mingw32-make.exe binaries
+ bin/ctr.exe
+ bin/containerd.exe
github.com/containerd/containerd/vendor/github.com/containerd/go-runc
[error]vendor\github.com\containerd\go-runc\runc.go:66:16: undefined: unix.Signal
[error]mingw32-make: *** [Makefile.windows:28: bin/containerd.exe] Error 2
[error]Process completed with exit code 2.

Fixes containerd#65.
Fixes: 421b4ca ("Change the type of PdeathSignal")

Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
thehajime added a commit to thehajime/go-runc that referenced this issue Sep 29, 2020
This commit fixes the following build failure.

+ mingw32-make.exe binaries
+ bin/ctr.exe
+ bin/containerd.exe
github.com/containerd/containerd/vendor/github.com/containerd/go-runc
[error]vendor\github.com\containerd\go-runc\runc.go:66:16: undefined: unix.Signal
[error]mingw32-make: *** [Makefile.windows:28: bin/containerd.exe] Error 2
[error]Process completed with exit code 2.

Fixes containerd#65.
Fixes: 421b4ca ("Change the type of PdeathSignal")

Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
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

Successfully merging a pull request may close this issue.

2 participants