Spec2017编译526.blender_r时,报错:
Error with make.blender_r ‘specmake --output-sync --jobs=8 build TARGET=blender_r’:
Please review this file:
“/home/spec2017/benchspec/CPU/526.blender_r/build/build_base.0000/make.blender_r.out”
Command returned exit code 2
Error with make!
Compile for ‘526.blender_r’ ended at: 2022-07-04 13:33:50 (1656912830)
Elapsed compile for ‘526.blender_r’: 00:00:32 (32)
*** Error building 526.blender_r base
具体错误内容:
1656912829.93: blender/source/blender/blenlib/intern/threads.c:845:33: warning: ‘struct timespec’ declared inside parameter list will not be visib
le outside of this definition or declaration
1656912829.93: static void wait_timeout(struct timespec *timeout, int ms)
1656912829.93: ^~~~~~~~
1656912829.93: blender/source/blender/blenlib/intern/threads.c: In function ‘wait_timeout’:
1656912829.93: blender/source/blender/blenlib/intern/threads.c:868:9: error: dereferencing pointer to incomplete type ‘struct timespec’
1656912829.93: timeout->tv_sec = sec + div_result.quot;
1656912829.93: ^~
1656912829.93: blender/source/blender/blenlib/intern/threads.c: In function ‘BLI_thread_queue_pop_timeout’:
1656912829.93: blender/source/blender/blenlib/intern/threads.c:884:18: error: storage size of ‘timeout’ isn’t known
1656912829.93: struct timespec timeout;
1656912829.93: ^~~~~~~
1656912829.93: specmake: *** [/home/spec2017/benchspec/Makefile.defaults:347: blender/source/blender/blenlib/intern/threads.o] Error 1
1656912829.93: specmake: *** Waiting for unfinished jobs…
修改cfg文件,在526.blender_r的PORTBILITY中添加使用-std=gnu99
526.blender_r: #lang=‘CXX,C’
PORTABILITY = -funsigned-char -DSPEC_LINUX -std=gnu99