problem when building openjdk6

Kelly O'Hair kelly.ohair at oracle.com
Mon Nov 14 16:34:51 UTC 2011


After you apply the fix, you need to start from scratch, delete the build/ directory and start again.

-kto

On Nov 13, 2011, at 7:10 PM, Li Li wrote:

> hi all
>     I tried to build a debug version of openjdk6. I follows these articles:
> http://weblogs.java.net/blog/simonis/archive/2008/01/hotspot_develop.html
> http://hg.openjdk.java.net/jdk6/jdk6/raw-file/tip/README-builds.html
>     I've got the latest codes and an error occured:
>     2045 /usr/bin/gcc  -O2    -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused -Wno-parentheses -fno-omit-fra     me-pointer -D_LITTLE_ENDIAN   -DARCH='"i586"' -Di586 -DLINUX -DRELEASE='"1.6.0-internal"' -D_LARGEFI     LE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -I. -I/media/d/openjdk6/build/linux-i586/tmp/sun/sun.security     .pkcs11/j2pkcs11/CClassHeaders -I../../../../src/solaris/javavm/export -I../../../../src/share/javav     m/export -I../../../../src/share/javavm/include -I../../../../src/solaris/javavm/include -I../../../     ../src/share/native/sun/security/pkcs11/wrapper -I../../../../src/solaris/native/sun/security/pkcs11     /wrapper -I../../../../src/share/native/common -I../../../../src/solaris/native/common -I../../../..     /src/share/native/sun/security/pkcs11 -I../../../../src/solaris/native/sun/security/pkcs11    -c -o      /media/d/openjdk6/build/linux-i586/tmp/sun/sun.security.pkcs11/j2pkcs11/obj/p11_convert.o  ../../../     ../src/share/native/sun/security/pkcs11/wrapper/p11_convert.c
> 2046 ../../../../src/share/native/sun/security/pkcs11/j2secmod.c:76:27: error: conflicting types for 'Jav     a_sun_security_pkcs11_Secmod_nssGetModuleList'
> 2047 /media/d/openjdk6/build/linux-i586/tmp/sun/sun.security.pkcs11/j2pkcs11/CClassHeaders/sun_security_p     kcs11_Secmod.h:49:27: note: previous declaration of 'Java_sun_security_pkcs11_Secmod_nssGetModuleLis     t' was here
> 2048 make[6]: *** [/media/d/openjdk6/build/linux-i586/tmp/sun/sun.security.pkcs11/j2pkcs11/obj/j2secmod.o     ] Error 1
>     I searched a bug in sun's bug database:
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7058133
>     in my make/sun/security/pkcs11/Makefile
>     There is not any JAVAHFLAGS += -classpath $(CLASSDESTDIR) 
>     So I tried to add this line. But it still failed.
>         
> 
>     The result of make sanity:
>     make[1]: Entering directory `/media/d/openjdk6/jdk/make'
> make[2]: Entering directory `/media/d/openjdk6/jdk/make/tools/freetypecheck'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/media/d/openjdk6/jdk/make/tools/freetypecheck'
> make[1]: Leaving directory `/media/d/openjdk6/jdk/make'
> 
> Build Machine Information:
>    build machine = lili-desktop
> 
> Build Directory Structure:
>    CWD = /media/d/openjdk6
>    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   = /media/d/openjdk6/build/linux-i586/hotspot/outputdir 
>       HOTSPOT_EXPORT_PATH = /media/d/openjdk6/build/linux-i586/hotspot/import 
>  
> 
> 
> 
> Bootstrap Settings:
>   BOOTDIR = /home/lili/java/jdk1.6.0_26/
>     ALT_BOOTDIR = /home/lili/java/jdk1.6.0_26/
>   BOOT_VER = 1.6 [requires at least 1.6]
>   OUTPUTDIR = /media/d/openjdk6/build/linux-i586
>     ALT_OUTPUTDIR = /media/d/openjdk6/build/linux-i586
>   ABS_OUTPUTDIR = /media/d/openjdk6/build/linux-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 = /bin/
>     ALT_UNIXCOMMAND_PATH = 
>   COMPILER_PATH = /usr/bin/
>     ALT_COMPILER_PATH = 
>   DEVTOOLS_PATH = /usr/bin/
>     ALT_DEVTOOLS_PATH = 
>   UNIXCCS_PATH = /usr/ccs/bin/
>     ALT_UNIXCCS_PATH = 
>   USRBIN_PATH = /usr/bin/
>     ALT_USRBIN_PATH = 
>   MOTIF_DIR = /usr
>     ALT_MOTIF_DIR = 
>   MOTIF_REQUIRED = false
>   COMPILER_NAME = GCC
>   COMPILER_VERSION = 
>   CC_VER = 4.5 [requires at least 3.2]
>   ZIP_VER = 3.0 [requires at least 2.2]
>   UNZIP_VER = 6.00 [requires at least 5.12]
>   ANT_VER = 1.8 [requires at least 1.6.3]
>   TEMPDIR = /media/d/openjdk6/build/linux-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 = -O3 
>   CC_HIGHER_OPT = -O3 
>   CC_LOWER_OPT = -O2 
>   CXXFLAGS =  -O2  -fPIC -DCC_NOEX -W -Wall  -Wno-unused -Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN 
>   CFLAGS =  -O2    -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused -Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN 
>   BOOT_JAVA_CMD = /home/lili/java/jdk1.6.0_26//bin/java  -client -Xmx896m -Xms128m -XX:PermSize=32m -XX:MaxPermSize=160m
>   BOOT_JAVAC_CMD = /home/lili/java/jdk1.6.0_26//bin/javac  -J-XX:ThreadStackSize=768 -J-client -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -encoding ascii -source 5 -target 5 -XDignore.symbol.file=true
>   BOOT_JAR_CMD = /home/lili/java/jdk1.6.0_26//bin/jar
>   BOOT_JARSIGNER_CMD = /home/lili/java/jdk1.6.0_26//bin/jarsigner
>   JAVAC_CMD = /home/lili/java/jdk1.6.0_26//bin/java  -client -Xmx896m -Xms128m -XX:PermSize=32m -XX:MaxPermSize=160m -Xbootclasspath/p:/media/d/openjdk6/build/linux-i586/langtools/dist/bootstrap/lib/javac.jar -jar /media/d/openjdk6/build/linux-i586/langtools/dist/bootstrap/lib/javac.jar  -source 1.5 -target 5 -encoding ascii -Xbootclasspath:/media/d/openjdk6/build/linux-i586/classes 
>   JAVAH_CMD = /home/lili/java/jdk1.6.0_26//bin/java  -client -Xmx896m -Xms128m -XX:PermSize=32m -XX:MaxPermSize=160m -Xbootclasspath/p:/media/d/openjdk6/build/linux-i586/langtools/dist/bootstrap/lib/javah.jar:/media/d/openjdk6/build/linux-i586/langtools/dist/bootstrap/lib/javadoc.jar:/media/d/openjdk6/build/linux-i586/langtools/dist/bootstrap/lib/javac.jar -jar /media/d/openjdk6/build/linux-i586/langtools/dist/bootstrap/lib/javah.jar -bootclasspath /media/d/openjdk6/build/linux-i586/classes
>   JAVADOC_CMD = /home/lili/java/jdk1.6.0_26//bin/java  -client -Xmx896m -Xms128m -XX:PermSize=32m -XX:MaxPermSize=160m -Xbootclasspath/p:/media/d/openjdk6/build/linux-i586/langtools/dist/bootstrap/lib/javadoc.jar:/media/d/openjdk6/build/linux-i586/langtools/dist/bootstrap/lib/javac.jar:/media/d/openjdk6/build/linux-i586/langtools/dist/bootstrap/lib/doclets.jar -jar /media/d/openjdk6/build/linux-i586/langtools/dist/bootstrap/lib/javadoc.jar
>  
> Build Platform Settings:
>   USER = lili
>   PLATFORM = linux
>   ARCH = i586
>   LIBARCH = i386
>   ARCH_FAMILY = i586
>   ARCH_DATA_MODEL = 32
>   ARCHPROP = i386
>   LINUX_VERSION = Unknown linux
>   ALSA_VERSION = 1.0.24.1
>   OS_VERSION = 2.6.38-12-generic [requires at least 2.4.9-e.3]
>   OS_NAME = linux
>   MB_OF_MEMORY = 3527
>  
> GNU Make Settings:
>   MAKE = make
>   MAKE_VER = 3.81 [requires at least 3.78]
>   MAKECMDGOALS = sanity
>   MAKEFLAGS = w
>   SHELL = /bin/sh
>  
> Target Build Versions:
>   JDK_VERSION = 1.6.0
>   MILESTONE = internal
>   RELEASE = 1.6.0-internal
>   FULL_VERSION = 1.6.0-internal-lili_11_nov_2011_19_32-b00
>   BUILD_NUMBER = b00
>  
> External File/Binary Locations:
>   USRJDKINSTANCES_PATH = /opt/java
>   BUILD_JDK_IMPORT_PATH = /NOT-SET/re/openjdk/6/promoted/latest/binaries
>     ALT_BUILD_JDK_IMPORT_PATH = 
>   JDK_IMPORT_PATH = /NOT-SET/re/openjdk/6/promoted/latest/binaries/linux-i586
>     ALT_JDK_IMPORT_PATH = 
>   LANGTOOLS_DIST = /media/d/openjdk6/build/linux-i586/langtools/dist
>     ALT_LANGTOOLS_DIST = /media/d/openjdk6/build/linux-i586/langtools/dist
>   CORBA_DIST = /media/d/openjdk6/build/linux-i586/corba/dist
>     ALT_CORBA_DIST = /media/d/openjdk6/build/linux-i586/corba/dist
>   JAXP_DIST = /media/d/openjdk6/build/linux-i586/jaxp/dist
>     ALT_JAXP_DIST = /media/d/openjdk6/build/linux-i586/jaxp/dist
>   JAXWS_DIST = /media/d/openjdk6/build/linux-i586/jaxws/dist
>     ALT_JAXWS_DIST = /media/d/openjdk6/build/linux-i586/jaxws/dist
>   HOTSPOT_DOCS_IMPORT_PATH = /media/d/openjdk6/build/linux-i586/hotspot/import/docs
>     ALT_HOTSPOT_DOCS_IMPORT_PATH = 
>   HOTSPOT_IMPORT_PATH = /media/d/openjdk6/build/linux-i586/hotspot/import
>     ALT_HOTSPOT_IMPORT_PATH = /media/d/openjdk6/build/linux-i586/hotspot/import
>   HOTSPOT_CLIENT_PATH = /media/d/openjdk6/build/linux-i586/hotspot/import/jre/lib/i386/client
>     ALT_HOTSPOT_CLIENT_PATH = 
>   HOTSPOT_SERVER_PATH = /media/d/openjdk6/build/linux-i586/hotspot/import/jre/lib/i386/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 = 
>   PLUG_LIBRARY_NAMES = 
>  
> Previous JDK Settings:
>   PREVIOUS_RELEASE_PATH = /NOT-SET/re/jdk/1.6.0/archive/fcs/bundles/linux-i586
>     ALT_PREVIOUS_RELEASE_PATH = 
>   PREVIOUS_JDK_VERSION = 1.6.0
>     ALT_PREVIOUS_JDK_VERSION = 
>   PREVIOUS_JDK_FILE = jdk-6-linux-i586.tar.gz
>     ALT_PREVIOUS_JDK_FILE = 
>   PREVIOUS_JRE_FILE = jre-6-linux-i586.tar.gz
>     ALT_PREVIOUS_JRE_FILE = 
>   PREVIOUS_RELEASE_IMAGE = 
>     ALT_PREVIOUS_RELEASE_IMAGE = 
> 
> 
> Sanity check passed.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/build-dev/attachments/20111114/bf29f427/attachment.html>


More information about the build-dev mailing list