1

当我从http://hg.openjdk.java.net/jdk8u/jdk8u构建最新代码时,我在 solaris 10 中遇到了一些错误。以下步骤来自:https ://hg.openjdk.java.net/jdk8u/jdk8u/原始文件/提示/README-builds.html

我成功地在同一个系统中构建了 jdk8。但是在构建jdk8u的时候,遇到了一些问题: 配置:

 ./configure --with-tools-dir=/opt/solarisstudio12.4/bin/ --enable-jfr=yes --with-target-bits=32

bash-3.2# uname -a SunOS FFPSNetSec 5.10 Generic_148889-05 i86pc i386 i86pc

/etc/发布:

Oracle Solaris 10 8/11 s10x_u10wos_17b X86
  Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
                            Assembled 23 August 2011

错误:

ld: warning: mapfile: text segment: section '.text%ntohl' does not appear in mapfile specified input file(s)
ld: warning: mapfile: text segment: section '.text%_init' does not appear in any input file
ld: warning: mapfile: text segment: section '.text%init64IO' does not appear in mapfile specified input file(s)
ld: warning: mapfile: text segment: section '.text%setPathEnvironment' does not appear in mapfile specified input file(s)
ld: warning: mapfile: text segment: section '.text%Java_java_io_FileSystem_getFileSystem' does not appear in any input file
ld: warning: mapfile: text segment: section '.text%Java_java_io_UnixFileSystem_canonicalize' does not appear in any input file
ld: warning: mapfile: text segment: section '.text%Java_java_lang_ClassLoader_findLoadedClass' does not appear in any input file
ld: warning: mapfile: text segment: section '.text%Java_java_lang_Float_floatToIntBits' does not appear in any input file
ld: warning: mapfile: text segment: section '.text%Java_java_lang_Double_doubleToLongBits' does not appear in any input file
ld: warning: mapfile: text segment: section '.text%Java_java_lang_Shutdown_halt' does not appear in any input file
ld: warning: mapfile: text segment: section '.text%Java_java_util_logging_FileHandler_lockFile' does not appear in any input file
ld: warning: mapfile: text segment: section '.text%Java_java_util_logging_FileHandler_unlockFile' does not appear in any input file
ld: warning: mapfile: text segment: section '.text%readLOC' does not appear in mapfile specified input file(s)
ld: warning: mapfile: text segment: section '.text%huft_build' does not appear in mapfile specified input file(s)
Undefined                       first referenced
 symbol                             in file
_IO_stdin_used                      /export/home/preethi/openjdk8u/jdk/make/mapfiles/launchers/mapfile-x86
__xargv                             /opt/solarisstudio12.4/lib/compilers/crt1x.o  (symbol has no version assigned)
__xargc                             /opt/solarisstudio12.4/lib/compilers/crt1x.o  (symbol has no version assigned)
ld: fatal: symbol referencing errors. No output written to /export/home/preethi/openjdk8u/build/solaris-x86-normal-server-release/jdk/objs/java_objs/java
gmake[2]: *** [/export/home/preethi/openjdk8u/build/solaris-x86-normal-server-release/jdk/objs/java_objs/java] Error 2
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [launchers-only] Error 2
gmake: *** [jdk-only] Error 2

我尝试了来自 openjdk 的相同 jdk8u 源并构建了 --with-target-bits=64,构建完成,没有任何错误。但我不确定为什么它在 32 位上失败。谁能帮我解决这个问题?

4

1 回答 1

0

不支持 Solaris 上 Java 8 的 32 位版本。

请参阅Oracle JDK 8 和 JRE 8 认证系统配置

于 2020-07-17T13:45:25.630 回答