openJDK7 build fails on 64bit cblfs linux
David Holmes
David.Holmes at oracle.com
Tue Apr 19 10:39:23 UTC 2011
> HOTSPOT_IMPORT_PATH = /SRS/openjdk/build/linux-amd64/hotspot/import
> ALT_HOTSPOT_IMPORT_PATH =
/SRS/openjdk/build/linux-amd64/hotspot/import
Have you any idea how/where these get set?
I'm out of suggestions here.
David
luxInteg said the following on 04/19/11 20:21:
> On Tuesday 19 April 2011 02:19:16 David Holmes wrote:
>> luxInteg said the following on 04/18/11 23:50:
>>> On Sunday 17 April 2011 23:04:35 luxInteg wrote:
>>>> as an uPDATE
>>>> I did the above then tried to run ant and this is what happens:-
>>>>
>>>> ant -v
>>>>
>>>> There was an error trying to initialize the HPI library.
>>>> Error: Could not create the Java Virtual Machine.
>>>> Error: A fatal exception has occurred. Program will exit.
>> You are mixing old VM with a new JDK (or vice versa) - the HPI library
>> was removed.
>>
>>>> #--------- an ls of ~/jre/bin shows there is no jvm
>>>>
>>>> root [ /opt/openJDK/jre/bin ]# ls -l
>>>> total 244
>>>> -rwxr-xr-x 1 root root 6832 Apr 17 22:40 java
>> java is the launcher for the JVM. java_vm is a historical artefact that
>> still exists in oder releases.
>>
>>> UPDATE
>>> The 'pre-running-make' sanity check had this:-
>>>
>>> WARNING: You are not building the HOTSPOT sources.
>>>
>>> Hotspot libs will be obtained from
>>> the location set in ALT_HOTSPOT_IMPORT_PATH.
>>>
>>> and ALT_HOTSPOT_IMPORT_PATH = /opt/jdk-6u24
>> By setting the import path you instructed it to not build hotspot. The
>> build logic for this is as follows:
>>
>> HOTSPOT_SRC_AVAILABLE := $(call MkExists,$(HOTSPOT_TOPDIR)/make/Makefile)
>> ifndef BUILD_HOTSPOT
>> ifdef ALT_HOTSPOT_IMPORT_PATH
>> BUILD_HOTSPOT := false
>> else
>> BUILD_HOTSPOT := $(HOTSPOT_SRC_AVAILABLE)
>> endif
>> endif
>>
>> So by default, if the hotspot sources exist you will build hotspot,
>> provided you haven't explicitly turned it off, and you haven't said to
>> use the import path.
>>
>> HTH
>>
>> David Holmes
>
> I followed your suggestions and here is an update
>
> ############### settings
>
> ###----------- premake envars set
>
> export PATH=/usr/bin:/opt/jdk-6u24/bin:/opt/ant/bin:$PATH
> export ALT_BOOTDIR=/opt/jdk-6u24
> export ANT_HOME=/opt/ant
> export ALT_DEVTOOLS_PATH=/usr/bin
> export BUILD_NUMBER=b38
> export ARCH_DATA_MODEL=64
>
>
> export ALT_JDK_IMPORT_PATH=/opt/jdk-6u24
>
> unset LC_ALL
> export ALT_OPENWIN_HOME=/usr/X11R7.6/
> export LC_ALL=C
> export LANG=C
>
> ###----------- make command execution
> make \
> [ARCH_DATA_MODEL=64] \
> OTHER_LDFLAGS=-liconv \
> [ALT_OUTPUTDIR=/opt/openJDK]
>
> (I am not compiling as root so I wonder if the last line is of any use ( I
> fished it our of some instuction on openjdk)
>
>
> ############### results
>
> ###----------- premake sanity checks
>
> HOTSPOT_DOCS_IMPORT_PATH = /NO_DOCS_DIR
> ALT_HOTSPOT_DOCS_IMPORT_PATH =
> HOTSPOT_IMPORT_PATH = /SRS/openjdk/build/linux-amd64/hotspot/import
> ALT_HOTSPOT_IMPORT_PATH = /SRS/openjdk/build/linux-amd64/hotspot/import
> HOTSPOT_SERVER_PATH = /SRS/openjdk/build/linux-
> amd64/hotspot/import/jre/lib/amd64/server
> ALT_HOTSPOT_SERVER_PATH =
> CACERTS_FILE = ./../src/share/lib/security/cacerts
> ALT_CACERTS_FILE =
> CUPS_HEADERS_PATH = /usr/include
> ALT_CUPS_HEADERS_PATH =
>
> OpenJDK-specific settings:
> FREETYPE_HEADERS_PATH = /usr/include
> ALT_FREETYPE_HEADERS_PATH =
> FREETYPE_LIB_PATH = /usr/lib
> ALT_FREETYPE_LIB_PATH =
>
> Previous JDK Settings:
> PREVIOUS_RELEASE_PATH = USING-PREVIOUS_RELEASE_IMAGE
> ALT_PREVIOUS_RELEASE_PATH =
> PREVIOUS_JDK_VERSION = 1.6.0
> ALT_PREVIOUS_JDK_VERSION =
> PREVIOUS_JDK_FILE =
> ALT_PREVIOUS_JDK_FILE =
> PREVIOUS_JRE_FILE =
> ALT_PREVIOUS_JRE_FILE =
> PREVIOUS_RELEASE_IMAGE = /opt/jdk-6u24
> ALT_PREVIOUS_RELEASE_IMAGE =
>
>
> Sanity check passed.
>
> ###----------- make ends like so
>
> /opt/jdk-6u24/bin/javac -g -encoding ascii -source 6 -target 6 -source 1.4 -
> target 1.4 -classpath /opt/jdk-6u24/lib/tools.jar -sourcepath
> /SRS/openjdk/hotspot/agent/src/share/classes -d /SRS/openjdk/build/linux-
> amd64/hotspot/outputdir/linux_amd64_compiler2/product/../generated/saclasses
> @/SRS/openjdk/build/linux-
> amd64/hotspot/outputdir/linux_amd64_compiler2/product/../generated/agent1.classes.list
> javac: file not found: /SRS/openjdk/build/linux-
> amd64/hotspot/outputdir/linux_amd64_compiler2/product/../generated/agent1.classes.list
> (No such file or directory)
> make[7]: *** [/SRS/openjdk/build/linux-
> amd64/hotspot/outputdir/linux_amd64_compiler2/product/../generated/sa-jdi.jar]
> Error 3
> make[7]: Leaving directory `/SRS/openjdk/build/linux-
> amd64/hotspot/outputdir/linux_amd64_compiler2/product'
> make[6]: *** [all] Error 2
>
>
>
> #------------------------------
>
> advice so far much appreciated,
> more will be even more so.
>
> sincerely
> luxInteg
More information about the build-dev
mailing list