当前位置: 技术问答>linux和unix
Cygwin下交叉编译linux2.6.20内核的疑问,跪求解答!
来源: 互联网 发布时间:2016-09-20
本文导语: 目前我在XP上安装了Cygwin,配置好arm-linux-gcc3.3.6后,编译linux2.6.20.1版本内核,出现下面的 错误信息: $ make gk CHK include/linux/version.h make[1]: `include/asm-arm/mach-types.h' is up to date. CHK include/linux...
目前我在XP上安装了Cygwin,配置好arm-linux-gcc3.3.6后,编译linux2.6.20.1版本内核,出现下面的
错误信息:
$ make gk
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c: In function `parse_config_file':
scripts/basic/fixdep.c:242: warning: array subscript has type `char'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:319: warning: array subscript has type `char'
HOSTCC scripts/basic/docproc
scripts/basic/docproc.c: In function `find_export_symbols':
scripts/basic/docproc.c:188: warning: array subscript has type `char'
scripts/basic/docproc.c:191: warning: array subscript has type `char'
scripts/basic/docproc.c:197: warning: array subscript has type `char'
scripts/basic/docproc.c:200: warning: array subscript has type `char'
scripts/basic/docproc.c: In function `singfunc':
scripts/basic/docproc.c:267: warning: array subscript has type `char'
scripts/basic/docproc.c: In function `parse_file':
scripts/basic/docproc.c:300: warning: array subscript has type `char'
scripts/basic/docproc.c:305: warning: array subscript has type `char'
scripts/basic/docproc.c:310: warning: array subscript has type `char'
scripts/basic/docproc.c:316: warning: array subscript has type `char'
scripts/basic/docproc.c:319: warning: array subscript has type `char'
CC arch/arm/kernel/asm-offsets.s
arm-linux-gcc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
这是内核与交叉编译链版本冲突引起的吗?在ubuntu下可用arm-linux-gcc3.4.1顺利编译该内核,而在
Cygwin下只找到3.3.6版本。是不是可以通过修改源代码根目录下的Makefile,该怎么办?
错误信息:
$ make gk
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c: In function `parse_config_file':
scripts/basic/fixdep.c:242: warning: array subscript has type `char'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:319: warning: array subscript has type `char'
HOSTCC scripts/basic/docproc
scripts/basic/docproc.c: In function `find_export_symbols':
scripts/basic/docproc.c:188: warning: array subscript has type `char'
scripts/basic/docproc.c:191: warning: array subscript has type `char'
scripts/basic/docproc.c:197: warning: array subscript has type `char'
scripts/basic/docproc.c:200: warning: array subscript has type `char'
scripts/basic/docproc.c: In function `singfunc':
scripts/basic/docproc.c:267: warning: array subscript has type `char'
scripts/basic/docproc.c: In function `parse_file':
scripts/basic/docproc.c:300: warning: array subscript has type `char'
scripts/basic/docproc.c:305: warning: array subscript has type `char'
scripts/basic/docproc.c:310: warning: array subscript has type `char'
scripts/basic/docproc.c:316: warning: array subscript has type `char'
scripts/basic/docproc.c:319: warning: array subscript has type `char'
CC arch/arm/kernel/asm-offsets.s
arm-linux-gcc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
这是内核与交叉编译链版本冲突引起的吗?在ubuntu下可用arm-linux-gcc3.4.1顺利编译该内核,而在
Cygwin下只找到3.3.6版本。是不是可以通过修改源代码根目录下的Makefile,该怎么办?
|
不要在cygwin里编译linux内核,在linux下直接编译嘛。楼主可以安装ubuntu 10.04, 或者在windows上装VMware, 在VMware安装linux.
|
对呀 在linux下去编译啊
我也安装了Cygwin 我觉得用起来很不方便
我也安装了Cygwin 我觉得用起来很不方便
|
装个虚拟机好啦。。
|
呵呵,
当然是在linux下编译比较好
当然是在linux下编译比较好
|
换工具喽