With jdk10 repos you should be using solstudio 12.4.
The changes were added to jdk11 repos to begin support
for solstudio 12.6, but there are some additional patches
needed in solstudio 12.6 to be able to build openjdk.
Hopefully those issues will be resolved for the next jdk release.
On 9/5/18, 11:26 AM, Andrew Watkins wrote:
Hello,
I am sure I am doing something wrong, but having build problems with
OpenJDK under Solaris.
Error:
# gmake
Building target 'default (exploded-image)' in configuration
'solaris-x86_64-normal-server-release'
Creating support/modules_libs/java.base/libjsig.so from 1 file(s)
Compiling 8 files for BUILD_TOOLS_LANGTOOLS
Creating hotspot/variant-server/tools/adlc/adlc from 13 file(s)
Compiling 2 files for BUILD_JVMTI_TOOLS
"/var/tmp/jdk10/hotspot/src/share/vm/adlc/arena.cpp", line 60: Error,
placementdelmatch: Placement operator new refers to non-placement
operator delete.
"/var/tmp/jdk10/hotspot/src/share/vm/adlc/arena.cpp", line 67: Error,
placementdelmatch: Placement operator new refers to non-placement
operator delete.
"/var/tmp/jdk10/hotspot/src/share/vm/adlc/arena.cpp", line 97: Error,
placementdelmatch: Placement operator new refers to non-placement
operator delete.
3 Error(s) detected.
gmake[3]: ***
[/var/tmp/jdk10/build/solaris-x86_64-normal-server-release/hotspot/variant-server/tools/adlc/objs/arena.o]
Error 2
gmake[3]: *** Waiting for unfinished jobs
I can see that there is a bug 8199782 with fixes
http://hg.openjdk.java.net/jdk/jdk/rev/fa26e7c6efb7, but these fixes
are not in my version? Am I missing a step to get the right jdk10
software?
I tried manually altering the code and got further but no point
discussing that until I know I am pulling the right code down from
openjdk.
Full steps:
# export
PATH=/opt/developerstudio/bin:/usr/bin:/usr/sbin:/usr/gnu/bin:/usr/sfw/bin
# hg clone http://hg.openjdk.java.net/jdk10/jdk10
# cd jdk10
# bash get_source.sh
# Repositories: corba jaxp jaxws langtools jdk hotspot nashorn
jaxp: hg clone
http://hg.openjdk.java.net/jdk10/jdk10/jaxp jaxp
corba: hg clone
http://hg.openjdk.java.net/jdk10/jdk10/corba corba
jaxp: requesting all changes
corba: requesting all changes
corba: adding changesets
jaxp: adding changesets
corba: adding manifests
jaxp: adding manifests
corba: adding file changes
corba: added 925 changesets with 5504 changes to
2597 files
corba: updating to branch default
corba: 1201 files updated, 0 files merged, 0 files
removed, 0 files unresolved
jaxws: hg clone
http://hg.openjdk.java.net/jdk10/jdk10/jaxws jaxws
jaxws: requesting all changes
jaxws: adding changesets
jaxws: adding manifests
jaxp: adding file changes
jaxp: added 1217 changesets with 15333 changes to
8488 files
jaxp: updating to branch default
jaxp: 3343 files updated, 0 files merged, 0 files
removed, 0 files unresolved
langtools: hg clone
http://hg.openjdk.java.net/jdk10/jdk10/langtools langtools
langtools: requesting all changes
langtools: adding changesets
jaxws: adding file changes
jaxws: added 850 changesets with 21898 changes to
10824 files
jaxws: updating to branch default
jaxws: 3757 files updated, 0 files merged, 0 files
removed, 0 files unresolved
jdk: hg clone
http://hg.openjdk.java.net/jdk10/jdk10/jdk jdk
jdk: requesting all changes
langtools: adding manifests
jdk: adding changesets
langtools: adding file changes
langtools: added 4297 changesets with 38693 changes to
11923 files
langtools: updating to branch default
langtools: 8702 files updated, 0 files merged, 0 files
removed, 0 files unresolved
hotspot: hg clone
http://hg.openjdk.java.net/jdk10/jdk10/hotspot hotspot
hotspot: requesting all changes
hotspot: adding changesets
hotspot: adding manifests
jdk: adding manifests
hotspot: adding file changes
hotspot: added 13550 changesets with 85505 changes to
16280 files
hotspot: updating to branch default
hotspot: 9230 files updated, 0 files merged, 0 files
removed, 0 files unresolved
nashorn: hg clone
http://hg.openjdk.java.net/jdk10/jdk10/nashorn nashorn
nashorn: requesting all changes
nashorn: adding changesets
nashorn: adding manifests
nashorn: adding file change