help with hotspot compile on opensolaris

gustav trede gustav.trede at gmail.com
Tue Jun 30 08:27:16 UTC 2009


2009/6/29 Kelly O'Hair <Kelly.Ohair at sun.com>

> This looks like a Sun Studio 12.1 bug.
>
Thanks Kelly !
I will move my problem to ss forum.
I noticed that the inbuilt example project Fractal gives me the same seg
fault unless i change some compile options to non default.


> One thing I did note was that BOOTDIR says it's
> /usr/jdk/instances/jdk1.6.0,
> but BOOT_VER is 1.7.0?? You might check that, but it doesn't seem like
> it has anything to do with the failure.

its  1.7.0 indeed.

>
> I would try and see of you could downgrade the Sun Studio 12.1 to 12.
> I'll ping the Sun Studio guys and ask if they have seen this, or you
> could post something at their forum:
>   http://forums.sun.com/category.jspa?categoryID=113
>
> -kto
>
> gustav trede wrote:
>
>> Hello,
>>
>> When i try to build the current jdk7 master on Opensolaris 117  i get:
>>
>> Making adlc
>> CC -m32 -library=%none -mt -library=Cstd -g -m32 -norunpath -o
>> ../generated/adfiles/adlc ../generated/adfiles/adlparse.o
>> ../generated/adfiles/archDesc.o ../generated/adfiles/arena.o
>> ../generated/adfiles/dfa.o ../generated/adfiles/dict2.o
>> ../generated/adfiles/filebuff.o ../generated/adfiles/forms.o
>> ../generated/adfiles/formsopt.o ../generated/adfiles/formssel.o
>> ../generated/adfiles/main.o ../generated/adfiles/adlc-opcodes.o
>> ../generated/adfiles/output_c.o ../generated/adfiles/output_h.o
>> CC: Fatal error in ld: Segmentation Fault (core dumped)
>> ld: fatal: file /opt/sunstudio12.1/prod/lib/crti.o: section .rela.annotate
>> has invalid type [ SHT_RELA ]
>> gmake[6]: *** [../generated/adfiles/adlc] Error 1
>> gmake[6]: Leaving directory
>> `/root/hgjdk7/jdk7/build/solaris-i586/hotspot/outputdir/solaris_i486_compiler2/product'
>>
>>
>> I would appreciate any ideas how to fix this.
>>
>>
>> gmake sanity info is:
>> ( cd  ./jdk/make && \
>>      gmake sanity HOTSPOT_IMPORT_CHECK=false
>> JDK_TOPDIR=/root/hgjdk7/jdk7/jdk
>> JDK_MAKE_SHARED_DIR=/root/hgjdk7/jdk7/jdk/make/common/shared
>> EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=5 TARGET_CLASS_VERSION=5
>> MILESTONE=internal BUILD_NUMBER=b00 JDK_BUILD_NUMBER=b00
>> FULL_VERSION=1.7.0-internal-root_2009_06_29_14_54-b00
>> PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0 JDK_MKTG_VERSION=7
>> JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0
>> PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION=0
>> ARCH_DATA_MODEL=32 COOKED_BUILD_NUMBER=0
>> ALT_OUTPUTDIR=/root/hgjdk7/jdk7/build/solaris-i586
>> ALT_LANGTOOLS_DIST=/root/hgjdk7/jdk7/build/solaris-i586/langtools/dist
>> ALT_CORBA_DIST=/root/hgjdk7/jdk7/build/solaris-i586/corba/dist
>> ALT_JAXP_DIST=/root/hgjdk7/jdk7/build/solaris-i586/jaxp/dist
>> ALT_JAXWS_DIST=/root/hgjdk7/jdk7/build/solaris-i586/jaxws/dist
>> ALT_HOTSPOT_IMPORT_PATH=/root/hgjdk7/jdk7/build/solaris-i586/hotspot/import
>> BUILD_HOTSPOT=true ; )
>> gmake[1]: Entering directory `/root/hgjdk7/jdk7/jdk/make'
>> gmake[1]: Leaving directory `/root/hgjdk7/jdk7/jdk/make'
>>
>> Build Machine Information:
>>   build machine = opensolaris
>>
>> Build Directory Structure:
>>   CWD = /root/hgjdk7/jdk7
>>   TOPDIR = .
>>   CONTROL_TOPDIR = .
>>   LANGTOOLS_TOPDIR = ./langtools
>>   JAXP_TOPDIR = ./jaxp
>>   JAXWS_TOPDIR = ./jaxws
>>   CORBA_TOPDIR = ./corba
>>   HOTSPOT_TOPDIR = ./hotspot
>>   JDK_TOPDIR = ./jdk
>>
>> Build Directives:
>>   BUILD_LANGTOOLS = true
>>   BUILD_JAXP = true
>>   BUILD_JAXWS = true
>>   BUILD_CORBA = true
>>   BUILD_HOTSPOT = true
>>   BUILD_JDK    = true
>>   DEBUG_CLASSFILES =   DEBUG_BINARIES =
>> Hotspot Settings:
>>      HOTSPOT_BUILD_JOBS  =      HOTSPOT_OUTPUTDIR   =
>> /root/hgjdk7/jdk7/build/solaris-i586/hotspot/outputdir
>>      HOTSPOT_EXPORT_PATH =
>> /root/hgjdk7/jdk7/build/solaris-i586/hotspot/import
>>
>>
>>
>> Bootstrap Settings:
>>  BOOTDIR = /usr/jdk/instances/jdk1.6.0
>>    ALT_BOOTDIR =
>>  BOOT_VER = 1.7.0 [requires at least 1.5]
>>  OUTPUTDIR = /root/hgjdk7/jdk7/build/solaris-i586
>>    ALT_OUTPUTDIR = /root/hgjdk7/jdk7/build/solaris-i586
>>  ABS_OUTPUTDIR = /root/hgjdk7/jdk7/build/solaris-i586
>>  Build Tool Settings:
>>  SLASH_JAVA = /NOT-SET
>>    ALT_SLASH_JAVA =
>>  VARIANT = OPT
>>  JDK_DEVTOOLS_DIR = /NOT-SET/devtools
>>    ALT_JDK_DEVTOOLS_DIR =
>>  ANT_HOME =
>>  UNIXCOMMAND_PATH = /usr/bin/
>>    ALT_UNIXCOMMAND_PATH =
>>  COMPILER_PATH = /opt/sunstudio12.1/bin/
>>    ALT_COMPILER_PATH = /opt/sunstudio12.1/bin
>>  DEVTOOLS_PATH = /usr/bin/
>>    ALT_DEVTOOLS_PATH =
>>  UNIXCCS_PATH = /usr/ccs/bin/
>>    ALT_UNIXCCS_PATH =
>>  COMPILER_NAME = Sun Studio 13
>>  COMPILER_VERSION = SS13
>>  CC_VER = 5.10 [requires at least 5.9]
>>  ZIP_VER = 2.32 [requires at least 2.2]
>>  UNZIP_VER = 5.53 [requires at least 5.12]
>>  ANT_VER = 1.7.1 [requires at least 1.6.3]
>>  TEMPDIR = /root/hgjdk7/jdk7/build/solaris-i586/tmp
>>  Build Directives:
>>  OPENJDK = true
>>  USE_HOTSPOT_INTERPRETER_MODE =
>>  PEDANTIC =
>>  DEV_ONLY =
>>  NO_DOCS =
>>  NO_IMAGES =
>>  TOOLS_ONLY =
>>  INSANE =
>>  COMPILE_APPROACH = parallel
>>  PARALLEL_COMPILE_JOBS = 2
>>    ALT_PARALLEL_COMPILE_JOBS =
>>  FASTDEBUG =
>>  COMPILER_WARNINGS_FATAL = false
>>  COMPILER_WARNING_LEVEL =
>>  INCREMENTAL_BUILD = false
>>  CC_HIGHEST_OPT =
>>  CC_HIGHER_OPT =
>>  CC_LOWER_OPT =
>>  CXXFLAGS =  -xO2  -errtags=yes +w -mt -features=no%except -DCC_NOEX
>> -norunpath -xnolib   -KPIC
>>  CFLAGS =  -xO2    -L/root/hgjdk7/jdk7/build/solaris-i586/tmp/obj
>> -xc99=%none -xCC -errshort=tags -Xa  -v -mt -W0,-noglobal
>>  -erroff=E_BAD_PRAGMA_PACK_VALUE -KPIC
>>  BOOT_JAVA_CMD = /usr/jdk/instances/jdk1.6.0/bin/java -XX:-PrintVMOptions
>> -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -client -Xmx896m -Xms128m
>> -XX:PermSize=32m -XX:MaxPermSize=160m
>>  BOOT_JAVAC_CMD = /usr/jdk/instances/jdk1.6.0/bin/javac
>>  -J-XX:ThreadStackSize=768 -J-XX:-PrintVMOptions
>> -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-client -J-Xmx896m
>> -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -encoding ascii
>> -XDignore.symbol.file=true
>>  BOOT_JAR_CMD = /usr/jdk/instances/jdk1.6.0/bin/jar
>>  BOOT_JARSIGNER_CMD = /usr/jdk/instances/jdk1.6.0/bin/jarsigner
>>  JAVAC_CMD = /usr/jdk/instances/jdk1.6.0/bin/java -XX:-PrintVMOptions
>> -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -client -Xmx896m -Xms128m
>> -XX:PermSize=32m -XX:MaxPermSize=160m
>> -Xbootclasspath/p:/root/hgjdk7/jdk7/build/solaris-i586/langtools/dist/bootstrap/lib/javac.jar
>> -jar
>> /root/hgjdk7/jdk7/build/solaris-i586/langtools/dist/bootstrap/lib/javac.jar
>>  -source 5 -target 5 -encoding ascii
>> -Xbootclasspath:/root/hgjdk7/jdk7/build/solaris-i586/classes
>>  JAVAH_CMD = /usr/jdk/instances/jdk1.6.0/bin/java -XX:-PrintVMOptions
>> -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -client -Xmx896m -Xms128m
>> -XX:PermSize=32m -XX:MaxPermSize=160m
>> -Xbootclasspath/p:/root/hgjdk7/jdk7/build/solaris-i586/langtools/dist/bootstrap/lib/javah.jar:/root/hgjdk7/jdk7/build/solaris-i586/langtools/dist/bootstrap/lib/javadoc.jar:/root/hgjdk7/jdk7/build/solaris-i586/langtools/dist/bootstrap/lib/javac.jar
>> -jar
>> /root/hgjdk7/jdk7/build/solaris-i586/langtools/dist/bootstrap/lib/javah.jar
>> -bootclasspath /root/hgjdk7/jdk7/build/solaris-i586/classes
>>  JAVADOC_CMD = /usr/jdk/instances/jdk1.6.0/bin/java -XX:-PrintVMOptions
>> -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -client -Xmx896m -Xms128m
>> -XX:PermSize=32m -XX:MaxPermSize=160m
>> -Xbootclasspath/p:/root/hgjdk7/jdk7/build/solaris-i586/langtools/dist/bootstrap/lib/javadoc.jar:/root/hgjdk7/jdk7/build/solaris-i586/langtools/dist/bootstrap/lib/javac.jar:/root/hgjdk7/jdk7/build/solaris-i586/langtools/dist/bootstrap/lib/doclets.jar
>> -jar
>> /root/hgjdk7/jdk7/build/solaris-i586/langtools/dist/bootstrap/lib/javadoc.jar
>>  Build Platform Settings:
>>  USER = root
>>  PLATFORM = solaris
>>  ARCH = i586
>>  LIBARCH = i386
>>  ARCH_FAMILY = i586
>>  ARCH_DATA_MODEL = 32
>>  ARCHPROP = x86
>>  OS_VERSION = 5.11 [requires at least 5.10]
>>  OS_VARIANT_NAME = OpenSolaris
>>  OS_VARIANT_VERSION = 5.11
>>  TEMP_FREE_SPACE = 2301452
>>  FREE_SPACE = 23084597
>>  MB_OF_MEMORY = 3228
>>  GNU Make Settings:
>>  MAKE = gmake
>>  MAKE_VER = 3.81 [requires at least 3.78]
>>  MAKECMDGOALS = sanity
>>  MAKEFLAGS = w
>>  SHELL = /bin/sh
>>  Target Build Versions:
>>  JDK_VERSION = 1.7.0
>>  MILESTONE = internal
>>  RELEASE = 1.7.0-internal
>>  FULL_VERSION = 1.7.0-internal-root_2009_06_29_14_54-b00
>>  BUILD_NUMBER = b00
>>  External File/Binary Locations:
>>  USRJDKINSTANCES_PATH = /usr/jdk/instances
>>  BUILD_JDK_IMPORT_PATH = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries
>>    ALT_BUILD_JDK_IMPORT_PATH =
>>  JDK_IMPORT_PATH = /usr/jdk/instances/jdk1.6.0
>>    ALT_JDK_IMPORT_PATH = /usr/jdk/instances/jdk1.6.0
>>  LANGTOOLS_DIST = /root/hgjdk7/jdk7/build/solaris-i586/langtools/dist
>>    ALT_LANGTOOLS_DIST =
>> /root/hgjdk7/jdk7/build/solaris-i586/langtools/dist
>>  CORBA_DIST = /root/hgjdk7/jdk7/build/solaris-i586/corba/dist
>>    ALT_CORBA_DIST = /root/hgjdk7/jdk7/build/solaris-i586/corba/dist
>>  JAXP_DIST = /root/hgjdk7/jdk7/build/solaris-i586/jaxp/dist
>>    ALT_JAXP_DIST = /root/hgjdk7/jdk7/build/solaris-i586/jaxp/dist
>>  JAXWS_DIST = /root/hgjdk7/jdk7/build/solaris-i586/jaxws/dist
>>    ALT_JAXWS_DIST = /root/hgjdk7/jdk7/build/solaris-i586/jaxws/dist
>>  HOTSPOT_DOCS_IMPORT_PATH = /NO_DOCS_DIR
>>    ALT_HOTSPOT_DOCS_IMPORT_PATH =
>>  HOTSPOT_IMPORT_PATH = /root/hgjdk7/jdk7/build/solaris-i586/hotspot/import
>>    ALT_HOTSPOT_IMPORT_PATH =
>> /root/hgjdk7/jdk7/build/solaris-i586/hotspot/import
>>  HOTSPOT_CLIENT_PATH =
>> /root/hgjdk7/jdk7/build/solaris-i586/hotspot/import/jre/lib/i386/client
>>    ALT_HOTSPOT_CLIENT_PATH =
>>  HOTSPOT_SERVER_PATH =
>> /root/hgjdk7/jdk7/build/solaris-i586/hotspot/import/jre/lib/i386/server
>>    ALT_HOTSPOT_SERVER_PATH =
>>  CACERTS_FILE = ./../src/share/lib/security/cacerts
>>    ALT_CACERTS_FILE =
>>  JIBX_LIBS_PATH = /root/hgjdk7/binplugs/openjdk-binary-plugs
>>    ALT_JIBX_LIBS_PATH = /root/hgjdk7/binplugs/openjdk-binary-plugs
>>  CUPS_HEADERS_PATH = /usr/include/cups
>>    ALT_CUPS_HEADERS_PATH = /usr/include/cups
>>  OpenJDK-specific settings:
>>  FREETYPE_HEADERS_PATH = /usr/include
>>    ALT_FREETYPE_HEADERS_PATH =
>>  FREETYPE_LIB_PATH = /usr/lib
>>    ALT_FREETYPE_LIB_PATH =
>>  OPENJDK Import Binary Plug Settings:
>>  IMPORT_BINARY_PLUGS = true
>>  BINARY_PLUGS_JARFILE =
>> /root/hgjdk7/binplugs/openjdk-binary-plugs/jre/lib/rt-closed.jar
>>    ALT_BINARY_PLUGS_JARFILE =
>>  BINARY_PLUGS_PATH = /root/hgjdk7/binplugs/openjdk-binary-plugs
>>    ALT_BINARY_PLUGS_PATH = /root/hgjdk7/binplugs/openjdk-binary-plugs
>>  BUILD_BINARY_PLUGS_PATH =
>> /NOT-SET/re/jdk/1.7.0/promoted/latest/openjdk/binaryplugs
>>    ALT_BUILD_BINARY_PLUGS_PATH =
>>  PLUG_LIBRARY_NAMES =
>>  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 = /usr/jdk/instances/jdk1.6.0
>>    ALT_PREVIOUS_RELEASE_IMAGE =
>>
>>
>> Sanity check passed.
>>
>>
>> --
>> regards
>>  gustav
>>
>>
>>


-- 
regards
 gustav trede
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/build-dev/attachments/20090630/f908ffaf/attachment.html>


More information about the build-dev mailing list