Comments (2)
This seems a fairly straightforward change. However this website states that OpenJDK 9 on HotSpot supports SLES 11.
https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms
If this is also the case for OpenJDK on OpenJ9, then we may have to specify the command location explicitly, as the sles 11 machine I checked (jsvt004g.hursley.ibm.com) says: "update-alternatives: command not found". Some websites online say others have this problem also, so this may not be a simple setup bug.
For reference, update-alternative is found in /usr/sbin/update-alternatives
So the docker files with bits that look like this:
# Create links for c++,g++,cc,gcc
RUN ln -s g++ /usr/bin/c++
&& ln -s g++-4.8 /usr/bin/g++
&& ln -s gcc /usr/bin/cc
&& ln -s gcc-4.8 /usr/bin/gcc
Would probably end up looking something like this:
# Create links for c++,g++,cc,gcc
RUN /usr/sbin/update-alternatives --install /usr/bin/g++ g++ /usr/bin/c++
RUN /usr/sbin/update-alternatives --install /usr/bin/g++-4.8 g++-4.8 /usr/bin/g++
RUN /usr/sbin/update-alternatives --install /usr/bin/gcc gcc /usr/bin/cc
RUN /usr/sbin/update-alternatives --install /usr/bin/gcc-4.8 gcc-4.8 /usr/bin/gcc
And here's a list of the docker files that could likely use this change:
https://github.com/eclipse/openj9/blob/master/buildenv/docker/jdk9/x86_64/ubuntu16/Dockerfile
https://github.com/eclipse/openj9/blob/master/buildenv/docker/jdk9/ppc64le/ubuntu16/Dockerfile
https://github.com/eclipse/openj9/blob/master/buildenv/docker/jdk9/s390x/ubuntu16/Dockerfile
https://github.com/eclipse/openj9/blob/master/buildenv/docker/test/Dockerfile
Note: The test Dockerfile had a -f in the ln, and I'm not seeing a "force" option for update-alternatives, so perhaps a quiet rm?
Does that sound right?
from openj9.
If I recall correctly, update-alternatives
only exists on Debian derived linux distributions, of which Ubuntu is one, but SLES is not -- so a SLES docker container will need a different choice.
Everything else looks about right to me based on inspection.
I am currently 😷, and so I am slower than usual. Take what I say with a grain of salt
from openj9.
Related Issues (20)
- Upgrade minimum acceptable cmake version HOT 2
- Update zlib to 1.3.1 or the latest
- HeapHogLoadTest_5m_0_FAILED Segmentation error vmState=0x00000000 HOT 14
- jdk_lang_1_FAILED java/lang/ProcessBuilder/Basic.java#id0 AssertionError: Some tests failed
- Valhalla tests failed to compile HOT 1
- Add implementation for new JNI functions in Valhalla HOT 1
- Assertion failed in testJITServer_0: Pointer for offset could not be found in deserializer shared cache HOT 5
- jdk_util_1_FAILED java/util/ResourceBundle/Bug4168625Test.java testLowMemoryLoadstderr OOM HOT 3
- monitorenter/monitorexit should throw IdentityException on Value Objects
- Build failure on M3: ld: symbol(s) not found for architecture arm64 HOT 4
- jdk_text_0_FAILED java/text/Format/NumberFormat/NumberRegression.java RuntimeException: Uncaught exception thrown in test method Test4122840
- jdk_security3_0_FAILED sun/security/ec/TestEC.java ProviderException: Could not convert keys to native format HOT 6
- testSCCMLTests1_openj9_0_FAILED Required condition was not found HOT 4
- jdk23 View-LE-OffHeap View-BE-OffHeap testChar, testDouble etc expected [true] but found [false] HOT 1
- jdk23 UtilLoadTest_5m crash vmState=0x00040000 Java_java_lang_Thread_interruptImpl omrthread_interrupt pthread_mutex_lock
- ASSERTION FAILED StandardAccessBarrier.cpp:867: ((false && (_scavenger->isMutatorThreadInSyncWithCycle(env)))) HOT 4
- jdk23 alinux build failed configure: error: Option --enable-compatible-cds-alignment is not available
- Clean up references to iiload, iistore, et al.
- Improve object heap allocation for Compressed References JVM for zLinux HOT 6
- VmArgumentTests_0_FAILED testXcheckMemory AssertionError: Target process failed, 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openj9.