|
我的系统是纯64位的,开始时候在第2遍gcc的时候卡了好久,后来看了地球的Multilib LFS For x86-64,那个顺利通过了,谢谢哥们了。
不过我到第六章的时候对glibc,configure的时候又出现了错误,不能通过
configure配置:
BUILD_CC="gcc" CC="gcc -m32" CFLAGS="-march=i686 -mtune=generic -g -O2" ../glibc-2.5-20061008T1257/configure --prefix=/usr --disable-profile --enable-add-ons --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc --host=i686-pc-linux-gnu --libdir=/lib
log里的出错信息是:
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:3225: checking for gcc
configure:3251: result: gcc
configure:3268: checking how to run the C preprocessor
configure:3303: gcc -m32 -E conftest.c
configure:3309: $? = 0
configure:3341: gcc -m32 -E conftest.c
conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
configure:3347: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define HAVE_LIBIDN 1
| #define USE_REGPARMS 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure后出现这样的字样
configure: creating ./config.status
config.status: creating config.make
cat: ./confstat14155-5079/in: No such file or directory
config.status: creating Makefile
cat: ./confstat14155-5079/in: No such file or directory
config.status: executing default commands
我是linux新手,希望各位大哥,版主帮下自己,谢谢 |
|