编译OpenJDK8-u332:/bin/sh: 1: [: -a: unexpected operator/line 0: [: too many arguments

简介: 编译OpenJDK8-u332:/bin/sh: 1: [: -a: unexpected operator/line 0: [: too many arguments

具体错误:

$ make all
/bin/sh: 1: [: -a: unexpected operator
/bin/sh: line 0: [: too many arguments
^C/home/wuxi/jdk8u-jdk8u332-ga//make/Main.gmk:203: recipe for target '/home/wuxi/jdk8u-jdk8u332-ga/build/linux-x86_64-normal-server-release/source_tips' failed
make: *** [/home/wuxi/jdk8u-jdk8u332-ga/build/linux-x86_64-normal-server-release/source_tips] 中断

解决办法一

make时不要有任何参数。编译结果中没有images。这显然是不能满意的。


解决办法二

使用老版本的make/common/MakeBase.gmk


解决办法三

修改make/common/MakeBase.gmk,从319的define GetSourceTips一行开始,修改如下:


define GetSourceTips
  $(CD) $(SRC_ROOT) ; \
    # TSIT: con't work ok.
  # if [ -d $(SCM_DIR) -a "$(SCM_VERSION)" != "" ] ; then \
  #   $(ID_COMMAND) >> $@ ; \
  # elif [ -f $(SCM_TIP_FILENAME) ] ; then \
    #       $(SCM_TIP_FILECMD) >> $@ ; \
  # fi;
  for i in $(REPO_LIST) IGNORE ; do \
   if [ "$${i}" = "IGNORE" ] ; then \
     continue; \
   elif [ -d $${i}/$(HG_DIRECTORY) -a "$(HG_VERSION)" != "" ] ; then \
     $(PRINTF) " %s:%s" \
         "$${i}" `$(HG) id -i --repository $${i}` ; \
   elif [ -f $${i}/$(HGTIP_FILENAME) ] ; then \
     $(PRINTF) " %s:%s" \
         "$${i}" `$(CAT) $${i}/$(HGTIP_FILENAME)` ; \
   fi; \
  done >> $@
  $(PRINTF) "\n" >> $@
endef

目录
相关文章
|
6月前
|
开发者 Python
【Python】已解决:TypeError: __init__() got an unexpected keyword argument ‘port’
【Python】已解决:TypeError: __init__() got an unexpected keyword argument ‘port’
910 0
【Python】已解决:TypeError: __init__() got an unexpected keyword argument ‘port’
7-10|could not find expected ':' in "/data/csjs/docker-compose.yml", line 549, column 19
7-10|could not find expected ':' in "/data/csjs/docker-compose.yml", line 549, column 19
|
6月前
|
机器学习/深度学习 Python
【Python】已解决TypeError: init() got an unexpected keyword argument ‘threshold’
【Python】已解决TypeError: init() got an unexpected keyword argument ‘threshold’
304 0
|
6月前
|
Python
【Python】已完美解决:ValueError: Of the four parameters: start, end, periods, and freq, exactly three must
【Python】已完美解决:ValueError: Of the four parameters: start, end, periods, and freq, exactly three must
57 0
|
7月前
|
编译器
“Could not determine which ”make“ command to run. Check the ”make“ step in the build configuration.”
“Could not determine which ”make“ command to run. Check the ”make“ step in the build configuration.”
106 0
|
8月前
MTK在编译10A的target时报错:make: *** [mmi_feature_check]
MTK在编译10A的target时报错:make: *** [mmi_feature_check]
35 0
|
TensorFlow 算法框架/工具 Python
成功解决File "frozen importlib._bootstrap", line 219, in _call_with_frames_removed ImportError: DLL lo
成功解决File "frozen importlib._bootstrap", line 219, in _call_with_frames_removed ImportError: DLL lo
成功解决File "frozen importlib._bootstrap", line 219, in _call_with_frames_removed ImportError: DLL lo
|
移动开发 Unix Shell
/bin/bash^M: bad interpreter: No such file or directory
/bin/bash^M: bad interpreter: No such file or directory
123 0
编译OpenJDK11:configure: error: Target CPU mismatch. We are building for x86_64 but CL is for “版“; exp
编译OpenJDK11:configure: error: Target CPU mismatch. We are building for x86_64 but CL is for “版“; exp
178 0
|
Linux
编译OpenJDK8:specified bound depends on the length of the source argument
编译OpenJDK8:specified bound depends on the length of the source argument
189 0