genko 发表于 2005-12-7 13:40:46

编译gcc4.1 缺少 gengtype-lex.c ???

=====================
gcc: gengtype-lex.c: 没有那个文件或目录
gcc: no input files
make: *** 错误 1
make: *** 正在等待未完成的任务....

linky_fan 发表于 2005-12-7 22:28:50

可能你没装lex得关系, magic+gcc4.1== 强 :mrgreen:

genko 发表于 2005-12-8 10:50:57

怎样装lex
不是 magic+gcc4.1
忘改签名

druggo 发表于 2005-12-8 11:07:45

emerge flex

genko 发表于 2005-12-8 11:09:33

apt-get install flex
可以吗

genko 发表于 2005-12-8 13:33:05

又缺一个 gengtype-yacc.c
请问又要哪个包?

druggo 发表于 2005-12-8 18:03:34

yacc

genko 发表于 2005-12-8 18:41:55

这个包在哪里有?
找不到!!!

linky_fan 发表于 2005-12-8 21:19:25

google总有吧 :arrow:

zlbruce 发表于 2005-12-9 12:03:45

在编译gcc的前运行过apt-get build-dep gcc没有?
如果没有最好运行一下。

druggo 发表于 2005-12-9 13:21:47

我装4.1咋就没要这些鸟东西?

genko 发表于 2005-12-9 14:16:08

已运行过
apt-get build-dep gcc

genko 发表于 2005-12-9 19:17:10

以下是我的configure信息帮我看一下还有哪些包是我必需要装的!谢谢!
root@00-PC:/var/gcc# ../gcc-4.1-20051202/configure --prefix=/opt --libexecdir=/o
pt/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-lan
guage=c,c++
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc) works... yes
checking whether the C compiler (gcc) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gnatbind... no
checking whether compiler driver understands Ada... (cached) no
checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16
$$f1 $$f2
checking for correct version of gmp.h... no
The following languages will be built: c,c++,java,objc
*** This configuration is not supported in the following subdirectories:
   target-libada gnattools target-libgfortran
    (Any other directories should still work fine.)
checking for bison... (cached) bison
checking for bison... (cached) bison -y
checking for gm4... (cached) m4
checking for flex... (cached) flex
checking for flex... (cached) flex
checking for makeinfo... (cached) makeinfo
checking for i686-pc-linux-gnu-ar... (cached) ar
checking for i686-pc-linux-gnu-as... (cached) as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking for i686-pc-linux-gnu-ld... (cached) ld
checking for i686-pc-linux-gnu-nm... (cached) nm
checking for i686-pc-linux-gnu-ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... no
checking for i686-pc-linux-gnu-objcopy... (cached) objcopy
checking for i686-pc-linux-gnu-objdump... (cached) objdump
checking for i686-pc-linux-gnu-ar... (cached) ar
checking for i686-pc-linux-gnu-as... (cached) as
checking for i686-pc-linux-gnu-cc... (cached) cc
checking for i686-pc-linux-gnu-c++... (cached) c++
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking for i686-pc-linux-gnu-gcc... (cached) gcc
checking for i686-pc-linux-gnu-gcj... no
checking for gcj... no
checking for i686-pc-linux-gnu-gfortran... no
checking for gfortran... no
checking for i686-pc-linux-gnu-ld... (cached) ld
checking for i686-pc-linux-gnu-lipo... no
checking for lipo... no
checking for i686-pc-linux-gnu-nm... (cached) nm
checking for i686-pc-linux-gnu-objdump... (cached) objdump
checking for i686-pc-linux-gnu-ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-strip... (cached) strip
checking for i686-pc-linux-gnu-windres... no
checking for windres... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... (cached) yes
creating ./config.status
creating Makefile

linky_fan 发表于 2005-12-9 21:14:54

不是configure 过去了嘛, 用configure --help看看注解 8)

Twig 发表于 2005-12-9 21:50:32

还是Gentoo省心,已经用gcc4.1重新编译了一个系统。
页: [1] 2
查看完整版本: 编译gcc4.1 缺少 gengtype-lex.c ???