LinuxSir.cn,穿越时空的Linuxsir!

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

装glibc时出的问题

[复制链接]
发表于 2003-1-22 09:59:55 | 显示全部楼层 |阅读模式
checking host system type... Invalid configuration `enable-add-ons': machine
`enable-add' not recognized

*** The GNU C library is currently not available for this platform.
*** So far nobody cared to port it and if there is no volunteer it
*** might never happen.  So, if you have interest to see glibc on
*** this platform visit
***     http://www.gnu.org/software/libc/porting.html
*** and join the group of porters
发表于 2003-1-22 10:10:00 | 显示全部楼层
安装glibc之前,必须在glibc-2.2.5 目录而不是/usr/src下将glibc-linuxthreads解包,否则安装程序找不到附加的add-ons。
 楼主| 发表于 2003-1-22 10:38:07 | 显示全部楼层
没错呀,我把src下的linuxthreads的bz2包mv到glibc-2.2.5

然后再解的包呀
发表于 2003-1-22 11:16:39 | 显示全部楼层
把原来的源代码删除,再重新做一遍,看看是否还是这样。
 楼主| 发表于 2003-1-22 11:31:42 | 显示全部楼层
重来了一次,configure阶段看到所说的Warning后一点点,就:

checking whether we need to use -P to assemble .S files... yes
checking whether .text pseudo-op must be used... no
checking for assembler global-symbol directive... UNKNOWN
configure: error: cannot determine asm global directive
发表于 2003-1-22 12:09:58 | 显示全部楼层
你是不是加了编译优化了,unset CFLAGS和unset CXXFLAGS后看看。最好把config.log文件发上来,以便分析问题。
 楼主| 发表于 2003-1-22 13:31:00 | 显示全部楼层
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:915: checking host system type
configure:1066: checking sysdep dirs
configure:1289: checking for a BSD compatible install
configure:1346: checking whether ln -s works
configure:1375: checking for pwd
configure:1414: checking build system type
configure:1442: checking for gcc
configure:1476: checking version of gcc
configure:1496: checking for gnumake
configure:1496: checking for gmake
configure:1496: checking for make
configure:1530: checking version of make
configure:1559: checking for gnumsgfmt
configure:1559: checking for gmsgfmt
configure:1559: checking for msgfmt
configure:1613: checking for makeinfo
configure:1647: checking version of makeinfo
configure:1667: checking for gsed
configure:1667: checking for sed
configure:1701: checking version of sed
configure:1719: checking whether the C compiler (gcc  ) works
configure:1738: gcc -o conftest    conftest.c  1>&5
gcc: installation problem, cannot exec `as': No such file or directory
configure: failed program was:

#line 1733 "configure"
#include "confdefs.h"

main(){return(0);}
configure:1769: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1781: checking whether we are using GNU C
configure:1790: gcc -E conftest.c
configure:1803: checking build system type
configure:1858: checking how to run the C preprocessor
configure:1879: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1874:20: assert.h: No such file or directory
configure: failed program was:
#line 1873 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
configure:1896: gcc -E -traditional-cpp  conftest.c >/dev/null 2>conftest.out
configure:1891: assert.h: No such file or directory
configure: failed program was:
#line 1890 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
configure:1913: gcc -nologo -E  conftest.c >/dev/null 2>conftest.out
gcc: unrecognized option `-nologo'
configure:1908:20: assert.h: No such file or directory
configure: failed program was:
#line 1907 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
configure:1956: checking for ranlib
configure:2025: checking whether as is GNU as
configure:2044: checking whether ld is GNU ld
configure:2064: checking for mig
configure:2121: checking whether ranlib is necessary
configure:2155: checking LD_LIBRARY_PATH variable
configure:2173: checking whether GCC supports -static-libgcc
configure:2190: checking for bash
configure:2286: checking for mawk
configure:2286: checking for gawk
configure:2318: checking for perl
configure:2358: checking for install-info
configure:2393: checking for old Debian install-info
configure:2428: checking for bison
configure:2463: checking for signed size_t type
configure:2487: checking for libc-friendly stddef.h
configure:2507: gcc -c   conftest.c 1>&5
gcc: installation problem, cannot exec `as': No such file or directory
configure: failed program was:
#line 2492 "configure"
#include "confdefs.h"
#define __need_size_t
#define __need_wchar_t
#include <stddef.h>
#define __need_NULL
#include <stddef.h>
int main() {
size_t size; wchar_t wchar;
#ifdef offsetof
#error stddef.h ignored __need_*
#endif
if (&size == NULL || &wchar == NULL) abort ();
; return 0; }
configure:2526: checking whether we need to use -P to assemble .S files
configure:2549: checking whether .text pseudo-op must be used
configure:2570: checking for assembler global-symbol directive
发表于 2003-1-22 13:40:40 | 显示全部楼层
我觉得你的问题是,你没有把gcc-build目录删了,这个也是在编译过程里创建的目录,也要和源码一起删掉,在把这两个目录删掉后,解压,再编译,不会有什么问题的。
 楼主| 发表于 2003-1-22 14:19:25 | 显示全部楼层
现在gcc-build也删了,问题依旧
发表于 2003-1-22 15:31:09 | 显示全部楼层
configure:1738: gcc -o conftest conftest.c 1>&5
gcc: installation problem, cannot exec `as': No such file or directory
configure: failed program was:

从这些提示上可以看出,是$LFS/static/bin/as可能工作不正常造成的。很可能是在编译时,没有静态链接。你用ldd $LFS/static/bin/as 看看有没有出来链接库。如果有,回到第五章,重装binutils。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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