编译gcc - 找不到flex的输出; 放弃

Vla*_*r F 4 gcc configure flex-lexer

我正在尝试编译gcc-4.9RCgcc-4.8.2在Debian(6或7)上编译.

flex 2.5.35安装,我甚至编译自己的flex 2.5.39.

我确认它yy.c从一个简单的.l文件生成一个输出.

我还在gcc文档中了解到,从发布版本(gcc-4.8.2版本)进行编译时,不需要flex.

不过我跑完configure后总是在内部得到这个make:

checking for bison... bison -y
checking for flex... flex
checking lex output file root... configure: error: cannot find output from flex; giving up
make[2]: *** [configure-stage1-gmp] Error 1
make[2]: Leaving directory `***/gcc-bin-8'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `***/gcc-bin-8'
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)

它配置有:

../gcc-4.8.2/configure --enable-languages=c,c++,fortran --with-cloog --prefix=/home/***/gcc-4.8.2
Run Code Online (Sandbox Code Playgroud)

我不知道我应该多尝试一下.

ACy*_*lic 6

构建gmp(gcc的先决条件)时会产生此错误.这是4.8.3 Ref:gmp bug中gmp中的一个已知错误.如果运行contrib/download_prerequisites,默认情况下会得到gmp 4.8.3.解决方法是编辑gmp-4.8.3/configure.in和gmp-4.8.3/configure和change

M4=m4-not-required

对于

M4=m4