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 (将#修改为@)