我正在尝试在Debian(6或7)上编译gcc-4.9RC
或gcc-4.8.2
。
已安装flex 2.5.35
,甚至编译了自己的flex2.5.39
。
我确认它可以从简单的.l
文件生成yy.c
输出。
另外,我在gcc文档中了解到,在从发布版(gcc-4.8.2)进行编译时不应该需要flex。
尽管如此,在运行make
之后,我总是会在某些内部configure
中得到以下内容:
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
它配置有:
../gcc-4.8.2/configure --enable-languages=c,c++,fortran --with-cloog --prefix=/home/***/gcc-4.8.2
我不知道应该尝试什么。