LinuxSir.cn,穿越时空的Linuxsir!

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

第五章安装Glibc-2.3.2时出错????

[复制链接]
发表于 2004-5-22 10:31:38 | 显示全部楼层 |阅读模式
我是第一次安装LFS,就是菜鸟一个啊!
按着书上的提示做怎么也出问题呀?希望高人指点指点。
先谢过啦!

[lfs@rock glibc-build]$ ../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... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.

这如何解决呀???

接着我又MAKE编译了:

[lfs@rock glibc-build]$ make

屏幕输出些错误信息:
collect2: ld returned 1 exit status
make[2]: *** [/mnt/lfs/sources/glibc-build/iconv/iconvconfig] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2/iconv'
make[1]: *** [iconv/others] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2'
make: *** [all] Error 2

我要疯了,找了好久都不能解决呀!也重新来过两边了,都一样的。
谁快来帮我吧?
 楼主| 发表于 2004-5-23 23:13:00 | 显示全部楼层

怎么没人帮忙呀?

我看了config.log文件,
具体细节如下:
configure:3214: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:3217: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif

configure:3448:28: ac_nonexistent.h: No such file or directory
configure:3454: $? = 1
configure: failed program was:
| #line 3439 "configure"
| /* 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 USE_REGPARMS 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3492: result: gcc -E
configure:3517: gcc -E  conftest.c
configure:3523: $? = 0
configure:3555: gcc -E  conftest.c
configure:3555:28: ac_nonexistent.h: No such file or directory
configure:3561: $? = 1
configure: failed program was:
| #line 3546 "configure"
| /* 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 USE_REGPARMS 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>


collect2: ld returned 1 exit status
configure:5860: $? = 1
configure: program exited with status 1
configure: failed program was:
| #line 5828 "configure"
| /* 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 USE_REGPARMS 1
| #define ASM_GLOBAL_DIRECTIVE .globl
| #define ASM_TYPE_DIRECTIVE_PREFIX @
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define HAVE_PROTECTED 1
| #define HAVE_HIDDEN 1
| #define HAVE_Z_COMBRELOC 1
| #define NO_UNDERSCORES 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_DWARF2_UNWIND_INFO 1
| #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_SUBTRACT_LOCAL_LABELS 1
| /* end confdefs.h.  */
| #include <ctype.h>
| #if ((' ' & 0x0FF) == 0x020)
| # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
| # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
| #else
| # define ISLOWER(c)                    (('a' <= (c) && (c) <= 'i')                      || ('j' <= (c) && (c) <= 'r')                      || ('s' <= (c) && (c) <= 'z'))
| # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
| #endif
|
| #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
| int
| main ()
| {
|   int i;
|   for (i = 0; i < 256; i++)
|     if (XOR (islower (i), ISLOWER (i))
|         || toupper (i) != TOUPPER (i))
|       exit(2);
|   exit (0);
| }
configure:5880: result: no
configure:5904: checking for sys/types.h
configure:5921: gcc -B/tools/bin/ -c -g -O2  conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for sys/stat.h
configure:5921: gcc -B/tools/bin/ -c -g -O2  conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for stdlib.h
configure:5921: gcc -B/tools/bin/ -c -g -O2  conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for string.h
configure:5921: gcc -B/tools/bin/ -c -g -O2  conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for memory.h
configure:5921: gcc -B/tools/bin/ -c -g -O2  conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for strings.h
configure:5921: gcc -B/tools/bin/ -c -g -O2  conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for inttypes.h
configure:5921: gcc -B/tools/bin/ -c -g -O2  conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for stdint.h
configure:5921: gcc -B/tools/bin/ -c -g -O2  conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for unistd.h
configure:5921: gcc -B/tools/bin/ -c -g -O2  conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5953: checking for long double
configure:5978: gcc -B/tools/bin/ -c -g -O2  conftest.c >&5
configure:5981: $? = 0
configure:5984: test -s conftest.o
configure:5987: $? = 0
configure:5998: result: yes
configure:6001: checking size of long double
configure:6276: gcc -B/tools/bin/ -o conftest -g -O2   conftest.c  >&5
/usr/bin/ld: cannot find /tools/lib/libc.so.6
collect2: ld returned 1 exit status
configure:6279: $? = 1
configure: program exited with status 1
configure: failed program was:
| #line 6236 "configure"
| /* 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 USE_REGPARMS 1
| #define ASM_GLOBAL_DIRECTIVE .globl
| #define ASM_TYPE_DIRECTIVE_PREFIX @
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define HAVE_PROTECTED 1
| #define HAVE_HIDDEN 1
| #define HAVE_Z_COMBRELOC 1
| #define NO_UNDERSCORES 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_DWARF2_UNWIND_INFO 1
| #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_SUBTRACT_LOCAL_LABELS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| long longval () { return (long) (sizeof (long double)); }
| unsigned long ulongval () { return (long) (sizeof (long double)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
|
|   FILE *f = fopen ("conftest.val", "w");
|   if (! f)
|     exit (1);
|   if (((long) (sizeof (long double))) < 0)
|     {
|       long i = longval ();
|       if (i != ((long) (sizeof (long double))))
|         exit (1);
|       fprintf (f, "%ld\n", i);
|     }
|   else
|     {
|       unsigned long i = ulongval ();
|       if (i != ((long) (sizeof (long double))))
|         exit (1);
|       fprintf (f, "%lu\n", i);
|     }
|   exit (ferror (f) || fclose (f) != 0);
|
|   ;
|   return 0;
| }
configure:6294: error: cannot compute sizeof (long double), 77
See `config.log' for more details.
 楼主| 发表于 2004-5-23 23:16:13 | 显示全部楼层

什么问题呀?帮帮忙啊!

什么问题呀?帮帮忙啊!
发表于 2004-5-26 11:16:30 | 显示全部楼层
我在安装glibc时也出错,不过错误和你不一样。
一块努力吧。^_^
 楼主| 发表于 2004-5-28 21:16:10 | 显示全部楼层
可是我到现在还是没找到问题呀????????
发表于 2004-6-14 18:42:14 | 显示全部楼层
我在安装glibc时也遇到错误了
发表于 2004-6-2 22:03:54 | 显示全部楼层
我的也是啊。我也出了问题,我比你惨多了。唉,搞得我RH都不能用了,只好重装LINUX。。正在奋斗中。 我找到了相关的贴子就给你。
 楼主| 发表于 2004-6-4 20:37:27 | 显示全部楼层
to :ffl521
先谢过了,这么久才有人理我啊!:)
发表于 2004-6-10 00:37:11 | 显示全部楼层
我从6月4号,期末一考完就开始编译LFS,唉,都两遍了,还没有成功,第一次到chroot的时候就出错了,说找不到env文件,那个文件明明都是在那里的哑,第2次我又从头再来,chroot成功了,但是后来到gettext的时候,又make不过了,LFS,好折腾人哑,我决定明天从头再来,大家一起努力哈,主要还是要靠自己小心谨慎,不断尝试与思考。
gcc-3.3.1有3个补丁哑,书上第五章,安装的时候只叫打其中的两个,而我 把3个都打上了,不知道问题是否出在这里哑,唉~~~一个小的失误,就是致命的 阿 ~~~~大家都不要放弃,会成功的,经验需要不断的积累~~~~
发表于 2004-6-11 19:36:07 | 显示全部楼层
其实,lfs books发展到今天,应该不会那么弱的,大家要相信books,严格按照book说的做(第一次安装尤其如此,强烈推荐复制粘贴的形式,不要自己敲命令),还有,尽量看懂books的意思,最好对照中文版的.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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