Trying to build openjdk7 under opensolaris
Thorbjørn Ravn Andersen
thunderaxiom at gmail.com
Sun Jun 29 14:00:02 PDT 2008
Hi, hotspot-dev.
Got an error when compiling jdk7 on my newly installed OpenSolaris box,
which Kelly O'Hair suggested you should know about. Just verified by
cleaning and recompiling (which takes a while on this old box) that the
error is still there. "hg fupdate" and "hg update" said all files was
up to date, the .hg/hgrc file says "default =
http://hg.openjdk.java.net/jdk7/jdk7/"
The compiler is not SS12, but
-bash-3.2$ /opt/SunStudioExpress/bin/CC -V
CC: Sun Ceres C++ 5.9 SunOS_i386 2008/04/04
I have deliberately not installed any Sun packages manually, just
through the package tool or "pkg". I installed CUPS myself locally to
get the headers.
The full command failing is
CC -DSOLARIS -DSPARC_WORKS -DIA32 -DPRODUCT -xF -I../generated/adfiles
-I../generated/jvmtifiles
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/asm
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/c1
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/ci
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/classfile
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/code
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/compiler
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/gc_implementation
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/gc_implementation/shared
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/gc_implementation/parallelScavenge
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/gc_implementation/parNew
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/gc_interface
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/interpreter
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/libadt
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/memory
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/oops
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/opto
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/prims
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/runtime
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/services
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/share/vm/utilities
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/cpu/x86/vm
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/os/solaris/vm
-I/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/os_cpu/solaris_x86/vm
-I../generated -DHOTSPOT_RELEASE_VERSION="\"13.0-b02\""
-DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"ravn\""
-DHOTSPOT_LIB_ARCH=\"i386\"
-DJRE_RELEASE_VERSION="\"1.7.0-internal-ravn_2008_06_29_21_40-b00\""
-DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DCOMPILER2 -DCOMPILER1
-DSOLARIS_7_OR_LATER -m32
/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/os_cpu/solaris_x86/vm/solaris_x86_32.il
-template=no%extdef -features=no%split_init -D_Crun_inline_placement
-library=%none -KPIC -mt -xdebugformat=stabs -xtarget=pentium -xO3
-DVM_LITTLE_ENDIAN -features=no%except -DHAVE_DTRACE_H
-DDTRACE_ENABLED -c -o os_solaris.o
/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/os/solaris/vm/os_solaris.cpp
"/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/os/solaris/vm/os_solaris.cpp",
line 3689: Error: ia_nice is not a member of iaparms.
1 Error(s) detected.
gmake[5]: *** [os_solaris.o] Error 1
gmake[5]: Leaving directory
`/export/home/ravn/download/openjdk/jdk7/jdk7/build/solaris-i586/hotspot/outputdir/solaris_i486_compiler2/product'
Additionally it seems that CC must be in the PATH - I thought it should
respect the two compiler environment flags which the "gmake sanity"
command checks for?
Please advise
/Thorbjørn
Kelly O'Hair skrev den 28-06-2008 19:01:
> That one is new to me.
>
> You may need to isolate this problem, I haven't seen it before.
> Is this really SS12 or Sun Studio Express? What does CC -V say?
>
> (The hotspot alias is hotspot-dev at openjdk.java.net, you probably should
> send this problem to that alias).
>
> -kto
>
>
> Thorbjørn Ravn Andersen wrote:
>> Kelly O'Hair skrev den 28-06-2008 03:11:
>>> The cc and CC also need to be in your PATH.
>>
>> Thanks, didn't think it would be so simple.
>>
>> I then got this compilation error (OpenSolaris fully updated, SS12,
>> Pentium III). I verified that "hg update" was up to date.
>>
>> "/export/home/ravn/download/openjdk/jdk7/jdk7/hotspot/src/os/solaris/vm/os_solaris.cpp",
>> line 3689: Error: ia_nice is not a member of iaparms.
>> 1 Error(s) detected.
>> gmake[5]: *** [os_solaris.o] Error 1
>> gmake[5]: Leaving directory
>> `/export/home/ravn/download/openjdk/jdk7/jdk7/build/solaris-i586/hotspot/outputdir/solaris_i486_compiler2/product'
>>
>>
>> Is this still a setup problem or is it a SS12/SS11 issue?
>>
>
More information about the hotspot-dev
mailing list