编译内核 4.4.30 的 src.rpm 出现这个错误

+ echo BUILDING A KERNEL FOR mips64el...
BUILDING A KERNEL FOR mips64el...
+ perl -p -i -e 's/^SUBLEVEL.*/SUBLEVEL = 30/' Makefile
+ perl -p -i -e 's/^EXTRAVERSION.*/EXTRAVERSION = -1fc27.ls.mips64el/' Makefile
+ make -s mrproper
+ cp configs/kernel-4.4.30-mips64el.config .config
++ head -1 .config
++ cut -b 3-
+ Arch=mips
+ echo USING ARCH=mips
USING ARCH=mips
+ make -s ARCH=mips oldnoconfig
+ make -s ARCH=mips V=1 -j4 vmlinuz
Checking missing-syscalls for N32
Checking missing-syscalls for O32
In file included from ./arch/mips/include/asm/io.h:31:0,
from ./arch/mips/include/asm/page.h:176,
from arch/mips/vdso/vdso.h:26,
from arch/mips/vdso/gettimeofday.c:11:
./arch/mips/include/asm/mach-loongson64/ioremap.h: In function 'plat_ioremap':
./arch/mips/include/asm/mach-loongson64/ioremap.h:27:5: error: "CONFIG_64BIT" is not defined, evaluates to 0 [-Werror=undef]
#if CONFIG_64BIT
^~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [arch/mips/vdso/Makefile:108: arch/mips/vdso/gettimeofday-o32.o] Error 1
make[1]: *** [scripts/Makefile.build:403: arch/mips/vdso] Error 2
make: *** [Makefile:960: arch/mips] Error 2
make: *** Waiting for unfinished jobs....

GCC 版本太高的锅,还是写这个代码的人太不认真了?还是这个东西有问题 CONFIG_64BIT 应该已经定义了?
已邀请:

iapcmloongson

赞同来自:

这个问题我也遇到过。loognix提供的内核源码有问题。
我试过编译loognix的内核git服务器提供的内核,遇到了同样的问题。类似的问题之前也有人问过。
最后我放弃了使用loognix的内核,改为使用lemote提供的内核,就再也没有遇到这样的问题。
 

要回复问题请先登录注册