Move to JDK8

Erik Joelsson erik.joelsson at oracle.com
Mon Dec 19 01:16:39 PST 2011


I managed to reproduce on Thursday and have a fix. This wasn't the only 
problem however, and I'm working on the rest. The office kinda got in 
the way. Should be able to push a fix sometime this week.

/Erik

On 2011-12-14 22:01, Kelly O'Hair wrote:
> Just building the old way, 'make' with ALT vars set, I got this failure on Solaris x86 using Studio 5.10 compilers:
>
> cc -E -DSOLARIS -DSPARC_WORKS -DIA32 -I/u/kohair/hgrepos/jdk8/jdk8-build-infra/hotspot/src/share/vm/prims -I/u/kohair/hgrepos/jdk8/jdk8-build-infra/hotspot/src/share/vm -I/u/kohair/hgrepos/jdk8/jdk8-build-infra/hotspot/src/share/vm/precompiled -I/u/kohair/hgrepos/jdk8/jdk8-build-infra/hotspot/src/cpu/x86/vm -I/u/kohair/hgrepos/jdk8/jdk8-build-infra/hotspot/src/os_cpu/solaris_x86/vm -I/u/kohair/hgrepos/jdk8/jdk8-build-infra/hotspot/src/os/solaris/vm -I/u/kohair/hgrepos/jdk8/jdk8-build-infra/hotspot/src/os/posix/vm -I/u/kohair/hgrepos/jdk8/jdk8-build-infra/hotspot/src/share/vm/adlc -I../generated -DASSERT -DTARGET_OS_FAMILY_solaris -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_32 -DTARGET_OS_ARCH_solaris_x86 -DTARGET_OS_ARCH_MODEL_solaris_x86_32 -DTARGET_COMPILER_sparcWorks -DCOMPILER2 -DCOMPILER1 -DDONT_USE_PRECOMPILED_HEADER  -D_REENTRANT  -library=Cstd -g -xwe -g -c -o ../generated/adfiles/arena.o /u/kohair/hgrepos/jdk8/jdk8-build-infra/hotspot/src/share/vm/adlc/arena.cpp
> cc: Warning: illegal use of -library option, illegal item ignored: Cstd
> cc: Warning: Option -xwe passed to ld, if ld is invoked, ignored otherwise
> cc: Warning: "-c" redefines goal from "preprocessed source (stdout)" to "object file"
> cc: No valid input files specified, no output generated
> cc: Warning: illegal use of -library option, illegal item ignored: Cstd
> cc: Warning: Option -xwe passed to ld, if ld is invoked, ignored otherwise
> cc: Warning: "-c" redefines goal from "preprocessed source (stdout)" to "object file"
> gmake[6]: cc: *** [../generated/adfiles/adlparse.o] Error No valid input files specified, no output generated
> 1
> gmake[6]: *** Waiting for unfinished jobs....
> gmake[6]: *** [../generated/adfiles/archDesc.o] Error 1
> cc: Warning: illegal use of -library option, illegal item ignored: Cstd
> cc: Warning: Option -xwe passed to ld, if ld is invoked, ignored otherwise
> cc: Warning: "-c" redefines goal from "preprocessed source (stdout)" to "object file"
> cc: No valid input files specified, no output generated
> gmake[6]: *** [../generated/adfiles/arena.o] Error 1
> gmake[6]: Leaving directory `/u/kohair/hgrepos/jdk8/jdk8-build-infra/build/solaris-i586/hotspot/outputdir/solaris_i486_compiler2/product'
> gmake[5]: *** [ad_stuff] Error 2
> gmake[5]: Leaving directory `/u/kohair/hgrepos/jdk8/jdk8-build-infra/build/solaris-i586/hotspot/outputdir/solaris_i486_compiler2/product'
> gmake[4]: *** [product] Error 2
> gmake[4]: Leaving directory `/u/kohair/hgrepos/jdk8/jdk8-build-infra/build/solaris-i586/hotspot/outputdir'
> gmake[3]: *** [generic_build2] Error 2
> gmake[3]: Leaving directory `/u/kohair/hgrepos/jdk8/jdk8-build-infra/hotspot/make'
> gmake[2]: *** [product] Error 2
> gmake[2]: Leaving directory `/u/kohair/hgrepos/jdk8/jdk8-build-infra/hotspot/make'
> gmake[1]: *** [hotspot-build] Error 2
> gmake[1]: Leaving directory `/net/svc6.us.oracle.com/u/kohair/hgrepos/jdk8/jdk8-build-infra'
> gmake: *** [build_product_image] Error 2
>
>
> On Dec 13, 2011, at 6:36 AM, Erik Joelsson wrote:
>
>> Hello,
>>
>> I just pushed a whole lot to the JDK8 build-infra-dev forest. I will try to explain what it's all about.
>>
>> At the start of this project, we were working with the assumption that we would build more or less a complete solution and then get to push it in as a replacement for the old build system. Over time we have realized that would be hard, both for consumers getting it all in their face at once, and for us, having to make sure we cover everything in one go. We recently decided to instead try to get small chunks in at a time, and instead of replacing the old system, add it as an alternate system until we make the switch. This way, we will get a lot more visibility and people will be able to try it out in their actual daily work.
>>
>> So far we have been working in a jdk7 forest, basically a copy of what was released as jdk7. But since the project is targeting jdk8, this doesn't really make much sense. It's time to move our work to a jdk8 forest.
>>
>> So what is actually in my push? First I synced up with the JDK8 master. I then started moving the build infra changes in, one repo at a time. The following are done:
>>
>> root
>> langtools
>> corba
>> jaxp (including committing the exploded drops)
>> jaxws (including committing the exploded drops)
>> hotspot
>>
>> And still to be done:
>>
>> jdk
>>
>> In each repo (where applicable) there is a new directory "makefiles" in which the new makefiles reside. Exceptions to this are hotspot and the root. In hotspot the existing makefiles have been modified to be compatible with both the new and old. In the root, everything new is in the directory "common".
>>
>> The common directory in root has the following layout:
>>
>> common/src - Source files for small tools needed by the build.
>> common/makefiles - New makefiles including the main "Makefile"
>> common/bin - Utility executables (scripts)
>> common/autoconf - The configure script and the source for it.
>> common/autoconf/build-aux - The third party autoconf files that we still need to download separately.
>>
>> To build using the new build system in the build-infra-dev jdk8 forest, change directory to "common/makefiles" and:
>>
>> ../autoconf/configure --disable-javac-server --disable-javac-deps --disable-javac-multi-core
>> make
>>
>> Notes: The javac server currently isn't working, so it needs to be disabled. The jdk repo isn't converted yet so the build will fail when hotspot is done.
>>
>> Building in the old way should work just as before.
>>
>> As always, comments and suggestions are welcome!
>>
>> /Erik




More information about the build-infra-dev mailing list