|
执行命令:
../glibc-2.3.2/configure --prefix=/tools --disable-profile --enable-add-ons --with-headers=/tools/include --with-binutils=/tools/bin --without-gd
错误信息如下:
checking for long double... yes
checking size of long double... 12
running configure fragment for ../glibc-2.3.2/sysdeps/i386/elf
running configure fragment for ../glibc-2.3.2/sysdeps/unix/sysv/linux
checking for egrep... (cached) grep -E
checking installed Linux kernel header files... 2.0.10 or later
*** On GNU/Linux systems it is normal to compile GNU libc with the
*** `linuxthreads' add-on. Without that, the library will be
*** incompatible with normal GNU/Linux systems.
*** If you really mean to not use this add-on, run configure again
*** using the extra parameter `--disable-sanity-checks'.
查看当前目录,只有一个文件:
lfs@debian:/mnt/lfs/sources/lfs-packages/glibc-build$ ls
config.log
按提示增加参数“--disable-sanity-checks”:
../glibc-2.3.2/configure --prefix=/tools --disable-profile --enable-add-ons --with-headers=/tools/include --with-binutils=/tools/bin --without-gd --disable-sanity-checks
结果如下:
checking installed Linux kernel header files... 2.0.10 or later
*** WARNING: Are you sure you do not want to use the `linuxthreads'
*** add-on?
checking for symlinks in /tools/include... ok
running configure fragment for ../glibc-2.3.2/sysdeps/unix/common
running configure fragment for ../glibc-2.3.2/sysdeps/unix
running configure fragment for ../glibc-2.3.2/sysdeps/generic
checking for old glibc 2.0.x headers... no
checking whether -fPIC is default... no
configure: creating ./config.status
config.status: creating config.make
config.status: creating glibcbug
config.status: creating Makefile
config.status: creating config.h
config.status: executing default commands
当前目录生成如下文件:
$ ls -F
Makefile bits/ config.h config.log config.make config.status glibcbug
并没有文章所说的“在这个阶段你可能会看到下面的警告:”:
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: msgfmt
*** some features will be disabled.
*** Check the INSTALL file for required versions.
不知错误在哪里? |
|