Bootstrap javac cannot be compiled using earlier JDK7 versions

Andreas Kohn andreas.kohn at fredhopper.com
Wed Oct 20 12:07:41 UTC 2010


Hi,

I wanted to update my local JDK7 build, and stumbled across a problem
when building with a JDK7 from ~2010-09-10:

build-bootstrap-javac:
    [javac] Compiling 78 source files to /local/andreask-nonbackup/jdk7/build/linux-amd64/langtools/build/bootstrap/classes
    [javac] /local/andreask-nonbackup/jdk7/langtools/src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java:372: method does not override or implement a method from a supertype
    [javac]             @Override
    [javac]             ^
    [javac] 1 error

The full output up to that point is attached. This was a completely fresh fclone of the jdk7
forest (e8ebdf41b9c0) to rule out any local modifications.

Is this error expected? I just commented the @Override so I could build. I'm a bit wondering how
this bootstrap can work with a JDK6, but I didn't try that yet.

Regards,
--
Andreas

-- 
Never attribute to malice that which can be adequately explained by
stupidity.                                        -- Hanlon's Razor
-------------- next part --------------
Building
Control linux amd64 1.7.0-internal all build started: 10-10-20 09:17

Build Machine Information:
   build machine = tiamaria.ams.fredhopper.com

Build Directory Structure:
   CWD = /local/andreask-nonbackup/jdk7
   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   = /local/andreask-nonbackup/jdk7/build/linux-amd64/hotspot/outputdir 
      HOTSPOT_EXPORT_PATH = /local/andreask-nonbackup/jdk7/build/linux-amd64/hotspot/import 
 



Bootstrap Settings:
  BOOTDIR = /usr/java/openjdk-current
    ALT_BOOTDIR = /usr/java/openjdk-current
  BOOT_VER = 1.7.0 [requires at least 1.6]
  OUTPUTDIR = /local/andreask-nonbackup/jdk7/build/linux-amd64
    ALT_OUTPUTDIR = /local/andreask-nonbackup/jdk7/build/linux-amd64
  ABS_OUTPUTDIR = /local/andreask-nonbackup/jdk7/build/linux-amd64
 
Build Tool Settings:
  SLASH_JAVA = /NOT-SET
    ALT_SLASH_JAVA = 
  VARIANT = OPT
  JDK_DEVTOOLS_DIR = /NOT-SET/devtools
    ALT_JDK_DEVTOOLS_DIR = 
  ANT_HOME = /local/home/andreask/modules/apache-ant-1.7.1
  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 = 
  COMPILER_NAME = GCC4
  COMPILER_VERSION = GCC4
  CC_VER = 4.4.4 [requires at least 4.3.0]
  ZIP_VER = 2.31 [requires at least 2.2]
  UNZIP_VER = 5.52 [requires at least 5.12]
  ANT_VER = 1.7.1 [requires at least 1.6.3]
  TEMPDIR = /local/andreask-nonbackup/jdk7/build/linux-amd64/tmp
 
Build Directives:
  OPENJDK = true
  USE_HOTSPOT_INTERPRETER_MODE = 
  PEDANTIC = 
  DEV_ONLY = true
  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 =  -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 -pipe -fno-omit-frame-pointer -D_LITTLE_ENDIAN 
  BOOT_JAVA_CMD = /usr/java/openjdk-current/bin/java -XX:-PrintVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -Xmx896m -Xms128m -XX:PermSize=32m -XX:MaxPermSize=160m
  BOOT_JAVAC_CMD = /usr/java/openjdk-current/bin/javac  -J-XX:ThreadStackSize=1536 -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -encoding ascii -source 6 -target 6 -XDignore.symbol.file=true
  BOOT_JAR_CMD = /usr/java/openjdk-current/bin/jar
  BOOT_JARSIGNER_CMD = /usr/java/openjdk-current/bin/jarsigner
  JAVAC_CMD = /usr/java/openjdk-current/bin/javac  -J-XX:ThreadStackSize=1536 -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m  -source 7 -target 7 -encoding ascii -Xbootclasspath:/local/andreask-nonbackup/jdk7/build/linux-amd64/classes 
  JAVAH_CMD = /usr/java/openjdk-current/bin/javah -bootclasspath /local/andreask-nonbackup/jdk7/build/linux-amd64/classes
  JAVADOC_CMD = /usr/java/openjdk-current/bin/javadoc -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -bootclasspath /local/andreask-nonbackup/jdk7/build/linux-amd64/classes
 
Build Platform Settings:
  USER = andreask
  PLATFORM = linux
  ARCH = amd64
  LIBARCH = amd64
  ARCH_FAMILY = amd64
  ARCH_DATA_MODEL = 64
  ARCHPROP = amd64
  ALSA_VERSION = 1.0.23
  OS_VERSION = 2.6.32.21-168.fc12.x86_64 [requires at least 2.6]
  OS_VARIANT_NAME = Fedora
  OS_VARIANT_VERSION = 12
  TEMP_FREE_SPACE = 49044600
  FREE_SPACE = 9248748
  MB_OF_MEMORY = 7938
 
GNU Make Settings:
  MAKE = make
  MAKE_VER = 3.81 [requires at least 3.78]
  MAKECMDGOALS = sanity
  MAKEFLAGS = s
  SHELL = /bin/sh
 
Target Build Versions:
  JDK_VERSION = 1.7.0
  MILESTONE = internal
  RELEASE = 1.7.0-internal
  FULL_VERSION = 1.7.0-internal-andreask_2010_10_20_09_17-b00
  BUILD_NUMBER = b00
 
External File/Binary Locations:
  USRJDKINSTANCES_PATH = /opt/java
  BUILD_JDK_IMPORT_PATH = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries
    ALT_BUILD_JDK_IMPORT_PATH = 
  JDK_IMPORT_PATH = /usr/java/openjdk-current
    ALT_JDK_IMPORT_PATH = /usr/java/openjdk-current
  LANGTOOLS_DIST = 
    ALT_LANGTOOLS_DIST = /local/andreask-nonbackup/jdk7/build/linux-amd64/langtools/dist
  CORBA_DIST = 
    ALT_CORBA_DIST = /local/andreask-nonbackup/jdk7/build/linux-amd64/corba/dist
  JAXP_DIST = 
    ALT_JAXP_DIST = /local/andreask-nonbackup/jdk7/build/linux-amd64/jaxp/dist
  JAXWS_DIST = 
    ALT_JAXWS_DIST = /local/andreask-nonbackup/jdk7/build/linux-amd64/jaxws/dist
  HOTSPOT_DOCS_IMPORT_PATH = /NO_DOCS_DIR
    ALT_HOTSPOT_DOCS_IMPORT_PATH = 
  HOTSPOT_IMPORT_PATH = /local/andreask-nonbackup/jdk7/build/linux-amd64/hotspot/import
    ALT_HOTSPOT_IMPORT_PATH = /local/andreask-nonbackup/jdk7/build/linux-amd64/hotspot/import
  HOTSPOT_SERVER_PATH = /local/andreask-nonbackup/jdk7/build/linux-amd64/hotspot/import/jre/lib/amd64/server
    ALT_HOTSPOT_SERVER_PATH = 
  CACERTS_FILE = /usr/java/openjdk-current/jre/lib/security/cacerts
    ALT_CACERTS_FILE = /usr/java/openjdk-current/jre/lib/security/cacerts
  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 = 
 
OPENJDK Import Binary Plug Settings:
  IMPORT_BINARY_PLUGS = true
  BINARY_PLUGS_JARFILE = /local/andreask-nonbackup/jdk7/openjdk-binary-plugs//jre/lib/rt-closed.jar
    ALT_BINARY_PLUGS_JARFILE = 
  BINARY_PLUGS_PATH = /local/andreask-nonbackup/jdk7/openjdk-binary-plugs/
    ALT_BINARY_PLUGS_PATH = /local/andreask-nonbackup/jdk7/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/java/openjdk-current
    ALT_PREVIOUS_RELEASE_IMAGE = 


WARNING: Your build environment has the variable DEV_ONLY
         defined. This will result in a development-only
         build of the JDK, lacking the documentation
         build and installation bundles.
 
WARNING: Can't locate pre-built libraries. 
       Please check your access to 
           /local/andreask-nonbackup/jdk7/openjdk-binary-plugs/ 
       and/or check your value of ALT_BINARY_PLUGS_PATH. 
 
Sanity check passed.
Control linux amd64 1.7.0-internal all_product_build build started: 10-10-20 09:17
Control linux amd64 1.7.0-internal build_product_image build started: 10-10-20 09:17


########################################################################
########################################################################
##### Entering  langtools for target  all                          #####
########################################################################
Buildfile: build.xml

-def-pcompile:

-def-build-classes:

-def-build-bootstrap-classes:

-def-build-jar:

-def-build-bootstrap-jar:

-def-check:

-check-boot.java.home:

-def-build-tool:

-def-build-bootstrap-tool:

build-bootstrap-javac:
    [javac] Compiling 78 source files to /local/andreask-nonbackup/jdk7/build/linux-amd64/langtools/build/bootstrap/classes
    [javac] /local/andreask-nonbackup/jdk7/langtools/src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java:372: method does not override or implement a method from a supertype
    [javac]             @Override
    [javac]             ^
    [javac] 1 error

BUILD FAILED
/local/andreask-nonbackup/jdk7/langtools/make/build.xml:413: The following error occurred while executing this line:
/local/andreask-nonbackup/jdk7/langtools/make/build.xml:756: Compile failed; see the compiler error output for details.

Total time: 11 seconds
make[3]: *** [build] Error 1
make[2]: *** [langtools-build] Error 2
make[1]: *** [build_product_image] Error 2
make: *** [dev-build] Error 2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://mail.openjdk.java.net/pipermail/build-dev/attachments/20101020/ecd3a693/signature.asc>


More information about the build-dev mailing list