LinuxSir.cn,穿越时空的Linuxsir!

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

安装LFS6.1遇到的几点问题,大家帮忙看一下

[复制链接]
发表于 2005-12-20 12:39:18 | 显示全部楼层 |阅读模式
看到安装说明里用了Ext2,还有如果用Reiserfs,有像debugfs这样的命令可以对文件系统是否会在引导时出错做出测试吗?
发表于 2005-12-20 13:23:27 | 显示全部楼层
没有问题,不过要在内核中提供reiserfs的支持
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-20 17:20:22 | 显示全部楼层
Post by youbest
没有问题,不过要在内核中提供reiserfs的支持


谢谢回复
还有想问一下LFS6.1开始编译时系统用哪个版本的GCC比较好
回复 支持 反对

使用道具 举报

发表于 2005-12-20 18:27:38 | 显示全部楼层
当个版本的gcc?
应该说,跟LFS 6.1里面的gcc对应的版 本一样的话,那是最合适的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-20 22:02:11 | 显示全部楼层
Post by sumargin
当个版本的gcc?
应该说,跟LFS 6.1里面的gcc对应的版 本一样的话,那是最合适的


哦,谢谢了,我开始用GCC4。02,结果编译第一个包binutils就出错了,结果换成GCC3。3顺利通过
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-20 22:17:30 | 显示全部楼层
在“ 5.4. GCC-3.4.3 - 第一遍”一节中

  1. ln -s gcc /tools/bin/cc
复制代码

上面这个命令是在哪个文件夹中运行,按文档中感觉是在$LFS/sources/gcc-build中,但是我感觉是不是应该在/tools/bin/gcc中?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-20 22:38:32 | 显示全部楼层
编译Glibc时make出错

  1. /tools/include/linux/autoconf.h:8:32: asm-i486/autoconf.h: No such file or directory
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-20 22:43:21 | 显示全部楼层
Post by homesp
编译Glibc时make出错

  1. /tools/include/linux/autoconf.h:8:32: asm-i486/autoconf.h: No such file or directory
复制代码


哦,我把/usr/include/里的文件拷过去了,是不是内核源码中的include文件夹?我再试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-21 12:39:33 | 显示全部楼层
我从系统(/usr/include)里拷过来的/tools/include/asm和/tools/include/linux出错:
/tools/include/asm/socket.h:8:30: asm-i486/socket.h: No such file or directory
make[2]: *** [/mnt/lfs/sources/glibc-build/tcb-offsets.h] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4'
make: *** [all] Error 2

之后把从系统(/usr/include)里拷过来的/tools/include/asm和/tools/include/linux文件夹删除后,把6.1中内核包解压出来的asm-i386和linux文件夹拷过来后,再次编译glibc时,configure时出现下面的错误:
checking installed Linux kernel header files... TOO OLD!
configure: error: GNU libc requires kernel header files from
Linux 2.0.10 or later to be installed before configuring.
The kernel header files are found usually in /usr/include/asm and
/usr/include/linux; make sure these directories use files from
Linux 2.0.10 or later.  This check uses <linux/version.h>, so
make sure that file was built correctly when installing the kernel header
files.  To use kernel headers not from /usr/include/linux, use the
configure option --with-headers.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-21 13:08:36 | 显示全部楼层
根据错误提示我把系统的asm-i486 asm-generic都拷了过去,但还是不行
我的系统是Debian Sid,下面是我的/tools/include的目录结构:
/tools/include# ls
ansidecl.h  asm  asm-generic  asm-i486  bfd.h  bfdlink.h  dis-asm.h  linux  symcat.h

下面是编译时的错误:

../sysdeps/generic/uname.c:25:25: config-name.h: No such file or directory
../sysdeps/generic/uname.c: In function `__uname':
../sysdeps/generic/uname.c:57: error: `UNAME_SYSNAME' undeclared (first use in this function)
../sysdeps/generic/uname.c:57: error: (Each undeclared identifier is reported only once
../sysdeps/generic/uname.c:57: error: for each function it appears in.)
../sysdeps/generic/uname.c:58: error: `UNAME_RELEASE' undeclared (first use in this function)
../sysdeps/generic/uname.c:59: error: `UNAME_VERSION' undeclared (first use in this function)
../sysdeps/generic/uname.c:60: error: `UNAME_MACHINE' undeclared (first use in this function)
make[2]: *** [/mnt/lfs/sources/glibc-build/posix/uname.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4/posix'
make[1]: *** [posix/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4'
make: *** [all] Error 2
回复 支持 反对

使用道具 举报

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

本版积分规则

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