-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[WIP] Bump Go to 1.11.0 #1316
[WIP] Bump Go to 1.11.0 #1316
Conversation
Interesting;
|
Release notes: https://golang.org/doc/go1.11 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
cdda991
to
8f856d4
Compare
Alright; found some similar issues here; godotengine/godot#17888, and here karalabe/xgo#44. The last one actually was using the SDK from dockerproject.org, but looks like they're patching it; karalabe/xgo@647f256 Could use some help on this one 😓 |
I've checked the difference between these two images
and the only changes are in /usr/local/go... |
Summary of my findings so far (to be continued) OK the error message is
Meaning it happens while compiling crypto/x509, which is a standard go pkg. Looking at the --- a/src/crypto/x509/root_cgo_darwin.go
+++ b/src/crypto/x509/root_cgo_darwin.go
@@ -7,7 +7,7 @@
package x509
/*
-#cgo CFLAGS: -mmacosx-version-min=10.6 -D__MAC_OS_X_VERSION_MAX_ALLOWED=1080
+#cgo CFLAGS: -mmacosx-version-min=10.10 -D__MAC_OS_X_VERSION_MAX_ALLOWED=101300
#cgo LDFLAGS: -framework CoreFoundation -framework Security
#include <errno.h> which probably means it requires at least 10.10 now. Same is mentioned in Go 1.11 release notes:
** Maybe it makes sense to raise In addition, https://github.com/tpoechtrager/osxcross/blob/master/README.md says:
This is probably the root cause of the failure (as we don't supply libc++ headers in our image, and the version switch from 10.6 to 10.11 made it use libc++ rather than libstdc++). |
The tarball used for building golang-cross, I had luck using a similar tarball from the https://github.com/multiarch/crossbuild project, but that one lacks Guess I need to build my own kosher tarball that has it all |
The process is described at https://github.com/tpoechtrager/osxcross#packaging-the-sdk and seems more or less straightforward. In addition, one would need to pack ltdl library binaries for Mac -- and this is where I'm a bit stuck... Hmm, could it be that it's also part of xcode? Well, I can't check that since downloading XCode requires apple developer ID. Perhaps someone who has it can take a look? I'm more than happy to help |
OK, I made a Frankenstein macosx tarball from the two that I had, and it works but gives a (legit) warning about libtool:
So, I need someone's help with that, as I don't have Mac, nor an Apple developer ID |
Alternatively, we can build docker-cli for mac without PKCS11 support... |
OK, I think I found a way. I believe I'll have a successful build at #1426. The changes in there need to be migrated back to |
This one should be closed in favor of #1426 |
Ah, yes 👍 |
Release notes: https://golang.org/doc/go1.11
this PR is created on top of #1315, which should go in first