Spec2017编译526.blender_r报错解决

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

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值