-
Notifications
You must be signed in to change notification settings - Fork 32
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
Update darwin sdk and version #87
Update darwin sdk and version #87
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Trends 🧪 |
jenkins run tests |
fc4cdbf
to
79087d7
Compare
Currently the darwin build will fail; if the build debug flag is enabled and output is not piped to null we can see:
|
@michel-laterman This is from the container? |
Yes, there are currently 2 issues
|
@urso What do you think about updating to a more recent version of debian? IIRC Debian 9 doesn't get any security updates anymore. @michel-laterman with Debian10 do the two problems get resolved? |
@andrewkroh would be good to have you comment on this. |
@ph after recompressing (from bz2 to xz) a 10.14 SDK that another user has made (https://github.com/joseluisq/macosx-sdks/releases/tag/10.14) I was able to get osxcross compiling on debian10. It seems that the releases that https://github.com/phracker/MacOSX-SDKs provides are broken for earler SDKs |
GO 1.14 is EOL, and 1.15 will soon be EOL as well. This is why we switch to 1.16. I think we can remove 1.14 already.
For cross compiling to MacOS/Windows, the actual debian version should not matter. For compiling on linux it matters unfortunately, and we need to keep debian7 in order to ensure our binaries continue to function with CentOS/RH7.
We are moving here from MacOS 10.12 to 10.14. As MacOS 10.13 is EOL since December 2020 I think this is fine. We still want to report this as a breaking change in the next Beats release. Cross compilation can be kinda painful. Plus we have to jump through some hoops in order to sign our binaries. For the future we might consider to switch to native build environments. @v1v WDYT? |
we have removed 1.14 a couple of days ago, we only build 1.15 and 1.16
it also runs tests on CentOS 6
We can switch now to build on native environments for x86, ARM, and MacOS. We have workers for those architectures. However, this requires changes on the build system, some of the package parts must be replaced. |
Update your PR with the changes on the master I have fixed all the stuff broken last week in the systemd dependencies. I seems like the new SDK does not work on old Libcs, it is fine we can use that new SDK only on Debian 10 and the old in the other versions of the cross-compiler Docker images. Then on the package build, we should choose the right Docker image depending on our target, on MacOS we do not have the issue related to libc compatibility is other OS. |
go1.16/darwin/Dockerfile.tmpl
Outdated
ARG OSXCROSS_SDK_URL=https://s3.amazonaws.com/beats-files/deps/MacOSX10.13.sdk.tar.xz | ||
ARG OSXCROSS_PATH=/usr/osxcross | ||
ARG OSXCROSS_REV=3034f7149716d815bc473d0a7b35d17e4cf175aa | ||
ARG SDK_VERSION=10.11 | ||
ARG DARWIN_VERSION=15 | ||
ARG OSX_VERSION_MIN=10.10 | ||
ARG OSXCROSS_REV=8a716a43a72dab1db9630d7824ee0af3730cb8f9 | ||
ARG SDK_VERSION=10.13 | ||
ARG DARWIN_VERSION=17 | ||
ARG OSX_VERSION_MIN=10.12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{if eq .DEBIAN_VERSION "10"}}
ARG OSXCROSS_SDK_URL=https://s3.amazonaws.com/beats-files/deps/MacOSX10.13.sdk.tar.xz
ARG OSXCROSS_PATH=/usr/osxcross
ARG OSXCROSS_REV=8a716a43a72dab1db9630d7824ee0af3730cb8f9
ARG SDK_VERSION=10.13
ARG DARWIN_VERSION=17
ARG OSX_VERSION_MIN=10.12
{{ else }}
ARG OSXCROSS_SDK_URL=https://s3.amazonaws.com/beats-files/deps/MacOSX10.11.sdk.tar.xz
ARG OSXCROSS_PATH=/usr/osxcross
ARG OSXCROSS_REV=3034f7149716d815bc473d0a7b35d17e4cf175aa
ARG SDK_VERSION=10.11
ARG DARWIN_VERSION=15
ARG OSX_VERSION_MIN=10.10
{{ end }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this resolve the issue we will have the SDK 10.11 on Debian 7/8/9 and the SDK 10.13 on Debian 10
…sbuild into macos-update
fix: use GCP bucket
now the SDK is downloaded and the osxcross compiled, but the
|
ready to go |
…sbuild into macos-update
``` | ||
|
||
The SDK should be in the working directory. | ||
The tmp dir can be safely deleted after this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think the upload to the bucket should be also added in this section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
Update MacOS version + sdk to 10.13 and the corresponding Darwin version to 17.