微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

OpenJDK:Solaris 11中的JDK8U:交叉编译,使用`--host'

如何解决OpenJDK:Solaris 11中的JDK8U:交叉编译,使用`--host'

Solaris 11系统详细信息:

 Oracle Solaris 11.3 X86
  copyright (c) 1983,2018,Oracle and/or its affiliates.  All rights reserved.
                             Assembled 02 march 2018

# isainfo -v
64-bit amd64 applications
        avx xsave pclmulqdq aes movbe sse4.2 sse4.1 ssse3 amd_lzcnt popcnt tscp
        ahf cx16 sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu mpx prfchw
        adx rdseed efs rtm hle bmi2 avx2 bmi1 f16c fma rdrand
32-bit i386 applications
        avx xsave pclmulqdq aes movbe sse4.2 sse4.1 ssse3 amd_lzcnt popcnt tscp
        ahf cx16 sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu mpx prfchw adx
        rdseed efs rtm hle bmi2 avx2 bmi1 f16c fma rdrand
# uname -m
i86pc

从Mercurial Repo下载的openjdk-jdk8u源代码: 汞克隆http://hg.openjdk.java.net/jdk8u/jdk8u/ jdk8u

bash ./configure --with-boot-jdk=/export/home/sa/jdk1.8.0_121 --with-tools-dir=/home/sa/Solarisstudio12.3-solaris-x86-bin/solarisstudio12.3/bin/

得到以下错误

checking if CC is disguised ccache... no,keeping CC
configure: Using solstudio C compiler version 5.12 [cc: Sun C 5.12 SunOS_i386 2011/11/16]
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/export/home/sa/preethi/jdk8u':
configure: error: cannot run C compiled programs.
If you meant to cross compile,use `--host'.
See `config.log' for more details
configure exiting with result code 1

我尝试给.host = i386提供./configure,但出现以下错误

checking build system type... x86_64-pc-solaris2.11
checking host system type... i386-pc-none
checking target system type... i386-pc-none
checking openjdk-build os-cpu... solaris-x86_64
configure: error: unsupported operating system none
configure exiting with result code 1

我应该为--host选项提供什么?我已经尝试过i386,i86,x86_64。

使用--host = x86_64:

checking build system type... x86_64-pc-solaris2.11
checking host system type... x86_64-pc-none
checking target system type... x86_64-pc-none
checking openjdk-build os-cpu... solaris-x86_64
configure: error: unsupported operating system none
configure exiting with result code 1

请提出建议。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。