Building open jdk 8 from source fails

lee json jsonlee.ft at
Wed Jan 28 04:20:58 UTC 2015

dist clean and configure (with boot jdk) look correct. But really no
luck when executing make

===== below is the output when executing make dist-clean

Cleaning langtools build artifacts ... done
Cleaning corba build artifacts ... done
Cleaning jaxp build artifacts ... done
Cleaning jaxws build artifacts ... done
Cleaning hotspot build artifacts ... done
Cleaning jdk build artifacts ... done
Cleaning nashorn build artifacts ... done
Cleaning images build artifacts ... done
Cleaning overlay-images build artifacts ... done
Cleaning bootcycle-build build artifacts ... done
Cleaning docs build artifacts ... done
Cleaning docstemp build artifacts ... done
Cleaning testoutput build artifacts ... done
Cleaned all build artifacts.
Removing configuration directory for 'linux-x86-normal-server-release'
Cleaned everything, you will have to re-run configure.

===== below is the output when executing configure --with-boot-jdk

A new configuration has been successfully created in
using configure arguments '--with-boot-jdk=/home/jason/jdk1.7.0_60

Configuration summary:
* Debug level:    release
* JDK variant:    normal
* JVM variants:   server
* OpenJDK target: OS: linux, CPU architecture: x86, address length: 32

Tools summary:
* Boot JDK:       java version "1.7.0_60" Java(TM) SE Runtime
Environment (build 1.7.0_60-b19) Java HotSpot(TM) Server VM (build
24.60-b09, mixed mode)  (at /home/jason/jdk1.7.0_60)
* C Compiler:     gcc-4.9 (Debian 4.9.1-19) version 4.9.1 (at /usr/bin/gcc-4.9)
* C++ Compiler:   g++-4.9 (Debian 4.9.1-19) version 4.9.1 (at /usr/bin/g++-4.9)

Build performance summary:
* Cores to use:   4
* Memory limit:   7998 MB
* ccache status:  installed, but disabled (version older than 3.1.4)

============ below is the output when executing make

Building OpenJDK for target 'default' in configuration

## Starting langtools
Compiling 2 files for BUILD_TOOLS
error: cannot find symbol
        return tk.accepts(S.token(lookahead + 1).kind);
  symbol:   variable kind
  location: class Token


100 errors
make[1]: *** No rule to make target 'all', needed by 'default'.  Stop.
/home/jason/projects/jdk8u-dev//make/Main.gmk:83: recipe for target
'langtools-only' failed
make: *** [langtools-only] Error 2

On 27 January 2015 at 21:35, Magnus Ihse Bursie
<magnus.ihse.bursie at> wrote:
> On 2015-01-27 13:07, lee json wrote:
>> No luck. After running bash, then re-configure, make,
>> etc. still produce the same error.
> Did you run "make clean"? You can even try running "make dist-clean" and
> re-running configure to really start from a clean slate.
> /Magnus
>> On 23 January 2015 at 20:12, Magnus Ihse Bursie
>> <magnus.ihse.bursie at> wrote:
>>> On 2015-01-18 04:47, lee json wrote:
>>>> I switch to cloning repository at
>>>> by command `hg clone
>>>> Then build with command line `bash ./configure
>>>> --with-boot-jdk=/home/jason/jdk1.7.0_6` or `bash ./configure`. And
>>>> then execute `make` or `make all` command.
>>>> The first step i.e. configure successfully completes. Its output looks
>>>> as the section configure. But failing compile source as the section of
>>>> make, when calling make/ make all. With or wihtout make clean before
>>>> make/ make all doesn't make any differences.
>>>> How to fix such errors? Thanks
>>> It looks like you have not gotten all source code correctly. Just cloning
>>> the top-level repo is not enough.
>>> Try running "bash".
>>> /Magnus

More information about the build-dev mailing list