LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 714|回复: 6

关于内核无法编译的问题?

[复制链接]
发表于 2006-10-26 02:14:11 | 显示全部楼层 |阅读模式
宿主系统FS 6.2
从网上下的是stage1-x86-2006.1.tar.bz2
http://ftp.twaren.net/Linux/Gent ... -x86-2006.1.tar.bz2
按照http://gentoo.linuxsir.cn/doc/cn ... l说明的命令:
emerge gentoo-sources
下了kernel,进行make menuconfig,无法启动菜单,错误为:
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/mconf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/mconf
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
  HOSTCC  scripts/kconfig/lxdialog/inputbox.o
  HOSTCC  scripts/kconfig/lxdialog/lxdialog.o
  HOSTCC  scripts/kconfig/lxdialog/menubox.o
  HOSTCC  scripts/kconfig/lxdialog/msgbox.o
  HOSTCC  scripts/kconfig/lxdialog/textbox.o
  HOSTCC  scripts/kconfig/lxdialog/util.o
  HOSTCC  scripts/kconfig/lxdialog/yesno.o
  HOSTLD  scripts/kconfig/lxdialog/lxdialog
scripts/kconfig/mconf arch/i386/Kconfig
#
# using defaults found in arch/i386/defconfig
#
arch/i386/defconfig:48:warning: trying to assign nonexistent symbol CC_ALIGN_FUNCTIONS
arch/i386/defconfig:49:warning: trying to assign nonexistent symbol CC_ALIGN_LABELS
arch/i386/defconfig:50:warning: trying to assign nonexistent symbol CC_ALIGN_LOOPS
arch/i386/defconfig:51:warning: trying to assign nonexistent symbol CC_ALIGN_JUMPS
arch/i386/defconfig:63:warning: trying to assign nonexistent symbol OBSOLETE_MODPARM
arch/i386/defconfig:248:warning: trying to assign nonexistent symbol PCI_LEGACY_PROC
arch/i386/defconfig:349:warning: trying to assign nonexistent symbol IP_NF_MATCH_MULTIPORT
arch/i386/defconfig:354:warning: trying to assign nonexistent symbol IP_NF_MATCH_AH_ESP
arch/i386/defconfig:798:warning: trying to assign nonexistent symbol SERIAL_8250_ACPI
arch/i386/defconfig:917:warning: trying to assign nonexistent symbol SENSORS_RTC8564
arch/i386/defconfig:919:warning: trying to assign nonexistent symbol RTC_X1205_I2C
arch/i386/defconfig:1021:warning: trying to assign nonexistent symbol VIDEO_AUDIO_DECODER
arch/i386/defconfig:1022:warning: trying to assign nonexistent symbol VIDEO_DECODER
arch/i386/defconfig:1065:warning: trying to assign nonexistent symbol FB_RADEON_OLD
arch/i386/defconfig:1224:warning: trying to assign nonexistent symbol OBSOLETE_OSS_USB_DRIVER
arch/i386/defconfig:1263:warning: trying to assign nonexistent symbol USB_MTOUCH
arch/i386/defconfig:1264:warning: trying to assign nonexistent symbol USB_ITMTOUCH
arch/i386/defconfig:1265:warning: trying to assign nonexistent symbol USB_EGALAX
arch/i386/defconfig:1410:warning: trying to assign nonexistent symbol RELAYFS_FS


Your kernel configuration changes were NOT saved.

Makefile:441: .config: No such file or directory

之后在网上寻找答案,说不支持stage1和stage2了,而且kernel的安装要:
USE="-doc symlink" emerge gentoo-sources,
详细见:http://www.gentoo.org/doc/zh_tw/ ... l?part=1&chap=7
按照上述说明重新emerge --unmerge gentoo-sources && USE="-doc symlink" emerge gentoo-sources,还是无法正常编译内核。

我已经花了两天时间在gentoo上了,不想放弃!!从stage1开始安装就真的无法编译内核了吗?
请指点!:help
发表于 2006-10-26 02:17:12 | 显示全部楼层
有这个么?
sys-libs/ncurses
回复 支持 反对

使用道具 举报

发表于 2006-10-26 11:14:27 | 显示全部楼层
emerge system了吗?stage1只是个编译环境,很多系统包都还没装的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-26 12:49:59 | 显示全部楼层
楼上两位说的我都做过了 ,从stage1到stage2,现在进行stage3,也就时编译内核阶段,而且我也emerge ncurses过了,还时无法正常编译。
由于不是采用gentoo livecd形式安装的,我在chroot是用了这样一条指令:
env -i /usr/sbin/chroot /mnt/gentoo /bin/bash的,
出现提示符:root@LFS / #,然后cd usr/src/linux && make menuconfig的,
一直对自己的chroot命令很不放心,是不是这里引起错误导致不能编译呢?
回复 支持 反对

使用道具 举报

发表于 2006-10-26 12:56:14 | 显示全部楼层
chroot后mount proc了么?可以试下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-26 12:57:07 | 显示全部楼层
另外:在编译内核之前说要ls /usr/share/zoneinfo,我没有什么zoneinfo文件夹,所以从宿主系统里拷贝了一个到/usr/share/下,并且在genntoo里做了链接,
ln -sf /usr/share/zoneinfo/Aisa/Shanghai /etc/localtime
不知道这样做可不可以的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-26 13:04:59 | 显示全部楼层
Post by ruoruo
chroot后mount proc了么?可以试下

env -i /usr/sbin/chroot /mnt/gentoo /bin/bash
mkdir /proc
mount -t proc none /proc
cd /urs/src/linux
make menuconfig
无效果,错误依旧。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表