-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Build fails on Mac OS X 10.9.5 #9
Comments
@vielmetti Did you set your |
I have the same issue on linux and i did setup my GOPATH as well |
Different error on OS X Yosemite:
|
Since |
I'm pretty sure it should build on MacOS and FreeBSD. |
Looks like libcontainers hasn't been vendored?
|
Install instructions should probably be:
|
+1 to @AndrewVos who got me closer with his install instructions. Again on Mac OS X 10.9, some progress:
at least that suggests where a change might be made. |
And digging a little deeper, when I patch so that I do
instead of including linux/limits.h, I discover that this all depends on the clone(2) syscall which Darwin does not have. Not sure that there's an easy way around that on OS X without delving way deeper into kernel space that I don't pretend to understand. http://linux.die.net/man/2/clone is a man page. |
Same thing happens on OSX 10.10.3
|
@vielmetti is onto something here.
Once I changed the include to
Going further down the rabbit hole, I added the following:
Which leads me to this error:
Funny that https://github.com/docker/libcontainer does not have the same problem even though the code looks identical. |
On linux (debian jessie), the exact reported error is fixed by using:
I think this is preferred for not using systemwide Go dependencies. |
the above snippet fixed the problem for me. |
Using go get github.com/tools/godep
godep get github.com/opencontainers/runc
cd $GOPATH/src/github.com/opencontainers/runc
make |
@collinanderson fixed it on Mac OS ? from which folder do you run those lines ? |
This was linux. I ran it from the runc git checkout. @ggiamarchi's snippet looks promising too. |
unfortunately @ggiamarchi's snippet fails in mac (Mac OS 10.10.2)
|
Using |
even in Linux, for runc and libcontainers to be compiled vendor list need to be pulled. |
I wouldn't expect it to build on Mac because the spec won't exist there. |
The documentation should be updated and this issue closed - it makes no sense to build this on OS X (yet). |
Should compile now without errors but changes needed to be added for each system so it actually works. main_unsupported.go is a new file with all the unsupported commands Fixes opencontainers#9 Signed-off-by: Marianna <mtesselh@gmail.com>
Signed-off-by: Mark Sta Ana <booyaabooyaabooyaa@gmail.com>
Add caveat will only build on Linux as per #9
…-path-in-rich-containers-mode-v1 support relative path in rich container mode
…ixes Backport of cgroups fixes
[17.06 backport] remove hot-fix, and apply latest upstream patch for CVE-2019-5736
The text was updated successfully, but these errors were encountered: