[kata-dev] importing kata-container runtime to Goland

Whaley, Graham graham.whaley at intel.com
Fri Nov 22 18:25:47 UTC 2019


I wonder if Rico is on the mailing list – I think Rico was the only one trying to support kata on mac before… let me hit slack and ask at least..

G

From: Ted Yu [mailto:yuzhihong at gmail.com]
Sent: Friday, November 22, 2019 6:18 PM
To: Hunt, James O <james.o.hunt at intel.com>
Cc: kata-dev <kata-dev at lists.katacontainers.io>
Subject: Re: [kata-dev] importing kata-container runtime to Goland

Thanks for the reply.

When I execute make, I see the following:

../../go-workspace/pkg/mod/github.com/opencontainers/runc at v0.0.0-20170926091510-0351df1c5a66/libcontainer/utils/utils_unix.go:39:62<http://github.com/opencontainers/runc@v0.0.0-20170926091510-0351df1c5a66/libcontainer/utils/utils_unix.go:39:62>: undefined: unix.SOCK_CLOEXEC
# github.com/kata-containers/runtime/pkg/signals<http://github.com/kata-containers/runtime/pkg/signals>
../../go-workspace/pkg/mod/github.com/kata-containers/runtime at v0.0.0-20191122173334-fea166d8ebb8/pkg/signals/signals.go:35:2<http://github.com/kata-containers/runtime@v0.0.0-20191122173334-fea166d8ebb8/pkg/signals/signals.go:35:2>: undefined: syscall.SIGSTKFLT
# github.com/containerd/cgroups<http://github.com/containerd/cgroups>
../../go-workspace/pkg/mod/github.com/containerd/cgroups at v0.0.0-20190717030353-c4b9ac5c7601/memory.go:179:33<http://github.com/containerd/cgroups@v0.0.0-20190717030353-c4b9ac5c7601/memory.go:179:33>: undefined: unix.SYS_EVENTFD2
../../go-workspace/pkg/mod/github.com/containerd/cgroups at v0.0.0-20190717030353-c4b9ac5c7601/memory.go:179:55<http://github.com/containerd/cgroups@v0.0.0-20190717030353-c4b9ac5c7601/memory.go:179:55>: undefined: unix.EFD_CLOEXEC
make: *** [/Users/yute/t-k-runtime/kata-runtime] Error 2

I use MacOS. From what I saw from web search, the build is not supported on MacOS.

If someone managed to install on Mac, please let me know.

On Fri, Nov 22, 2019 at 10:03 AM Hunt, James O <james.o.hunt at intel.com<mailto:james.o.hunt at intel.com>> wrote:
Hi Ted,

Welcome to the list. Have you followed the instructions in the Developer Guide [1]? If that doesn't work, please raise a GitHub issue with more details of your environment.

Cheers,

James

[1] - https://github.com/kata-containers/documentation/blob/master/Developer-Guide.md#build-and-install-the-kata-containers-runtime

Le ven. 22 nov. 2019 à 17:55, Ted Yu <yuzhihong at gmail.com<mailto:yuzhihong at gmail.com>> a écrit :
Hi,
When I import kata-container runtime to Goland, there were unrecognized imports. e.g.

opentracing "github.com/opentracing/opentracing-go<http://github.com/opentracing/opentracing-go>"
"github.com/pkg/errors<http://github.com/pkg/errors>"
"github.com/sirupsen/logrus<http://github.com/sirupsen/logrus>"

I have enabled Go Modules preference.

If someone uses Goland for development, please share your setup.

Thanks
_______________________________________________
kata-dev mailing list
kata-dev at lists.katacontainers.io<mailto:kata-dev at lists.katacontainers.io>
http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev


--
James
---
https://katacontainers.io/ | https://github.com/kata-containers<https://github.com/clearcontainers>
Open Source Technology Center
Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ.
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.katacontainers.io/pipermail/kata-dev/attachments/20191122/b87eca56/attachment.html>


More information about the kata-dev mailing list