登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
我知道了
查看详情
登录
注册
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
12
Star
0
Fork
7
src-openEuler
/
unixbench
代码
Issues
2
Pull Requests
1
Wiki
统计
流水线
服务
Gitee Pages
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
3
解决unixbench ./Run shell1执行报错问题
已合并
ssstone:master
src-openEuler:master
ssstone
创建于 2021-05-06 22:28
克隆/下载
HTTPS
SSH
复制
下载 Email Patch
下载 Diff 文件
**问题描述:unixbench ./Run shell1执行报错sort.src文件找不到,导致测试执行失败** **问题定位:查看源码包中包含有sort.src,但安装后没有,定位根本原因是spec文件中缺少testdir路径下相关文件安装,导致文件缺失,进而shell1执行失败** **自验证shell1执行通过,详细结果如下:** 修改完spec文件,补充重新,本地重新构建rpm包安装到本地验证。 [root@localhost home]# ls github open unixbench-5.1.3-2.x86_64.rpm work [root@localhost home]# yum localinstall unixbench-5.1.3-2.x86_64.rpm Last metadata expiration check: 0:54:22 ago on Fri 30 Apr 2021 04:23:50 PM CST. Dependencies resolved. ============================================================================================================================================================================================================== Package Architecture Version Repository Size ============================================================================================================================================================================================================== Installing: unixbench x86_64 5.1.3-2 @commandline 127 k Transaction Summary ============================================================================================================================================================================================================== Install 1 Package Total size: 127 k Installed size: 997 k Is this ok [y/N]: y Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: unixbench-5.1.3-2.x86_64 1/1 Installing : unixbench-5.1.3-2.x86_64 1/1 Running scriptlet: unixbench-5.1.3-2.x86_64 1/1 Verifying : unixbench-5.1.3-2.x86_64 1/1 Installed: unixbench-5.1.3-2.x86_64 Complete! [root@localhost home]# [root@localhost home]# [root@localhost home]# cd /opt/unixbench/ [root@localhost unixbench]# ls HOWTO Makefile pgms README Run src testdir USAGE [root@localhost unixbench]# cd testdir/ [root@localhost testdir]# ls cctest.c dc.dat large.txt sort.src [root@localhost testdir]# cd .. [root@localhost unixbench]# ./Run shell1 gcc -o ./pgms/arithoh -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Darithoh ./src/arith.c gcc -o ./pgms/register -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum='register int' ./src/arith.c gcc -o ./pgms/short -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=short ./src/arith.c gcc -o ./pgms/int -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=int ./src/arith.c gcc -o ./pgms/long -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=long ./src/arith.c gcc -o ./pgms/float -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=float ./src/arith.c gcc -o ./pgms/double -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=double ./src/arith.c gcc -o ./pgms/hanoi -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/hanoi.c gcc -o ./pgms/syscall -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/syscall.c ./src/syscall.c: In function ‘main’: ./src/syscall.c:93:21: warning: null argument where non-null required (argument 2) [-Wnonnull] 93 | execl("/bin/true", (char *) 0); | ^~~~~ gcc -o ./pgms/context1 -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/context1.c gcc -o ./pgms/pipe -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/pipe.c gcc -o ./pgms/spawn -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/spawn.c gcc -o ./pgms/execl -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/execl.c In file included from ./src/execl.c:34: ./src/big.c: In function ‘getwork’: ./src/big.c:452:11: warning: variable ‘c’ set but not used [-Wunused-but-set-variable] 452 | char c; | ^ ./src/big.c: In function ‘dummy’: ./src/big.c:199:34: warning: ‘%02d’ directive writing between 2 and 10 bytes into a region of size 5 [-Wformat-overflow=] 199 | sprintf(logname, "masterlog.%02d", firstuser/MAXCHILD); | ^~~~ ./src/big.c:199:23: note: directive argument in the range [-178956970, 178956970] 199 | sprintf(logname, "masterlog.%02d", firstuser/MAXCHILD); | ^~~~~~~~~~~~~~~~ ./src/big.c:199:6: note: ‘sprintf’ output between 13 and 21 bytes into a destination of size 15 199 | sprintf(logname, "masterlog.%02d", firstuser/MAXCHILD); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_1.c cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_2.c gcc -o ./pgms/dhry2 -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/dhry_1.o ./src/dhry_2.o cd ./src; rm -f dhry_1.o dhry_2.o cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DREG=register -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_1.c -o dhry_1_reg.o cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DREG=register -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_2.c -o dhry_2_reg.o gcc -o ./pgms/dhry2reg -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/dhry_1_reg.o ./src/dhry_2_reg.o cd ./src; rm -f dhry_1_reg.o dhry_2_reg.o gcc -o ./pgms/looper -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/looper.c gcc -o ./pgms/fstime -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/fstime.c gcc -o ./pgms/whetstone-double -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -DDP -DUNIX -DUNIXBENCH ./src/whets.c -lm make all make[1]: Entering directory '/opt/unixbench' Checking distribution of files ./pgms exists ./src exists ./testdir exists make[1]: Leaving directory '/opt/unixbench' sh: 3dinfo: command not found # # # # # # # ##### ###### # # #### # # # # ## # # # # # # # ## # # # # # # # # # # # ## ##### ##### # # # # ###### # # # # # # ## # # # # # # # # # # # # ## # # # # # # # ## # # # # #### # # # # # ##### ###### # # #### # # Version 5.1.3 Based on the Byte Magazine Unix Benchmark Multi-CPU version Version 5 revisions by Ian Smith, Sunnyvale, CA, USA January 13, 2011 johantheghost at yahoo period com 1 x Shell Scripts (1 concurrent) 1 2 3 ======================================================================== BYTE UNIX Benchmarks (Version 5.1.3) System: localhost.localdomain: GNU/Linux OS: GNU/Linux -- 5.10.0-4.17.0.28.oe1.x86_64 -- #1 SMP Tue Mar 30 01:25:32 UTC 2021 Machine: x86_64 (x86_64) Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8") CPU 0: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz (5616.0 bogomips) x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET 17:18:43 up 19:13, 3 users, load average: 0.02, 0.02, 0.00; runlevel 3 ------------------------------------------------------------------------ Benchmark Run: Fri Apr 30 2021 17:18:43 - 17:21:52 1 CPU in system; running 1 parallel copy of tests Shell Scripts (1 concurrent) 5180.7 lpm (60.0 s, 2 samples) System Benchmarks Partial Index BASELINE RESULT INDEX Shell Scripts (1 concurrent) 42.4 5180.7 1221.9 ======== System Benchmarks Index Score (Partial Only) 1221.9 [root@localhost unixbench]#
怎样手动合并此 Pull Request
git checkout master
git pull https://gitee.com/ssstone/unixbench.git master
git push origin master
评论
13
提交
1
文件
1
检查
代码问题
0
批量操作
展开设置
折叠设置
审查
Code Owner
审查人员
hexiaowen
overweight
love_hangzhou
love_hangzhou
myeuler
myeuler
forrest_ly
forrest_ly
fcwicky
fcwicky
Monday
licihua
ethan848
ethan848
yanan-rock
yanan-rock
jingxiaolu
jingxiaolu
caodongxia
caodongxia
wk333
wk333
王歌
wang--ge
未设置
最少人数
0
测试
hexiaowen
overweight
love_hangzhou
love_hangzhou
myeuler
myeuler
forrest_ly
forrest_ly
fcwicky
fcwicky
Monday
licihua
ethan848
ethan848
yanan-rock
yanan-rock
jingxiaolu
jingxiaolu
caodongxia
caodongxia
wk333
wk333
王歌
wang--ge
未设置
最少人数
0
优先级
不指定
严重
主要
次要
不重要
标签
openeuler-cla/yes
lgtm
approved
ci_successful
sig/sig-QA
sig/dev-utils
关联 Issue
未关联
Pull Request 合并后将关闭上述关联 Issue
里程碑
未关联里程碑
参与者
(4)
Cherry-pick 提交
Cherry-pick 可以将
特定提交(Commit)
从某个分支挑选并应用到另一个分支,实现快速集成特定更改,而无需合并整个分支。
请选择应用 Cherry-pick 提交 (Commit) 的目标分支
新建分支
当前账号不存在 Fork 仓库,建议 cherry-pick 到 Fork 仓库。
Fork 仓库
提交列表
Commit SHA
Commit Message
基于 Cherry-pick 后的分支发起 Pull Request
取消
Cherry-pick
1
https://gitee.com/src-openeuler/unixbench.git
git@gitee.com:src-openeuler/unixbench.git
src-openeuler
unixbench
unixbench
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册