- 论坛徽章:
- 0
|
春节的时候开始研究这个,从网上搜集各种资料,gcc都以成功,到了最后了,开始make,在做make的时候,出现错误,不论make oldcomfig或者make menuconfig中怎么选择,都是一样的错误:
还请指教
make
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
SHIPPED scripts/genksyms/keywords.c
HOSTCC scripts/genksyms/lex.o
scripts/genksyms/lex.c:1228: warning: ‘input’ defined but not used
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
CC scripts/empty.o
MKELF scripts/elfconfig.h
HOSTCC scripts/file2alias.o
HOSTCC scripts/modpost.o
HOSTLD scripts/modpost
SPLIT include/linux/autoconf.h -> include/config/*
CC arch/x86_64/kernel/asm-offsets.s
In file included from include/linux/spinlock.h:16,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from arch/x86_64/kernel/asm-offsets.c:7:
include/asm/processor.h:80: error: array type has incomplete element type
In file included from include/asm/smp.h:18,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from arch/x86_64/kernel/asm-offsets.c:7:
include/asm/mpspec.h:79: warning: ‘packed’ attribute ignored for field of type ‘unsigned char[6]’
In file included from include/asm/smp.h:22,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from arch/x86_64/kernel/asm-offsets.c:7:
include/asm/apic.h: In function ‘apic_write_atomic’:
include/asm/apic.h:33: warning: value computed is not used
In file included from include/linux/topology.h:35,
from include/linux/mmzone.h:297,
from include/linux/gfp.h:4,
from include/linux/slab.h:15,
from include/linux/percpu.h:4,
from include/linux/sched.h:31,
from arch/x86_64/kernel/asm-offsets.c:7:
include/asm/topology.h: At top level:
include/asm/topology.h:15: error: conflicting types for ‘cpu_online_map’
include/asm/smp.h:39: note: previous declaration of ‘cpu_online_map’ was here
include/asm/topology.h: In function ‘pcibus_to_cpumask’:
include/asm/topology.h:26: error: invalid operands to binary & (have ‘cpumask_t’ and ‘long unsigned int’)
In file included from include/linux/mmzone.h:297,
from include/linux/gfp.h:4,
from include/linux/slab.h:15,
from include/linux/percpu.h:4,
from include/linux/sched.h:31,
from arch/x86_64/kernel/asm-offsets.c:7:
include/linux/topology.h: In function ‘__next_node_with_cpus’:
include/linux/topology.h:50: error: incompatible types when assigning to type ‘cpumask_t’ from type ‘long unsigned int’
make[1]: *** [arch/x86_64/kernel/asm-offsets.s] Error 1
make: *** [arch/x86_64/kernel/asm-offsets.s] Error 2
|
|