LinuxSir.cn,穿越时空的Linuxsir!

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

chapter 6 when configuring glibc-2.2.5 ,it said I'm not using gcc

[复制链接]
发表于 2003-5-10 10:54:08 | 显示全部楼层 |阅读模式
I have no name!:/static/src/glibc-build# ../glibc-2.2.5/configure \
> --prefix=/usr --disable-profile --enable-add-ons --libexecdir=/usr/bin
loading cache ./config.cache
../glibc-2.2.5/configure: grep: command not found
checking host system type... \c
i686-pc-linux-gnu
checking sysdep dirs... \c
sysdeps/i386/elf \c
linuxthreads/sysdeps/unix/sysv/linux/i386 \c
linuxthreads/sysdeps/unix/sysv/linux \c
linuxthreads/sysdeps/pthread \c
sysdeps/pthread \c
linuxthreads/sysdeps/unix/sysv \c
linuxthreads/sysdeps/unix \c
linuxthreads/sysdeps/i386/i686 \c
linuxthreads/sysdeps/i386 \c
sysdeps/unix/sysv/linux/i386/i686 \c
sysdeps/unix/sysv/linux/i386 \c
sysdeps/unix/sysv/linux \c
sysdeps/gnu \c
sysdeps/unix/common \c
sysdeps/unix/mman \c
sysdeps/unix/inet \c
sysdeps/unix/sysv/i386 \c
sysdeps/unix/sysv \c
sysdeps/unix/i386 \c
sysdeps/unix \c
sysdeps/posix \c
sysdeps/i386/i686/fpu \c
sysdeps/i386/i686 \c
sysdeps/i386/i486 \c
sysdeps/i386/fpu \c
sysdeps/i386 \c
sysdeps/wordsize-32 \c
sysdeps/ieee754/ldbl-96 \c
sysdeps/ieee754/dbl-64 \c
sysdeps/ieee754/flt-32 \c
sysdeps/ieee754 \c
sysdeps/generic/elf sysdeps/generic
checking for a BSD compatible install... \c
/static/bin/install -c
checking whether ln -s works... \c
yes
checking for pwd... \c
/static/bin/pwd
checking build system type... \c
i686-pc-linux-gnu
checking for gcc... \c
gcc
checking version of gcc... \c
3.2, ok
checking for gnumake... \c
no
checking for gmake... \c
no
checking for make... \c
make
checking version of make... \c
3.80, ok
checking for gnumsgfmt... \c
no
checking for gmsgfmt... \c
no
checking for msgfmt... \c
no
checking for makeinfo... \c
makeinfo
checking version of makeinfo... \c
4.2, ok
checking for gsed... \c
no
checking for sed... \c
sed
checking version of sed... \c
4.0, ok
checking whether the C compiler (gcc  ) works... \c
no
checking whether the C compiler (gcc  ) is a cross-compiler... \c
(cached) \c
yes
checking whether we are using GNU C... \c
no
configure: error: GNU libc must be compiled using GNU CC
I have no name!:/static/src/glibc-build#



why?I have installed gcc.
发表于 2003-5-10 12:33:00 | 显示全部楼层
faq里面有一个和你的一样,你照那个试试?
http://lfs.cosoft.org.cn/faq/#config-not-gnu-c
 楼主| 发表于 2003-5-11 09:59:37 | 显示全部楼层

done but another error occured

It occured when run 'make' .the previous steps were all right.


I have no name!:/static/src/glibc-build# make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.2.5 objdir=`pwd` all
make[1]: Entering directory `/static/src/glibc-2.2.5'
Makerules:679: *** multiple target patterns.  Stop.
make[1]: Leaving directory `/static/src/glibc-2.2.5'
make: *** [all] Error 2
I have no name!:
发表于 2003-5-11 12:41:36 | 显示全部楼层
我觉得还是configure里面有问题,因为multiple target patterns就是说明Makefile生成得不对,而Makefile是configure的时候生成的。你再看看configure的那步,有没有什么奇怪的现象?
 楼主| 发表于 2003-5-12 08:08:40 | 显示全部楼层

there are some wornings :

I have no name!:/static/src/glibc-build# ../glibc-2.2.5/configure \
>  --prefix=/usr --disable-profile \
> --enable-add-ons --libexecdir=/usr/bin
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking sysdep dirs... sysdeps/i386/elf linuxthreads/sysdeps/unix/sysv/linux/i386 linuxthreads/sysdeps/unix/sysv/linux linuxthreads/sysdeps/pthread sysdeps/pthread linuxthreads/sysdeps/unix/sysv linuxthreads/sysdeps/unix linuxthreads/sysdeps/i386/i686 linuxthreads/sysdeps/i386 sysdeps/unix/sysv/linux/i386/i686 sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 sysdeps/unix/sysv sysdeps/unix/i386 sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu sysdeps/i386/i686
sysdeps/i386/i486 sysdeps/i386/fpu sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD compatible install... (cached) /static/bin/install -c
checking whether ln -s works... (cached) yes
checking for pwd... (cached) /static/bin/pwd
checking build system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking version of gcc... 3.2, ok
checking for gnumake... (cached) make
checking version of make... 3.80, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... no
checking for makeinfo... (cached) makeinfo
checking version of makeinfo... 4.2, ok
checking for gsed... (cached) sed
checking version of sed... 4.0, ok
checking whether the C compiler (gcc  ) works... (cached) no
checking whether the C compiler (gcc  ) is a cross-compiler... (cached) yes
checking whether we are using GNU C... (cached) yes
checking build system type... i686-pc-linux-gnu
checking how to run the C preprocessor... (cached) /lib/cpp
checking whether /static/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../../i686-pc-linux-gnu/bin/as is GNU as... (cached) yes
checking whether /static/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../../i686-pc-linux-gnu/bin/ld is GNU ld... (cached) yes
checking for mig... (cached) mig
configure: warning:
*** These auxiliary programs are missing or too old: msgfmt
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking whether ranlib is necessary... (cached) yes
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... (cached) -static-libgcc
checking for bash... (cached) /bin/sh
checking for mawk... (cached) gawk
checking for perl... (cached) no
checking for install-info... (cached) /static/bin/install-info
checking for old Debian install-info... (cached) no
checking for bison... (cached) no
checking for signed size_t type... (cached) yes
checking for libc-friendly stddef.h... (cached) yes
checking whether we need to use -P to assemble .S files... (cached) no
checking whether .text pseudo-op must be used... (cached) yes
checking for assembler global-symbol directive... (cached) .globl
checking for .set assembler directive... (cached) no
checking for .symver assembler directive... (cached) yes
checking for ld --version-script... (cached) yes
checking for .previous assembler directive... (cached) yes
checking for .protected and .hidden assembler directive... (cached) yes
checking for -z nodelete option... (cached) yes
checking for -z nodlopen option... (cached) yes
checking for -z initfirst option... (cached) yes
checking for -Bgroup option... (cached) yes
checking for -z combreloc... (cached) yes
checking whether cc puts quotes around section names... (cached) no
checking for assembler .weak directive... (cached) yes
checking for ld --no-whole-archive... (cached) yes
checking for gcc -fexceptions... (cached) yes
checking for DWARF2 unwind info support... (cached) no
checking for __builtin_expect... (cached) yes
checking for local label subtraction... (cached) yes
checking for libgd... no
checking size of long double... (cached) 0
running configure fragment for ../glibc-2.2.5/linuxthreads/sysdeps/unix/sysv/linux
running configure fragment for ../glibc-2.2.5/sysdeps/unix/sysv/linux
checking installed Linux kernel header files... (cached) 2.0.10 or later
checking for symlinks in /usr/include... ok
running configure fragment for ../glibc-2.2.5/sysdeps/unix/common
running configure fragment for ../glibc-2.2.5/sysdeps/unix
running configure fragment for ../glibc-2.2.5/sysdeps/generic
checking stdio selection... libio
checking for old glibc 2.0.x headers... no
checking whether -fPIC is default... no
../glibc-2.2.5/configure: cmp: command not found
updating cache ./config.cache
creating ./config.status
creating config.make
creating glibcbug
creating Makefile
creating config.h
configuring in linuxthreads
running /bin/sh ../../glibc-2.2.5/linuxthreads/configure  --prefix=/usr --disable-profile --enable-add-ons --libexecdir=/usr/bin --cache-file=.././config.cache
--srcdir=../../glibc-2.2.5/linuxthreads
I have no name!:/static/src/glibc-build#
发表于 2003-5-12 09:16:43 | 显示全部楼层
你没有解压linuxthreads吧?
 楼主| 发表于 2003-5-12 13:07:54 | 显示全部楼层

有啊。

我在glibc-2.2.5目录底下运行tar xvjf glibc-linuxthreads的。看上面有一行running configure fragment for ../glibc-2.2.5/linuxthreads/sysdeps/unix/sysv/linux
还有倒数第4行也有。
那个warning 是什么意思?
发表于 2003-5-12 13:35:40 | 显示全部楼层
那个warning没有关系.不是msgfmt的问题.
删了源码目录和glibc-build,重来一次呢?
 楼主| 发表于 2003-5-14 08:46:36 | 显示全部楼层

I have done that twice

with the same error.
发表于 2003-5-14 09:00:37 | 显示全部楼层
checking whether the C compiler (gcc ) works... (cached) no

重装第五章gcc
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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