gengtype-lex.c: No such file or directory
Closed this issue · 2 comments
gopherbot commented
by grizzlysmit:
I am following the steps on this page http://golang.org/doc/gccgo_install.html like so svn checkout svn://gcc.gnu.org/svn/gcc/branches/gccgo gccgo mkdir objdir cd objdir ../gccgo/configure --enable-languages=c,c++,go make make install my error occurs in make gcc -c -g -fkeep-inline-functions -DIN_GCC -DGO_DEBUGGING_INFO -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common -Wno-error -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gccgo/gcc -I../../gccgo/gcc/build -I../../gccgo/gcc/../include -I../../gccgo/gcc/../libcpp/include -I../../gccgo/gcc/../libdecnumber -I../../gccgo/gcc/../libdecnumber/bid -I../libdecnumber \ -o build/gengtype-lex.o gengtype-lex.c gcc: gengtype-lex.c: No such file or directory gcc: no input files make[3]: *** [build/gengtype-lex.o] Error 1 make[3]: Leaving directory `/home/grizzlysmit/Projects/go/objdir/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/home/grizzlysmit/Projects/go/objdir' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/grizzlysmit/Projects/go/objdir' make: *** [all] Error 2 me@mybox:~/Projects/go/objdir$ looks like a key file isn't making it to subversion
robpike commented
ianlancetaylor commented
You need to install the flex program, rm config.cache gcc/config.cache, and rerun the configure script. The full set of prerequisites for building gcc can be found at http://gcc.gnu.org/install/ .
Status changed to WontFix.