lede icon indicating copy to clipboard operation
lede copied to clipboard

syntax error: operand expected (error token is "*1024*1024")

Open openrouter opened this issue 3 years ago • 14 comments

issue1: make mt7621 image error

make[2]: Leaving directory '/home/tony/master/scripts/config' bash: 10241024: syntax error: operand expected (error token is "10241024") bash: 10241024: syntax error: operand expected (error token is "10241024") time: target/linux/prereq#0.42#0.04#0.45

issue2: make[3] -C tools/findutils compile make[3] -C tools/bc compile ERROR: tools/cmake failed to build.

openrouter avatar Oct 23 '22 06:10 openrouter

issue 2日志没发全,执行make tools/install V=s -j1把完整日志贴上来

misaka36 avatar Oct 23 '22 07:10 misaka36

issue 2日志没发全,执行make tools/install V=s -j1把完整日志贴上来

after updated cmake issue 2 shutdown, tks.

how is issue1 ?

openrouter avatar Oct 23 '22 09:10 openrouter

please run make target/linux/{clean,compile} V=s -j1 and provide full log

misaka36 avatar Oct 23 '22 09:10 misaka36

full logfile attached make.log

openrouter avatar Oct 23 '22 23:10 openrouter

Please use ubuntu or debina to compile,don't use wsl

misaka36 avatar Oct 24 '22 01:10 misaka36

Please use ubuntu or debina to compile,don't use wsl

Host OS is 18.04.2-Ubuntu

openrouter avatar Oct 24 '22 03:10 openrouter

Please use Ubuntu-20.04

misaka36 avatar Oct 24 '22 04:10 misaka36

This is the case with me. I don't know what happened

yuzhe1129 avatar Oct 26 '22 03:10 yuzhe1129

Refer

请使用 Ubuntu-20.04

我也是使用20.04啊,也是出错这个错误 到底是什么引起的啊

yuzhe1129 avatar Oct 26 '22 03:10 yuzhe1129

我这也是一样,我是用docker措的编译环境,是否对什么工具的版本有要求?

image

确认是这里引起 /include/image.mk 167 ROOTFS_PARTSIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE)*1024*1024)))

schidler avatar Oct 27 '22 04:10 schidler

我这也是一样,我是用docker的编译环境,对什么工具的版本有要求吗?

bash:1024 1024:语法错误:预期操作数(错误标记为“ 1024 1024”)

确认是这里引发 /include/image.mk 167 ROFS_PARTSIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE) 1024 1024)))

是什么意思?我不怎么懂,我只会编译,能否解释简单点怎么解决

yuzhe1129 avatar Oct 27 '22 04:10 yuzhe1129

我这也是一样,我是用docker的编译环境,对什么工具的版本有要求吗? bash:1024 1024:语法错误:预期操作数(错误标记为“ 1024 1024”) 确认是这里引发 /include/image.mk 167 ROFS_PARTSIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE) 1024 1024)))

是什么意思?我不怎么懂,我只会编译,能否解释简单点怎么解决

ROOTFS_PARTSIZE := $(shell expr $$(( $(CONFIG_TARGET_ROOTFS_PARTSIZE) * 1024 * 1024))) 可以这样试下

schidler avatar Oct 27 '22 04:10 schidler

我这也是一样,我是用docker的编译环境,对什么工具的版本有要求吗? bash:1024 1024:语法错误:预期操作数(错误标记为“ 1024 1024”) 确认是这里引发 /include/image.mk 167 ROFS_PARTSIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE) 1024 1024)))

是什么意思?我不怎么懂,我只会编译,能否解释简单点怎么解决

ROOTFS_PARTSIZE := $(shell expr $$(( $(CONFIG_TARGET_ROOTFS_PARTSIZE) * 1024 * 1024))) 可以这样试下

ROOTFS_PARTSIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE)10241024)))

看了下, 原来是echo 改了expr就行了?

yuzhe1129 avatar Oct 27 '22 04:10 yuzhe1129

我这也是一样,我是用docker的编译环境,对什么工具的版本有要求吗? bash:1024 1024:语法错误:预期操作数(错误标记为“ 1024 1024”) 确认是这里引发 /include/image.mk 167 ROFS_PARTSIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE) 1024 1024)))

是什么意思?我不怎么懂,我只会编译,能否解释简单点怎么解决

ROOTFS_PARTSIZE := $(shell expr $$(( $(CONFIG_TARGET_ROOTFS_PARTSIZE) * 1024 * 1024))) 可以这样试下

ROOTFS_PARTSIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE)_1024_1024)))

看了下, 原来是echo 改了expr就行了?

+ifdef CONFIG_TARGET_ROOTFS_PARTSIZE
 ROOTFS_PARTSIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE)*1024*1024)))
+endif

估计是CONFIG_TARGET_ROOTFS_PARTSIZE这个没有定义 增加下判断

schidler avatar Oct 27 '22 05:10 schidler