【发布时间】:2020-07-14 16:55:50
【问题描述】:
当我从http://hg.openjdk.java.net/jdk8u/jdk8u 构建最新代码时,我在 solaris 10 中遇到了一些错误。 以下步骤来自:https://hg.openjdk.java.net/jdk8u/jdk8u/raw-file/tip/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/release:
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 位上失败。 谁能帮我解决这个问题?
【问题讨论】:
标签: java java-8 solaris-10 solaris-studio