我是靠谱客的博主 坚强龙猫,这篇文章主要介绍编译OpenJDK8:get_msc_ver.sh:需要整数表达式/integer expression expected,现在分享给大家,希望可以做个参考。
hotspotmakewindowsget_msc_ver.sh:需要整数表达式。
从58行开始。
- 解决办法一
加一句:MSC_VER_RAW=16.00.303109.01
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15if [ "x$FORCE_MSC_VER" != "x" ]; then echo "MSC_VER=$FORCE_MSC_VER" else MSC_VER_RAW=`cl 2>&1 | "$HEAD" -n 1 | "$SED" 's/.*Version[ ]*([0-9][0-9.]*).*/1/'` MSC_VER_RAW=16.00.303109.01 MSC_VER_MAJOR=`"$ECHO" $MSC_VER_RAW | "$CUT" -d'.' -f1` MSC_VER_MINOR=`"$ECHO" $MSC_VER_RAW | "$CUT" -d'.' -f2` MSC_VER_MICRO=`"$ECHO" $MSC_VER_RAW | "$CUT" -d'.' -f3` if [ "${MSC_VER_MAJOR}" -eq 14 -a "${MSC_VER_MINOR}" -eq 0 -a "${MSC_VER_MICRO}" -eq 30701 ] ; then # This said 1400 but it was really more like VS2003 (VC7) in terms of options MSC_VER=1399 else MSC_VER=`"$EXPR" $MSC_VER_MAJOR * 100 + $MSC_VER_MINOR` fi
- 解决办法二
自行截取版本号:
复制代码
1
2
3
4
5
6
7
8if [ "x$FORCE_MSC_VER" != "x" ]; then echo "MSC_VER=$FORCE_MSC_VER" else MSC_VER_RAW=`cl 2>&1 | "$HEAD" -n 1 | "$SED" 's/.*Version[ ]*([0-9][0-9.]*).*/1/'` MSC_VER_RAW=`cl 2>&1 | "$HEAD" -n 1 | "$SED" 's/.*编译器[ ]*([0-9][0-9.]*).*/1/'` # MSC_VER_RAW=16.00.303109.01
最后
以上就是坚强龙猫最近收集整理的关于编译OpenJDK8:get_msc_ver.sh:需要整数表达式/integer expression expected的全部内容,更多相关编译OpenJDK8:get_msc_ver.sh:需要整数表达式/integer内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复