OpenJDK9 - build errors on Linux/Ubuntu 12.04

Erik Joelsson erik.joelsson at oracle.com
Mon Aug 25 09:04:42 UTC 2014


I renamed the file make/common/SetupJava.gmk to 
make/common/SetupJavaCompilers.gmk. This required changes in both the 
root repo and the jdk repo and AFAIK I pushed both more or less at the 
same time. I'm guessing you still managed to hit the race condition when 
pulling changes.

/Erik

On 2014-08-25 04:36, Martin Buchholz wrote:
> I tried again today ( with jdk9/jdk9-dev ) and everything works now. 
>  I believe the problem was fixed by the following, which replaced 
> erroneous references to SetupJava.gmk
>
> # HG changeset patch
> # User erikj
> # Date 1408611935 -7200
> #      Thu Aug 21 11:05:35 2014 +0200
> # Node ID b8f27b54cc51c17c7debcf7048c8b81b221f931c
> # Parent  0aa1bc5db42cb7b66678181bc32fefdb8bafcba8
> 8055188: General cleanup of minor issues from source restructure
> Reviewed-by: tbell
>
>
>
> On Sun, Aug 24, 2014 at 7:18 PM, David Holmes <david.holmes at oracle.com 
> <mailto:david.holmes at oracle.com>> wrote:
>
>     cc'ing hotspot-dev
>
>     Which forest are you trying to build and is it fully up to date?
>
>     David
>
>
>     On 23/08/2014 9:10 AM, Mani Sarkar wrote:
>
>         Hi,
>
>         Lately I have been getting a lot of build failures and the
>         most recent ones
>         are the below (snippets of the error messages from the logs):
>
>         *First instance after running make images*
>         .
>         .
>         .
>         make[4]: warning: -jN forced in submake: disabling jobserver mode.
>         INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
>         INFO: ALT_OBJCOPY=/usr/bin/objcopy
>         INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
>         INFO: STRIP_POLICY=min_strip
>         INFO: ZIP_DEBUGINFO_FILES=1
>         INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
>         INFO: ALT_OBJCOPY=/usr/bin/objcopy
>         INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
>         INFO: STRIP_POLICY=min_strip
>         INFO: ZIP_DEBUGINFO_FILES=1
>         Compiling 163 files for BUILD_TOOLS_JDK
>         Compiling 1492 files for BUILD_INTERIM_CORBA
>         Rescanned ../generated/adfiles/linux_x86_64.ad
>         <http://linux_x86_64.ad>  but encountered no changes.
>         INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
>         INFO: ALT_OBJCOPY=/usr/bin/objcopy
>         INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
>         INFO: STRIP_POLICY=min_strip
>         INFO: ZIP_DEBUGINFO_FILES=1
>         INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
>         INFO: ALT_OBJCOPY=/usr/bin/objcopy
>         INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
>         INFO: STRIP_POLICY=min_strip
>         INFO: ZIP_DEBUGINFO_FILES=1
>         **NOTICE** Dtrace support disabled: //usr/include/sys/sdt.h
>         not found
>         INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
>         INFO: ALT_OBJCOPY=/usr/bin/objcopy
>         INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
>         INFO: STRIP_POLICY=min_strip
>         INFO: ZIP_DEBUGINFO_FILES=1
>         INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
>         INFO: ALT_OBJCOPY=/usr/bin/objcopy
>         INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
>         INFO: STRIP_POLICY=min_strip
>         INFO: ZIP_DEBUGINFO_FILES=1
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/parNew/asParNewGeneration.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/os_cpu/linux_x86/vm/assembler_linux_x86.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/cpu/x86/vm/assembler_x86.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/runtime/atomic.cpp
>         In file included from
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/parNew/asParNewGeneration.cpp:28:0:
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/parNew/asParNewGeneration.hpp:
>         In member function ‘virtual Generation::Name
>         ASParNewGeneration::kind()’:
>         .
>         .
>         .
>         In file included from
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/parNew/asParNewGeneration.cpp:28:0:
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/parNew/asParNewGeneration.hpp:
>         In member function ‘virtual Generation::Name
>         ASParNewGeneration::kind()’:
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/parNew/asParNewGeneration.hpp:81:44:
>         error: ‘ASParNew’ was not declared in this scope
>         /home/satyasai/sources/jdk9/jdk/make/src/classes/build/tools/tzdb/TzdbZoneRulesProvider.java:274:
>         error: incompatible types: Month cannot be converted to int
>                          LocalDate adjustedDate = LocalDate.of(year,
>         month,
>         dayOfMonth).minusDays(6);
>         .
>         .
>         .
>         15 errors
>         make[3]: ***
>         [/home/satyasai/sources/jdk9/build/linux-x86_64-normal-server-release/jdk/btclasses/_the.BUILD_TOOLS_JDK_batch]
>         Error 1
>         make[2]: *** [build-tools-jdk] Error 2
>         make[2]: *** Waiting for unfinished jobs....
>         make[8]: *** [asParNewGeneration.o] Error 1
>         make[8]: *** Waiting for unfinished jobs....
>         Note: Some input files use or override a deprecated API.
>         Note: Recompile with -Xlint:deprecation for details.
>         Note: Some input files use unchecked or unsafe operations.
>         Note: Recompile with -Xlint:unchecked for details.
>         Creating corba/dist/interim_corba.jar
>         make[7]: *** [the_vm] Error 2
>         make[6]: *** [product] Error 2
>         make[5]: *** [generic_build2] Error 2
>         make[4]: *** [product] Error 2
>         make[3]: ***
>         [/home/satyasai/sources/jdk9/build/linux-x86_64-normal-server-release/hotspot/_hotspot.timestamp]
>         Error 2
>         make[2]: *** [hotspot] Error 2
>         make[1]: *** [main-wrapper] Error 2
>         make: *** [images] Error 2
>
>
>         *Second instance after running make clean followed by make images*
>         .
>         .
>         .
>         INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
>         INFO: ALT_OBJCOPY=/usr/bin/objcopy
>         INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
>         INFO: STRIP_POLICY=min_strip
>         INFO: ZIP_DEBUGINFO_FILES=1
>         Generating precompiled header precompiled.hpp.gch
>         INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
>         INFO: ALT_OBJCOPY=/usr/bin/objcopy
>         INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
>         INFO: STRIP_POLICY=min_strip
>         INFO: ZIP_DEBUGINFO_FILES=1
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/compiler/abstractCompiler.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/utilities/accessFlags.cpp
>         Compiling ../generated/adfiles/ad_x86_64.cpp
>         Compiling ../generated/adfiles/ad_x86_64_clone.cpp
>         Compiling ../generated/adfiles/ad_x86_64_expand.cpp
>         Compiling ../generated/adfiles/ad_x86_64_format.cpp
>         Compiling ../generated/adfiles/ad_x86_64_gen.cpp
>         Compiling ../generated/adfiles/ad_x86_64_misc.cpp
>         Compiling ../generated/adfiles/ad_x86_64_peephole.cpp
>         Compiling ../generated/adfiles/ad_x86_64_pipeline.cpp
>
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/adaptiveFreeList.cpp
>
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/shared/adaptiveSizePolicy.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/opto/addnode.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/parallelScavenge/adjoiningGenerations.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/parallelScavenge/adjoiningVirtualSpaces.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/runtime/advancedThresholdPolicy.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/shared/ageTable.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_interface/allocTracer.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/memory/allocation.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/shared/allocationStats.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/classfile/altHashing.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/oops/annotations.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/runtime/arguments.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/runtime/arguments_ext.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/utilities/array.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/oops/arrayKlass.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/oops/arrayOop.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/parallelScavenge/asPSOldGen.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/parallelScavenge/asPSYoungGen.cpp
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/parNew/asParNewGeneration.cpp
>
>         In file included from
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/parNew/asParNewGeneration.cpp:28:0:
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/parNew/asParNewGeneration.hpp:
>         In member function ‘virtual Generation::Name
>         ASParNewGeneration::kind()’:
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/gc_implementation/parNew/asParNewGeneration.hpp:81:44:
>         error: ‘ASParNew’ was not declared in this scope
>         Compiling
>         /home/satyasai/sources/jdk9/hotspot/src/share/vm/asm/assembler.cpp
>         make[8]: *** [asParNewGeneration.o] Error 1
>         make[8]: *** Waiting for unfinished jobs....
>         make[7]: *** [the_vm] Error 2
>         make[6]: *** [product] Error 2
>         make[5]: *** [generic_build2] Error 2
>         make[4]: *** [product] Error 2
>         make[3]: ***
>         [/home/satyasai/sources/jdk9/build/linux-x86_64-normal-server-release/hotspot/_hotspot.timestamp]
>         Error 2
>         make[2]: *** [hotspot] Error 2
>         make[1]: *** [main-wrapper] Error 2
>         make: *** [images] Error 2
>
>
>         My sources is updated on a regular-basis, and the above are on
>         the most
>         recent version of the source. If you need anything else to
>         help with
>         investigating the the above error please let me know.
>
>         Cheers,
>         Mani
>
>




More information about the build-dev mailing list