ricong 发表于 2002-12-18 00:09:09

我在编译内核的时候出了点问题,请各位指点

我用的是MDK8.1的,内核是2.4.8我现在想升级为2.5.52,但是在
make config,make xconfig,make menuconfig编译的时候都出现一个这样的错误,如下:
make -f scripts/Makefile.build obj=scripts
gcc -Wp,-MD,scripts/.fixdep.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer    -o scripts/fixdep scripts/fixdep.c
/root/tmp/ccLq6zuA.s: Assembler messages:
/root/tmp/ccLq6zuA.s:2: Warning: Unrecognized .section attribute: want a,m,s,w,x
/root/tmp/ccLq6zuA.s:2: Warning: Unrecognized .section attribute: want a,m,s,w,x
/root/tmp/ccLq6zuA.s:26: Warning: Unrecognized .section attribute: want a,m,s,w,x
/root/tmp/ccLq6zuA.s:26: Warning: Unrecognized .section attribute: want a,m,s,w,x
/usr/bin/ld: unrecognized option '--eh-frame-hdr'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make: *** Error 1
make: *** Error 2

请各位指点,谢谢!

ricong 发表于 2002-12-18 00:12:54

加多一点,我的GCC原来是2.96的,现在我已经升级到3.2了。
请问用GCC3.2又该怎么编译呢?

llc 发表于 2002-12-19 12:08:57

1.你可以试试先导出配置,make mrproper,然后重新load配置,重新编译试试
2.看看gcc -v的输出是否已经是3.2,如果是3.2,就按老方法编译就可以了
页: [1]
查看完整版本: 我在编译内核的时候出了点问题,请各位指点