编译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
目录
相关文章
|
3月前
|
Python
完美解决丨File “invalid.py“, line 1 print(`Hello World!`) ^ SyntaxError: invalid syntax
完美解决丨File “invalid.py“, line 1 print(`Hello World!`) ^ SyntaxError: invalid syntax
|
Shell
编译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
152 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
130 0
|
Linux
编译OpenJDK8:specified bound depends on the length of the source argument
编译OpenJDK8:specified bound depends on the length of the source argument
141 0
|
PyTorch 算法框架/工具
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
127 0
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
|
算法框架/工具 Caffe
File "/usr/local/lib/python3.5/site-packages/dateutil/rrule.py", line 55 raise ValueError
File "/usr/local/lib/python3.5/site-packages/dateutil/rrule.py", line 55 raise ValueError
84 0
|
编解码 并行计算
wrf--运行real.exe时报错:“Could not find level above ground“ error
在修改wrf初始场资料时,如果做了带通滤波处理,会发现在运行real.exe时报错:“Could not find level above ground” error 。
wrf--运行real.exe时报错:“Could not find level above ground“ error
WRF模式报错:traj_opt is zero, but num_traj is not zero; setting num_traj to zero
最近,在跑WRF模式时遇到一个奇怪的问题,从WPS一直到WRF中运行./real.exe,全都没有问题,直到提交作业到集群上时发现,很短的时间内作业就结束了,而且只生成了一个时刻的数据,通过将debug_level调整到999发现,产生以下问题:
WRF模式报错:traj_opt is zero, but num_traj is not zero; setting num_traj to zero
|
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
|
Python
解决 Traceback (most recent call last):File “D:\FAE\python\lib\runpy.py“, line 193
解决 Traceback (most recent call last):File “D:\FAE\python\lib\runpy.py“, line 193
1455 0