-
Notifications
You must be signed in to change notification settings - Fork 107
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
Add lld linker to the centos, alpine and crossbuild images #446
Conversation
@@ -20,6 +20,7 @@ RUN apk add --no-cache \ | |||
libtool \ | |||
libunwind-dev \ | |||
linux-headers \ | |||
lld \ |
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.
Alpine 3.9 is EOL and will be deleted soon: https://github.com/dotnet/dotnet-buildtools-prereqs-docker/issues/442
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.
We still use it to build runtime for Alpine and we don't have equivalent one for 3.10 yet. Would you like me to add the 3.10 one in this PR?
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.
I mean the 3.11, as the 3.10 is EOL too.
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.
Alpine 3.11 is EOL in Nov 2021 so we'll just have to do it all over again then. It'd be preferable to just jump to the latest, Alpine 3.13 to buy us an extra year.
Looks like the build is failing when executing src/ubuntu/18.04/cross/arm64-alpine/hooks/pre-build
|
The CentOS 7 build is timing out. You'll need to increase the timeout value here:
I suggest a value of 300 for now. |
Thanks Matt, I'll fix the timeout and look into the LLVM issue. |
@mthalman do you understand the failures in the CI? I am not sure what's the issue. I can see a lot of "keyserver receive failed" messages, but I am not sure if that's the real issue here. |
I think the keyserver error message is relevant. Perhaps something has been deprecated in there? I think those commands were lifted from the Node Dockerfiles. Here's the Node 10 Dockerfile: https://github.com/nodejs/docker-node/blob/node-core/10/alpine/Dockerfile. Would be good to compare that to what we have. The Ubuntu build is failing when running the src/ubuntu/18.04/cross/s390x/hooks/pre-build script. It's attempting to install the libomp5 package for the s390x arch but no such package exists for that arch: https://packages.ubuntu.com/search?suite=bionic&arch=s390x&searchon=names&keywords=libomp. I guess it must have at one point? |
@mthalman it seems that node is actually having the same problem with the key servers, see the recent issue nodejs/node#39114. Looks like the keys are gone from the key servers. |
A linked issue had a fix, I've made the change in this PR according to that. |
@mthalman the centos-7-graph amd64 leg has failed with the following while building image from src/centos/7/rpmpkg/Dockerfile:
The initial part of the dockerfile installs Ruby 2.0. Any idea what could have caused this issue? |
CentOS 7 only includes Ruby 2.0. The latest versions of git are dependent on Ruby >=2.3, which is being pulled in as a dependency of fpm. This is the same kind of issue that we dealt with earlier with ffi (#323). To resolve this, you can pin git to a version that doesn't require Ruby 2.3: To resolve this, add this
to dotnet-buildtools-prereqs-docker/src/centos/7/rpmpkg/Dockerfile Lines 10 to 12 in 37436dd
|
Great, thank you! Let's hope it was the last tweak needed. |
We will be switching runtime build to using lld linker
Ah, yet another keyserver issue, this time for Alpine 3.13. |
Encountered an error in the Ubuntu build. Here's the last few relevant lines from the log:
I'm going to retry the build. |
Hmm, the dotnet-buildtools-prereqs-docker-eng build ran into the same error. This occurs when executing the src/ubuntu/18.04/cross/illumos/hooks/pre-build script. |
I can take a look at illumos failure (pkgsrc url is having some trouble apparently). |
I have discussed with upstream on IRC (libera.chat #joyent), there is a temporary issue in manta which is being investigated. Meanwhile, we have a workaround for it to switch to Germany mirror which is intact. @janvorli, could you please add
I will keep an eye on the server status and switch it back to primary once the issue is resolved. |
@am11 I'll add commit with that change once the current legs complete so that I know if there is anything else to fix. The build of the llvm stuff in centos takes a very long time. |
Seems like we'll need to make this script pass through the extra argument to the build-rootfs.sh from arcade. |
The upstream issue has been resolved. So we don't need this PR to be blocked by that. However, they did mentioned that dotnet is producing a lot of traffic for their server, so we can either parmanently switch to the mirror or switch to OpenIndiana packages (rather than SmartOS ones). |
Great, finally the CI is green. |
We will be switching runtime build to using lld linker, so we need it in the images that we use to build it.