阅读:808回复:1
内核编译问题,愁死我了,大虾帮忙
我这几天在编译内核,遇到一个不懂得问题。大虾们救救我吧,小弟先谢谢了
主要涉及到几个选项, 1、CONFIG_PCI,选了这个选项就一定得选择CONFIG_HOTPLUG,否则char.o会出错。 两个同时设成Y就没什么问题。 2、CONFIG_PCI_NAMES如果设成Y,就会出错,错误是 devlist.h:6948: __devices_c0fe causes a section type conflict > > devlist.h:6951: __devices_ca50 causes a section type conflict > > devlist.h:6954: __devices_cafe causes a section type conflict > > devlist.h:6957: __devices_cccc causes a section type conflict > > devlist.h:6960: __devices_d4d4 causes a section type conflict > > devlist.h:6964: __devices_d84d causes a section type conflict > > devlist.h:6967: __devices_e000 causes a section type conflict > > devlist.h:6971: __devices_e159 causes a section type conflict > > devlist.h:6975: __devices_e4bf causes a section type conflict > > devlist.h:6978: __devices_ea01 causes a section type conflict > > devlist.h:6981: __devices_eabb causes a section type conflict > > devlist.h:6984: __devices_ecc0 causes a section type conflict > > devlist.h:6987: __devices_edd8 causes a section type conflict > > devlist.h:6994: __devices_fa57 causes a section type conflict > > devlist.h:6997: __devices_feda causes a section type conflict > > devlist.h:7000: __devices_fffe causes a section type conflict > > devlist.h:7004: __devices_ffff causes a section type conflict > > make[3]: *** [names.o] Error 1 > > make[3]: Leaving directory `/usr/src/linux-2.4.9/drivers/pci\' > > make[2]: *** [first_rule] Error 2 > > make[2]: Leaving directory `/usr/src/linux-2.4.9/drivers/pci\' > > make[1]: *** [_subdir_pci] Error 2 > > make[1]: Leaving directory `/usr/src/linux-2.4.9/drivers\' > > make: *** [_dir_drivers] Error 2 如果把它设成N就能顺利编译通过,是不是要打开那个选项?我用的是2.4.7内核。 |
|
沙发#
发布于:2003-08-26 11:11
搞定了,原来是我用gcc3.2编译2.4.7,会出现这些奇怪的问题,
把gcc换掉用gcc2.9就编译通过。看来还是不能用太高版本的编译器编译低版本的内核。 |
|