Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coremark 编译错误 #1380

Open
davidtall opened this issue Nov 14, 2024 · 1 comment · May be fixed by #1402 or openwrt/packages#25569
Open

coremark 编译错误 #1380

davidtall opened this issue Nov 14, 2024 · 1 comment · May be fixed by #1402 or openwrt/packages#25569

Comments

@davidtall
Copy link

coremark 编译错误,github CI 云编译
日志如下

2024-11-14T11:50:05.8749905Z make[3]: Entering directory '/home/runner/work/VIKINGYFY-OpenWRT-CI/VIKINGYFY-OpenWRT-CI/wrt/feeds/packages/utils/coremark'
2024-11-14T11:50:06.0407332Z rm -f /home/runner/work/VIKINGYFY-OpenWRT-CI/VIKINGYFY-OpenWRT-CI/wrt/build_dir/target-aarch64_cortex-a53_musl/coremark-d5fad6bd094899101a4e5fd53af7298160ced6ab/.built
2024-11-14T11:50:06.0435932Z touch /home/runner/work/VIKINGYFY-OpenWRT-CI/VIKINGYFY-OpenWRT-CI/wrt/build_dir/target-aarch64_cortex-a53_musl/coremark-d5fad6bd094899101a4e5fd53af7298160ced6ab/.built_check
2024-11-14T11:50:06.0464147Z /home/runner/work/VIKINGYFY-OpenWRT-CI/VIKINGYFY-OpenWRT-CI/wrt/staging_dir/host/bin/sed -i -e 's|EXE = .exe|EXE =|' /home/runner/work/VIKINGYFY-OpenWRT-CI/VIKINGYFY-OpenWRT-CI/wrt/build_dir/target-aarch64_cortex-a53_musl/coremark-d5fad6bd094899101a4e5fd53af7298160ced6ab/posix/core_portme.mak
2024-11-14T11:50:06.0493540Z mkdir /home/runner/work/VIKINGYFY-OpenWRT-CI/VIKINGYFY-OpenWRT-CI/wrt/build_dir/target-aarch64_cortex-a53_musl/coremark-d5fad6bd094899101a4e5fd53af7298160ced6ab/aarch64
2024-11-14T11:50:06.0520144Z mkdir: cannot create directory '/home/runner/work/VIKINGYFY-OpenWRT-CI/VIKINGYFY-OpenWRT-CI/wrt/build_dir/target-aarch64_cortex-a53_musl/coremark-d5fad6bd094899101a4e5fd53af7298160ced6ab/aarch64': File exists
2024-11-14T11:50:06.0522680Z make[3]: *** [Makefile:98: /home/runner/work/VIKINGYFY-OpenWRT-CI/VIKINGYFY-OpenWRT-CI/wrt/build_dir/target-aarch64_cortex-a53_musl/coremark-d5fad6bd094899101a4e5fd53af7298160ced6ab/.built] Error 1
2024-11-14T11:50:06.0524702Z make[3]: Leaving directory '/home/runner/work/VIKINGYFY-OpenWRT-CI/VIKINGYFY-OpenWRT-CI/wrt/feeds/packages/utils/coremark'
2024-11-14T11:50:06.0526372Z time: package/feeds/packages/coremark/compile#0.13#0.07#0.18
2024-11-14T11:50:06.0533641Z     ERROR: package/feeds/packages/coremark failed to build.
2024-11-14T11:50:06.0537869Z make[2]: *** [package/Makefile:184: package/feeds/packages/coremark/compile] Error 1
2024-11-14T11:50:06.0542361Z make[2]: Leaving directory '/home/runner/work/VIKINGYFY-OpenWRT-CI/VIKINGYFY-OpenWRT-CI/wrt'
2024-11-14T11:50:06.0548203Z make[1]: *** [package/Makefile:178: /home/runner/work/VIKINGYFY-OpenWRT-CI/VIKINGYFY-OpenWRT-CI/wrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
2024-11-14T11:50:06.0553624Z make[1]: Leaving directory '/home/runner/work/VIKINGYFY-OpenWRT-CI/VIKINGYFY-OpenWRT-CI/wrt'
2024-11-14T11:50:06.0561007Z make: *** [/home/runner/work/VIKINGYFY-OpenWRT-CI/VIKINGYFY-OpenWRT-CI/wrt/include/toplevel.mk:248: world] Error 2

xlighting2017 added a commit to xlighting2017/packages that referenced this issue Nov 28, 2024
when there is an error building packages, and re-run with `make -j1 V=s`,  the coremark package will report error

`mkdir: cannot create directory '.../coremark-d5fad6bd094899101a4e5fd53af7298160ced6ab/XXX': File exists`

so, add a check to see if that dir is already there;

also add a '/' to the destination folder of the `cp` command

fixes immortalwrt#1380
xlighting2017 added a commit to xlighting2017/packages-1 that referenced this issue Dec 3, 2024
when there is an error building packages(other than coremark), and re-run with make -j1 V=s, the coremark package will report error

```
mkdir: cannot create directory '.../coremark-d5fad6bd094899101a4e5fd53af7298160ced6ab/aarch64': File exists
```

so, add a check to see if that dir is already there;

this is due to the fact that, in the second run, that folder is already created in the first run, and not removed before the second run.

also, add a '/' to the destination folder of the cp command, otherwise it will also report a "file exist" error.

the '-r' is also removed, since $(CP) already have -r

fixes immortalwrt/packages#1380

P.S. I'm not sure if this can be done by move the "mkdir" to `Build/Prepare` or `Build/Configure`, cause I'm not quite familiar with the Openwrt build system, so any comment is warmly welcome.

Signed-off-by: xlighting2017 <[email protected]>
@davidtall
Copy link
Author

把makefile 里面的 mkdir 后面加个 -p 参数就能解决了,可能是多线程编译,同时执行 mkdir 报错了

xlighting2017 added a commit to xlighting2017/packages-1 that referenced this issue Dec 17, 2024
when there is an error building packages(other than coremark), and re-run with make -j1 V=s, the coremark package will report error

```
mkdir: cannot create directory '.../coremark-d5fad6bd094899101a4e5fd53af7298160ced6ab/aarch64': File exists
```

so, add a check to see if that dir is already there;

this is due to the fact that, in the second run, that folder is already created in the first run, and not removed before the second run.

also, add a '/' to the destination folder of the cp command, otherwise it will also report a "file exist" error.

the '-r' is also removed, since $(CP) already have -r

fixes immortalwrt/packages#1380

P.S. I'm not sure if this can be done by move the "mkdir" to `Build/Prepare` or `Build/Configure`, cause I'm not quite familiar with the Openwrt build system, so any comment is warmly welcome.

Signed-off-by: xlighting2017 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment