spec2006 使用报错

spec 报错有:
1编译时报错
specmake build 2> make.err | tee make.out
/usr/bin/gcc -c -o av.o -DSPEC_CPU -DNDEBUG -DPERL_CORE   -O2 -fno-strict-aliasing       -DSPEC_CPU_LP64 -DSPEC_CPU_LINUX_X64        av.c
In file included from /usr/include/stdio.h:936:0,
                 from perlio.h:65,
                 from iperlsys.h:51,
                 from perl.h:2585,
                 from av.c:22:
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function 'sprintf':
/usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: error: invalid use of '__builtin_va_arg_pack ()'
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function 'snprintf':
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: error: invalid use of '__builtin_va_arg_pack ()'
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function 'fprintf':
/usr/include/x86_64-linux-gnu/bits/stdio2.h:97:10: error: invalid use of '__builtin_va_arg_pack ()'
   return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
          ^
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function 'printf':
/usr/include/x86_64-linux-gnu/bits/stdio2.h:104:10: error: invalid use of '__builtin_va_arg_pack ()'
   return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
          ^
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function 'dprintf':


原因是spec与gcc 版本不对应 ,gcc 相对于spec2006 来说gcc 版本过高,所以gcc降级

2:运行上报错:runspec --config mytest.cfg --action=onlyrun --tune=all --reportable int //通过--action 指定 onlyrun 不再编译
*** Error during benchmark setup for 429.mcf
  Setting up 445.gobmk ref base gcc43-64bit default: ERROR: Cannot create run directory for 445.gobmk: mkdir /home/nfs/zhaoan/spec/cpu2006/benchspec/CPU2006/445.gobmk/run/run_base_ref_gcc43-64bit.0005: Permission denied at /home/nfs/zhaoan/spec/cpu2006/bin/benchmark.pm line 2073

*** Error during benchmark setup for 445.gobmk
  Setting up 456.hmmer ref base gcc43-64bit default: ERROR: Cannot create run directory for 456.hmmer: mkdir /home/nfs/zhaoan/spec/cpu2006/benchspec/CPU2006/456.hmmer/run/run_base_ref_gcc43-64bit.0005: Permission denied at /home/nfs/zhaoan/spec/cpu2006/bin/benchmark.pm line 2073

*** Error during benchmark setup for 456.hmmer
  Setting up 458.sjeng ref base gcc43-64bit default: ERROR: Cannot create run directory for 458.sjeng: mkdir /home/nfs/zhaoan/spec/cpu2006/benchspec/CPU2006/458.sjeng/run/run_base_ref_gcc43-64bit.0005: Permission denied at /home/nfs/zhaoan/spec/cpu2006/bin/benchmark.pm line 2073
 
原因:由于在docker容器中是使用root权限编译的,在138上面再执行时用户是:wxsc ,所以权限有问题
修改:sudo chown -R wxsc:wxsc ./*
即可

3 运行时报错
Running (#2) 445.gobmk ref base gcc43-64bit default
/home/nfs/zhaoan/spec/cpu2006/bin/specinvoke -d /home/nfs/zhaoan/spec/cpu2006/benchspec/CPU2006/445.gobmk/run/run_base_ref_gcc43-64bit.0006 -e speccmds.err -o speccmds.stdout -f speccmds.cmd -C -q

Socket error Event: 32 Error: 10053.
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(192.167.253.138) at 08:50:57.
解决方法:改为后台执行即可

4:运行时报错
1548641594.38: Contents of nph3.err
1548641594.38: ****************************************
1548641594.38: ../run_base_ref_gcc43-64bit.0009/hmmer_base.gcc43-64bit: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by ../run_base_ref_gcc43-64bit.0009/hmmer_base.gcc43-64bit)

解决方法:编译时改为静态链接

使用的config 是 mytest.cfg ,则修改mytest.cfg文件将
COPTIMIZE   = -O2 -fno-strict-aliasing
CXXOPTIMIZE = -O2 -fno-strict-aliasing
FOPTIMIZE   = -O2 -fno-strict-aliasing

改为:
COPTIMIZE   = -O2 -fno-strict-aliasing -static
CXXOPTIMIZE = -O2 -fno-strict-aliasing -static
FOPTIMIZE   = -O2 -fno-strict-aliasing -static

5.float 编译时报错
1548726106.29: ****************************************
1548726106.29: Contents of exam29.err
1548726106.29: ****************************************
1548726106.29: STOP IN ABRT

1548726106.29: ****************************************

1548726106.29: *** Miscompare of exam29.out; for details see
1548726106.29:     /home/nfs/zhaoan/spec/cpu2006/benchspec/CPU2006/416.gamess/run/run_base_test_gcc43-64bit.0000/exam29.out.mis
1548726106.29: 0423:     1  0  0     -228.438026762  -228.438026762   0.585016182   0.000000000
1548726106.29:           1  0  0     -228.438026762  -228.438026762   2.057216987   0.000000000
1548726106.29:                                                                  ^
1548726106.29: 0424:            ---------------START SECOND ORDER SCF---------------
1548726106.29:           2  1  0      -13.398272306   215.039754456   0.019611730   2.138165837
1548726106.29:        ^
1548726106.29: 0425:     2  1  0     -228.975183270    -0.537156507   0.141897260   0.111481465
1548726106.29:                  ---------------START SECOND ORDER SCF---------------
1548726106.29:        ^
1548726106.29: 0426:     3  2  0     -229.014081256    -0.038897986   0.064028396   0.079634004
1548726106.29:           3  2  0      -13.404086244    -0.005813938   0.000644098   0.008801378
1548726106.29:                                    ^
1548726106.29: 0427:     4  3  0     -229.036210679    -0.022129423   0.025840433   0.007697238
1548726106.29:           4  3  0      -13.404093666    -0.000007422   0.000028154   0.000448854
1548726106.30:                                    ^
1548726106.30: 0428:     5  4  0     -229.036777024    -0.000566345   0.008639408   0.001874192
1548726106.30:           5  4  0      -13.404093683    -0.000000017   0.000000370   0.000004470
1548726106.30:                                    ^
1548726106.30: 0429:     6  5  0     -229.036824895    -0.000047871   0.001734717   0.000979860
1548726106.30:           6  5  0      -13.404093683    -0.000000000   0.000000008   0.000000051
1548726106.30:                                    ^
1548726106.30: 0431:     7  6  0     -229.036831711    -0.000006816   0.000315932   0.000297576
1548726106.30:                  -----------------
1548726106.30:        ^
1548726106.30: 0432:     8  7  0     -229.036832335    -0.000000624   0.000112760   0.000083271
1548726106.30:                  DENSITY CONVERGED
1548726106.30:        ^
1548726106.30: 0433:     9  8  0     -229.036832426    -0.000000092   0.000074046   0.000042607
1548726106.30:                  -----------------
1548726106.30:        ^
1548726106.30: Benchmark Times:
1548726106.30:   Start:    Tue Jan 29 09:41:45 2019 (1548726105)
1548726106.30:   Stop:     Tue Jan 29 09:41:45 2019 (1548726105)
1548726106.30:   Elapsed:  00:00:00 (0)
1548726106.30:   Reported: 0 39727000 0.039727
1548726106.30:  Error 416.gamess base test ratio=-0.00, runtime=0.039727, power=0.00w, temp=0.00 deg, humidity=0.00%
1548726106.30: Invalid run; unable to continue.


解决方法:
这个问题通过修改相应的config 中编译优化选项 将
COPTIMIZE   = -O2 -fno-strict-aliasing -static
CXXOPTIMIZE = -O2 -fno-strict-aliasing -static
FOPTIMIZE   = -O2 -fno-strict-aliasing -static
改为:
COPTIMIZE   = -O0 -fno-strict-aliasing -static
CXXOPTIMIZE = -O0 -fno-strict-aliasing -static
FOPTIMIZE   = -O0 -fno-strict-aliasing -static

猜你喜欢

转载自blog.csdn.net/z278718149/article/details/86689484
今日推荐