Ubuntu 18.04 编译openjdk8 失败

insaneXs
  • 67

\#\#\# 在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-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-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-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-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-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:1600: 错误: 需要']'
argv[6] = build.tools.spp.Spp
     ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1600: 错误: 非法的类型开始
argv[6] = build.tools.spp.Spp
      ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1600: 错误: 需要<标识符>
argv[6] = build.tools.spp.Spp
       ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1600: 错误: 需要';'
argv[6] = build.tools.spp.Spp
         ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1600: 错误: 非法的类型开始
argv[6] = build.tools.spp.Spp
               ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1600: 错误: 需要';'
argv[6] = build.tools.spp.Spp
                     ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1601: 错误: 需要']'
argv[7] = -Dtype=char
     ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1601: 错误: 非法的类型开始
argv[7] = -Dtype=char
      ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1601: 错误: 需要<标识符>
argv[7] = -Dtype=char
       ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1601: 错误: 需要';'
argv[7] = -Dtype=char
         ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1601: 错误: 需要<标识符>
argv[7] = -Dtype=char
                ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1602: 错误: 需要 '.class'
argv[8] = -DType=Char
^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1602: 错误: 非法的类型开始
argv[8] = -DType=Char
    ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1602: 错误: 需要<标识符>
argv[8] = -DType=Char
     ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1602: 错误: 需要';'
argv[8] = -DType=Char
      ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1602: 错误: 非法的类型开始
argv[8] = -DType=Char
        ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1602: 错误: 需要<标识符>
argv[8] = -DType=Char
         ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1602: 错误: 需要';'
argv[8] = -DType=Char
           ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1602: 错误: 非法的类型开始
argv[8] = -DType=Char
                ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1602: 错误: 需要';'
argv[8] = -DType=Char
                     ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1603: 错误: 需要']'
argv[9] = -Dfulltype=character
     ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1603: 错误: 需要';'
argv[9] = -Dfulltype=character
      ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1603: 错误: 非法的类型开始
argv[9] = -Dfulltype=character
        ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1603: 错误: 需要<标识符>
argv[9] = -Dfulltype=character
         ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1603: 错误: 需要';'
argv[9] = -Dfulltype=character
           ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1603: 错误: 非法的类型开始
argv[9] = -Dfulltype=character
                    ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1603: 错误: 需要';'
argv[9] = -Dfulltype=character
                              ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1604: 错误: 需要']'
argv[10] = -Dmemtype=char
     ^
/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc/java/nio/ByteBuffer.java:1604: 错误: 需要';'
argv[10] = -Dmemtype=char
       ^
make[2]: *** [/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc_no_srczip/_the.generated_beaninfo] Error 1
gensrc/GensrcSwing.gmk:77: recipe for target '/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc_no_srczip/_the.generated_beaninfo' failed
make[2]: *** 正在等待未完成的任务....
----_JAVA_LAUNCHER_DEBUG----
Launcher state:
    debug:on
    javargs:off
    program name:java
    launcher name:java
    javaw:off
    fullversion:1.7.0_80-b15
    dotversion:1.7
    ergo_policy:DEFAULT_ERGONOMICS_POLICY
Command line args:
argv[0] = /home/insaneXs/jdk1.7.0_80/bin/java
argv[1] = -XX:+UseSerialGC
argv[2] = -Xms32M
argv[3] = -Xmx512M
argv[4] = -cp
argv[5] = /home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/btclasses
argv[6] = build.tools.cldrconverter.CLDRConverter
argv[7] = -base
argv[8] = /home/insaneXs/learn-jvm/openjdk/jdk/src/share/classes/sun/util/cldr/resources/21_0_1
argv[9] = -o
argv[10] = /home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc
JRE path is /home/insaneXs/jdk1.7.0_80/jre
jvm.cfg[0] = ->-server<-
jvm.cfg[1] = ->-client<-
jvm.cfg[2] = ->-hotspot<-
jvm.cfg[3] = ->-classic<-
jvm.cfg[4] = ->-native<-
jvm.cfg[5] = ->-green<-
1 micro seconds to parse jvm.cfg
Default VM: server
Does `/home/insaneXs/jdk1.7.0_80/jre/lib/amd64/server/libjvm.so' exist ... yes.
mustsetenv: FALSE
JVM path is /home/insaneXs/jdk1.7.0_80/jre/lib/amd64/server/libjvm.so
1 micro seconds to LoadJavaVM
JavaVM args:
    version 0x00010002, ignoreUnrecognized is JNI_FALSE, nOptions is 9
    option[ 0] = '-Dsun.java.launcher.diag=true'
    option[ 1] = '-Djava.class.path=.'
    option[ 2] = '-XX:+UseSerialGC'
    option[ 3] = '-Xms32M'
    option[ 4] = '-Xmx512M'
    option[ 5] = '-Djava.class.path=/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/btclasses'
    option[ 6] = '-Dsun.java.command=build.tools.cldrconverter.CLDRConverter -base /home/insaneXs/learn-jvm/openjdk/jdk/src/share/classes/sun/util/cldr/resources/21_0_1 -o /home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc'
    option[ 7] = '-Dsun.java.launcher=SUN_STANDARD'
    option[ 8] = '-Dsun.java.launcher.pid=9108'
1 micro seconds to InitializeJVM
Main class is 'build.tools.cldrconverter.CLDRConverter'
App's argc is 4
    argv[ 0] = '-base'
    argv[ 1] = '/home/insaneXs/learn-jvm/openjdk/jdk/src/share/classes/sun/util/cldr/resources/21_0_1'
    argv[ 2] = '-o'
    argv[ 3] = '/home/insaneXs/learn-jvm/openjdk/build/linux-x86_64-normal-server-slowdebug/jdk/gensrc'
1 micro seconds to load main class
----_JAVA_LAUNCHER_DEBUG----
BuildJdk.gmk:55: recipe for target 'gensrc-only' failed
make[1]: *** [gensrc-only] Error 2
/home/insaneXs/learn-jvm/openjdk//make/Main.gmk:115: recipe for target 'jdk-only' failed
make: *** [jdk-only] Error 2

\#\#\# 希望有大神可以帮忙看一下是什么问题,谢谢!

回复
阅读 1.1k
1 个回答
✓ 已被采纳

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

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

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏