building on opensolaris (was Re: build failure on solaris-i586: no /usr/jdk/instances/jdk1.6.0/bin/javac)
Max (Weijun) Wang
Weijun.Wang at Sun.COM
Tue Aug 25 04:48:22 UTC 2009
I've just finished a successful full build (control build with closed
repos) on opensolaris. Based on the last section of http://openjdk.java.net/install/
, I install the packages and setup the environment variables. (Yes,
the /usr/jdk/instances/jdk1.6.0 looks like a full JDK now).
There are still some minor problems:
1. Sanity check complains cannot find MOZILLA_HEADERS_PATH, manually
add ALT_MOZILLA_HEADERS_PATH. Don't know if this is necessary, because
opensolaris already has those header files in /usr/include/firefox
2. Sanity check complains DEVTOOLS_PATH not set, set ALT_DEVTOOLS_PATH
to /usr/bin, since zip and unzip are already installed.
3. While compiling hotspot:
WARNING: You are using CC version and should be using version
5.9.
Set ENFORCE_COMPILER_REV= to avoid this warning.
....
gmake[7]: CC: Command not found
Seems ALT_COMPILER_PATH is not fed into hotspot build. Simply add /
opt/SunStudioExpress/bin/ to $PATH
4. In hotspot:
"/myjdk/hotspot/src/share/vm/runtime/vframe.cpp", line 104: Error:
Ambiguous "?:" expression, second operand of type "oop" and third
operand of type "int" can be converted to one another.
"/myjdk/hotspot/src/share/vm/runtime/vframe.cpp", line 105: Error:
Ambiguous "?:" expression, second operand of type "oop" and third
operand of type "int" can be converted to one another.
Changes "NULL" to "(oop)NULL"
5. The -ldga problem of http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6792287
Thanks
Max
More information about the build-dev
mailing list