QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3508|回复: 16

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

[复制链接]
发表于 2005-12-7 13:40:46 | 显示全部楼层 |阅读模式
=====================
gcc: gengtype-lex.c: 没有那个文件或目录
gcc: no input files
make[2]: *** [build/gengtype-lex.o] 错误 1
make[2]: *** 正在等待未完成的任务....
发表于 2005-12-7 22:28:50 | 显示全部楼层
可能你没装lex得关系, magic+gcc4.1== 强
回复

使用道具 举报

 楼主| 发表于 2005-12-8 10:50:57 | 显示全部楼层
怎样装lex  
不是 magic+gcc4.1
忘改签名
回复

使用道具 举报

发表于 2005-12-8 11:07:45 | 显示全部楼层
emerge flex
回复

使用道具 举报

 楼主| 发表于 2005-12-8 11:09:33 | 显示全部楼层
apt-get install flex
可以吗
回复

使用道具 举报

 楼主| 发表于 2005-12-8 13:33:05 | 显示全部楼层
又缺一个 gengtype-yacc.c
请问又要哪个包?
回复

使用道具 举报

发表于 2005-12-8 18:03:34 | 显示全部楼层
yacc
回复

使用道具 举报

 楼主| 发表于 2005-12-8 18:41:55 | 显示全部楼层
这个包在哪里有?
找不到!!!
回复

使用道具 举报

发表于 2005-12-8 21:19:25 | 显示全部楼层
google总有吧
回复

使用道具 举报

发表于 2005-12-9 12:03:45 | 显示全部楼层
在编译gcc的前运行过apt-get build-dep gcc没有?
如果没有最好运行一下。
回复

使用道具 举报

发表于 2005-12-9 13:21:47 | 显示全部楼层
我装4.1咋就没要这些鸟东西?
回复

使用道具 举报

 楼主| 发表于 2005-12-9 14:16:08 | 显示全部楼层
已运行过
apt-get build-dep gcc
回复

使用道具 举报

 楼主| 发表于 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
回复

使用道具 举报

发表于 2005-12-9 21:14:54 | 显示全部楼层
不是configure 过去了嘛, 用configure --help看看注解
回复

使用道具 举报

发表于 2005-12-9 21:50:32 | 显示全部楼层
还是Gentoo省心,已经用gcc4.1重新编译了一个系统。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-30 13:29 , Processed in 0.043290 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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