当前位置: 技术问答>linux和unix
编译linux2.6.9时问题
来源: 互联网 发布时间:2016-03-30
本文导语: # make linux make ARCH=armnommu CROSS_COMPILE=arm-uclinux- -C linux-2.6.x bzImage || exit 1 make[1]: Entering directory `/usr/uClinux-dist-20041215/linux-2.6.x' /usr/uClinux-dist-20041215/linux-2.6.x/arch/armnommu/Makefile:43: check_gcc is deprecated - use cc-option...
# make linux
make ARCH=armnommu CROSS_COMPILE=arm-uclinux- -C linux-2.6.x bzImage || exit 1
make[1]: Entering directory `/usr/uClinux-dist-20041215/linux-2.6.x'
/usr/uClinux-dist-20041215/linux-2.6.x/arch/armnommu/Makefile:43: check_gcc is deprecated - use cc-option
CHK include/linux/version.h
make[2]: “arch/armnommu/kernel/asm-offsets.s”是最新的。
CHK include/asm-armnommu/constants.h
make[2]: “include/asm-arm/mach-types.h”是最新的。
CHK include/linux/compile.h
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD vmlinux
arch/armnommu/kernel/built-in.o(.bss+0x520):arch/arm/kernel/irq.c:872: multiple definition of `saved_command_line'
init/built-in.o(.bss+0x4):init/main.c:140: first defined here
mm/built-in.o(.data+0x6d0): In function `free_all_bootmem_core':
mm/bootmem.c:314: multiple definition of `sysctl_max_map_count'
arch/armnommu/mach-s3c44b0x/built-in.o(.data+0x8):arch/armnommu/mach-s3c44b0x/arch.c:46: first defined here
arch/armnommu/kernel/vmlinux.lds:137 invalid assignment to location counter
make[1]: *** [vmlinux] 错误 1
make[1]: Leaving directory `/usr/uClinux-dist-20041215/linux-2.6.x'
make: *** [linux] 错误 1
make ARCH=armnommu CROSS_COMPILE=arm-uclinux- -C linux-2.6.x bzImage || exit 1
make[1]: Entering directory `/usr/uClinux-dist-20041215/linux-2.6.x'
/usr/uClinux-dist-20041215/linux-2.6.x/arch/armnommu/Makefile:43: check_gcc is deprecated - use cc-option
CHK include/linux/version.h
make[2]: “arch/armnommu/kernel/asm-offsets.s”是最新的。
CHK include/asm-armnommu/constants.h
make[2]: “include/asm-arm/mach-types.h”是最新的。
CHK include/linux/compile.h
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD vmlinux
arch/armnommu/kernel/built-in.o(.bss+0x520):arch/arm/kernel/irq.c:872: multiple definition of `saved_command_line'
init/built-in.o(.bss+0x4):init/main.c:140: first defined here
mm/built-in.o(.data+0x6d0): In function `free_all_bootmem_core':
mm/bootmem.c:314: multiple definition of `sysctl_max_map_count'
arch/armnommu/mach-s3c44b0x/built-in.o(.data+0x8):arch/armnommu/mach-s3c44b0x/arch.c:46: first defined here
arch/armnommu/kernel/vmlinux.lds:137 invalid assignment to location counter
make[1]: *** [vmlinux] 错误 1
make[1]: Leaving directory `/usr/uClinux-dist-20041215/linux-2.6.x'
make: *** [linux] 错误 1
|
在/linux-2.6.9下用grep -r "saved_command_line" *
看看是哪里重复定义了
看看是哪里重复定义了