编译linux内核出错提示‘crc32table_le’ undeclared

本文记录了一次在编译内核时遇到的关于CRC32未声明标识符的错误,并详细描述了解决过程,包括使用git检查本地内核修改情况以及通过make clean命令最终解决问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在编译外部模块时,突然编译失败,然后去编译了一下内核然后报错提示:

lib/crc32.c:197:24: error: ‘crc32table_le’ undeclared (first use in this function)
    (const u32 (*)[256])crc32table_le, CRCPOLY_LE);
                        ^
lib/crc32.c:197:24: note: each undeclared identifier is reported only once for each function it appears in
lib/crc32.c: In function ‘__crc32c_le’:
lib/crc32.c:202:24: error: ‘crc32ctable_le’ undeclared (first use in this function)
    (const u32 (*)[256])crc32ctable_le, CRC32C_POLY_LE);
                        ^
lib/crc32.c: In function ‘crc32_be’:
lib/crc32.c:339:24: error: ‘crc32table_be’ undeclared (first use in this function)
    (const u32 (*)[256])crc32table_be, CRCPOLY_BE);

用git查了一下本地的内核修改目录发现并没有不小心改动了什么东西;
尝试重新编译后还是报错,在make disclean后在编译通过;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值