您当前的位置: 首页 >  ar

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

LINUX编译OPENJDK:The tested number of bits in the target (0) differs from the number of bits expected

柳鲲鹏 发布时间:2019-10-24 10:44:52 ,浏览量:0

  • 错误:

The tested number of bits in the target (0) differs from the number of bits expected to be found in the target

  • 解决办法:

1、使用新的JDK版本。我现在编译已经没有这个错误了。

2、编译时指明64位。参数是:--with-target-bits=64

3、修改配置文件。

打开common/autoconf/generated-configure.sh,搜索这个语句,把判断语句用到的两个变量改为64即可。如:

      TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p`

# 加上这一句
TESTED_TARGET_CPU_BITS=64

      if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
        as_fn_error $? "The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" "$LINENO" 5
      fi

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.1173s