Install gcc 11.2 in docker images - #18477
Conversation
Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
| echo "# Install gcc-11.2." | ||
| echo "RUN cd /usr/local \\" | ||
| echo " && $wget_O gcc-11.tar.xz 'https://ci.adoptopenjdk.net/userContent/gcc/gcc112.$arch.tar.xz' \\" | ||
| echo " && tar -xJf gcc-11.tar.xz \\" | ||
| echo " && rm -f gcc-11.tar.xz" | ||
| echo "" |
There was a problem hiding this comment.
This seems reasonable. Have you tested the result?
There was a problem hiding this comment.
Yes, looks good. After this is merged I'll build a new container on dockerhub via https://openj9-jenkins.osuosl.org/view/Infrastructure/job/Build-Jenkins-Agent-Container/ and then modify the jdk8,11 builds to use it with gcc 11.2.
The change will be similar to master...pshipton:openj9:xadopt but using eclipseopenj9/jenkins-agent-x86-centos6 rather than adoptopenjdk/centos6_build_image.
docker run -it localhost/openj9/cent6 /bin/bash
[jenkins@7703735b8486 /]$ /usr/local/gcc11/bin/gcc-11.2 --version
gcc-11.2 (Adoptium/sxa) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[jenkins@7703735b8486 /]$ /usr/local/gcc11/bin/g++-11.2 --version
g++-11.2 (Adoptium/sxa) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
jenkins build docker x86 centos6 |
|
@AdamBrousseau the docker build is waiting on https://openj9-jenkins.osuosl.org/computer/ub20%2Dx86%2D1/ but you've taken this node offline earlier today for the reason "docker test" |
|
Re-enabled. I had pulled the adopt container to it so I had to remove it in order to free up space. |
|
It still doesn't have enough space to build the container. |
|
I'm not surprised. I'll have to try and recall why we're limiting it to that machine. |
|
There doesn't seem to be much we could clean to get more space. There is 26G now, I'll try again, but we'll probably get the same result. jenkins build docker x86 centos6 |
|
Did I break it? jenkins build docker x86 centos6 |
|
I don't know what system that was running on, it didn't even get to ub20-x86-1 yet. |
|
jenkins build docker x86 centos6 |
|
The PR build needs to be launched in a comment by itself. |
The criteria is |
|
Not sure why it was able to succeed this time. I deleted a little bit of stuff but not much. I did delete the container and all the images. There seemed to be plenty of free space while it was running. Now that it's built and at dockerhub with the tag PR18477, do we need to built it again to get a better tag? |
|
Trying a jvm build with this image using gcc 11.2 so we can see it's working. |
|
By default we get cuda 12 in the image, but the builds want cuda 9. It seems only 11, 12 are available from dockerhub. I recall there was some discussion about cuda versions earlier, but I'm not sure of the outcome.
|
|
Trying again using |
|
ub16x64j95 ran out of space building jdk11. The jdk8 build on cent7-x64-1 was successful. It has plenty of space but I cleaned up some old images. |
keithc-ca
left a comment
There was a problem hiding this comment.
The Java 11 build failed
[2023-11-18T04:27:12.960Z] /home/jenkins/workspace/Build_JDK11_x86-64_linux_Personal/openj9/runtime/compiler/env/CHTable.cpp:1297:4: fatal error: error writing to /tmp/ccshUMls.s: No space left on device
which is not (likely) a problem due to this change.
The Java 8 build succeeded: approving.
|
Should we remove gcc 7.5 once |
gcc 7.5 is still required to build the docker image. There are some components built from source, and at least one of them fails to compile with gcc 11.2. I noticed this because I accidentally replaced the default compiler, but I didn't record what actually failed. |
|
We could remove it after building those other things, but the space savings might not be worth worrying about. |
See eclipse-openj9#18477 Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
See eclipse-openj9#18477 Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
No description provided.