Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.4k views
in Technique[技术] by (71.8m points)

Ubuntu 18.04 编译openjdk8 失败

### 在Ubuntu 18.04下编译open jdk8失败

### 系统环境 操作系统:Ubuntu 18.04 编译的版本1.8 引导的JDK 1.7.0_80

### 相关代码
报错如下(截取后半部分):

...之前的省略
----_JAVA_LAUNCHER_DEBUG----
Generating Nimbus source files
[Error] encoded value was less than 0: encode(-8.326673E-17, 5.0, 11.0, 16.0)
[Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
[Error] encoded value was greater than 3: encode(15.029411, 1.0, 14.0, 15.0)
[Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
[Error] encoded value was greater than 3: encode(15.029411, 1.0, 14.0, 15.0)
[Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
[Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
[Error] encoded value was greater than 3: encode(15.029411, 1.0, 14.0, 15.0)
[Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
[Error] encoded value was greater than 3: encode(15.029411, 1.0, 14.0, 15.0)
[Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
[Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
[Error] encoded value was greater than 3: encode(15.029411, 1.0, 14.0, 15.0)
[Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
[Error] encoded value was greater than 3: encode(15.029411, 1.0, 14.0, 15.0)
[Error] encoded value was less than 0: encode(-0.05882353, 1.0, 24.0, 25.0)
[Error] Encountered Infinity: encode(-0.00877193, 0.0, 7.0, 7.0)
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1583: 错误: 非法的类型开始
----_JAVA_LAUNCHER_DEBUG----
^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1583: 错误: 需要';'
----_JAVA_LAUNCHER_DEBUG----
  ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1583: 错误: 需要<标识符>
----_JAVA_LAUNCHER_DEBUG----
                        ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1583: 错误: 非法的类型开始
----_JAVA_LAUNCHER_DEBUG----
                          ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1584: 错误: 需要';'
Launcher state:
        ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1584: 错误: 需要<标识符>
Launcher state:
              ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1585: 错误: 需要<标识符>
    debug:on
         ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1586: 错误: 需要';'
    javargs:off
           ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1587: 错误: 需要';'
    program name:java
           ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1587: 错误: 需要<标识符>
    program name:java
                ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1588: 错误: 需要';'
    launcher name:java
            ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1588: 错误: 需要<标识符>
    launcher name:java
                 ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1589: 错误: 需要';'
    javaw:off
         ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1590: 错误: 需要';'
    fullversion:1.7.0_80-b15
               ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1591: 错误: 需要';'
    dotversion:1.7
              ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1592: 错误: 需要<标识符>
    ergo_policy:DEFAULT_ERGONOMICS_POLICY
               ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1593: 错误: 需要';'
Command line args:
       ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1593: 错误: 需要';'
Command line args:
                 ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1594: 错误: 需要']'
argv[0] = /home/insaneXs/jdk1.7.0_80/bin/java
     ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1594: 错误: 需要';'
argv[0] = /home/insaneXs/jdk1.7.0_80/bin/java
      ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1594: 错误: 非法的类型开始
argv[0] = /home/insaneXs/jdk1.7.0_80/bin/java
        ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1594: 错误: 需要<标识符>
argv[0] = /home/insaneXs/jdk1.7.0_80/bin/java
         ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1594: 错误: 需要';'
argv[0] = /home/insaneXs/jdk1.7.0_80/bin/java
           ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1594: 错误: 非法的类型开始
argv[0] = /home/insaneXs/jdk1.7.0_80/bin/java
               ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1594: 错误: 需要';'
argv[0] = /home/insaneXs/jdk1.7.0_80/bin/java
                        ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1594: 错误: 需要<标识符>
argv[0] = /home/insaneXs/jdk1.7.0_80/bin/java
                             ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1594: 错误: 非法的类型开始
argv[0] = /home/insaneXs/jdk1.7.0_80/bin/java
                               ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1594: 错误: 需要<标识符>
argv[0] = /home/insaneXs/jdk1.7.0_80/bin/java
                                    ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1594: 错误: 需要';'
argv[0] = /home/insaneXs/jdk1.7.0_80/bin/java
                                     ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1594: 错误: 非法的类型开始
argv[0] = /home/insaneXs/jdk1.7.0_80/bin/java
                                        ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1594: 错误: 需要';'
argv[0] = /home/insaneXs/jdk1.7.0_80/bin/java
                                             ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1595: 错误: 需要']'
argv[1] = -XX:+UseSerialGC
     ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1595: 错误: 需要';'
argv[1] = -XX:+UseSerialGC
      ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1595: 错误: 非法的类型开始
argv[1] = -XX:+UseSerialGC
        ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1595: 错误: 需要<标识符>
argv[1] = -XX:+UseSerialGC
         ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1595: 错误: 需要';'
argv[1] = -XX:+UseSerialGC
           ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1595: 错误: 非法的类型开始
argv[1] = -XX:+UseSerialGC
             ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1595: 错误: 需要<标识符>
argv[1] = -XX:+UseSerialGC
              ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1595: 错误: 需要';'
argv[1] = -XX:+UseSerialGC
               ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1596: 错误: 需要']'
argv[2] = -Xms32M
     ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1596: 错误: 需要';'
argv[2] = -Xms32M
      ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1596: 错误: 非法的类型开始
argv[2] = -Xms32M
        ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1596: 错误: 需要<标识符>
argv[2] = -Xms32M
         ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1596: 错误: 需要';'
argv[2] = -Xms32M
           ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1597: 错误: 需要']'
argv[3] = -Xmx512M
     ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1597: 错误: 需要';'
argv[3] = -Xmx512M
      ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1597: 错误: 非法的类型开始
argv[3] = -Xmx512M
        ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1597: 错误: 需要<标识符>
argv[3] = -Xmx512M
         ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1597: 错误: 需要';'
argv[3] = -Xmx512M
           ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1598: 错误: 需要']'
argv[4] = -cp
     ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1598: 错误: 需要';'
argv[4] = -cp
      ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1598: 错误: 非法的类型开始
argv[4] = -cp
        ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1598: 错误: 需要<标识符>
argv[4] = -cp
         ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1598: 错误: 需要';'
argv[4] = -cp
           ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1599: 错误: 需要']'
argv[5] = /home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/btclasses
     ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1599: 错误: 需要';'
argv[5] = /home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/btclasses
      ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1599: 错误: 非法的类型开始
argv[5] = /home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/btclasses
        ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1599: 错误: 需要<标识符>
argv[5] = /home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java

这个文件的内容打出来看看, 看上去这个文件根本就不是Java代码。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...