Linux 安装python编译make报错 ./Modules/binascii.c: In function ‘binascii_crc32_impl.isra.8’:

报错如下:

./Modules/binascii.c: In function ‘binascii_crc32_impl.isra.8’:
./Modules/binascii.c:1346:1: error: the control flow of function ‘binascii_crc32_impl.isra.8’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
 }
 ^
./Modules/binascii.c:1346:1: error: the control flow of function ‘binascii_crc32_impl.isra.8’ does not match its profile data (counter ‘time_profiler’) [-Werror=coverage-mismatch]
cc1: some warnings being treated as errors
make[1]: *** [Makefile:3002: Modules/binascii.o] Error 1
make[1]: Leaving directory '/usr/packages/Python-3.12.2'
make: *** [Makefile:806: profile-opt] Error 2

解决方法 :

make clean

重新编译

make

参考资料
https://github.com/python/cpython/issues/79001

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值