On Mon, 17 Sep 2007, Emil Mikulic wrote:>> The 2.1 pre-release (version 1) is available for testing: >> http://llvm.org/prereleases/2.1/version1/ > > I suspect the utils/TableGen/FileParser.h.cvs in the tarball may be > stale. I tried building LLVM without bison installed and got:Can you try it again without bison with these files: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070917/053582.html If they work, we should merge them into 2.1. Thanks Emil! -Chris -- http://nondot.org/sabre/ http://llvm.org/
On Mon, Sep 17, 2007 at 12:25:40PM -0700, Chris Lattner wrote:> On Mon, 17 Sep 2007, Emil Mikulic wrote: > >> The 2.1 pre-release (version 1) is available for testing: > >> http://llvm.org/prereleases/2.1/version1/ > > > > I suspect the utils/TableGen/FileParser.h.cvs in the tarball may be > > stale. I tried building LLVM without bison installed and got: > > Can you try it again without bison with these files: > http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070917/053582.html > > If they work, we should merge them into 2.1.So far so good. I removed bison and objdir and srcdir, unpacked a fresh srcdir, applied the patches above and TableGen is looking good: gmake[2]: Entering directory `/home/emil/ll/objdir-llvm/utils/TableGen' llvm[2]: Compiling AsmWriterEmitter.cpp for Release build llvm[2]: Compiling CallingConvEmitter.cpp for Release build llvm[2]: Compiling CodeEmitterGen.cpp for Release build llvm[2]: Compiling CodeGenTarget.cpp for Release build llvm[2]: Compiling DAGISelEmitter.cpp for Release build llvm[2]: Flexing FileLexer.l llvm[2]: Bison of FileParser.y SKIPPED, bison not found -- copying .h.cvs llvm[2]: Compiling FileLexer.cpp for Release build llvm[2]: Bison of FileParser.y SKIPPED, bison not found -- copying .cpp.cvs llvm[2]: Compiling FileParser.cpp for Release build /usr/share/bison.simple: In function 'int Fileparse()': /usr/share/bison.simple:614: warning: comparison between signed and unsigned integer expressions /usr/share/bison.simple:626: warning: comparison between signed and unsigned integer expressions llvm[2]: Compiling InstrInfoEmitter.cpp for Release build llvm[2]: Compiling IntrinsicEmitter.cpp for Release build llvm[2]: Compiling Record.cpp for Release build llvm[2]: Compiling RegisterInfoEmitter.cpp for Release build llvm[2]: Compiling SubtargetEmitter.cpp for Release build llvm[2]: Compiling TableGen.cpp for Release build llvm[2]: Compiling TableGenBackend.cpp for Release build llvm[2]: Linking Release executable tblgen (without symbols) llvm[2]: ======= Finished Linking Release Executable tblgen (without symbols) gmake[2]: Leaving directory `/home/emil/ll/objdir-llvm/utils/TableGen' [...] --Emil
On Sep 17, 2007, at 6:59 PM, Emil Mikulic wrote:> On Mon, Sep 17, 2007 at 12:25:40PM -0700, Chris Lattner wrote: >> On Mon, 17 Sep 2007, Emil Mikulic wrote: >>>> The 2.1 pre-release (version 1) is available for testing: >>>> http://llvm.org/prereleases/2.1/version1/ >>> >>> I suspect the utils/TableGen/FileParser.h.cvs in the tarball may be >>> stale. I tried building LLVM without bison installed and got: >> >> Can you try it again without bison with these files: >> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of- >> Mon-20070917/053582.html >> >> If they work, we should merge them into 2.1. > > So far so good. > > I removed bison and objdir and srcdir, unpacked a fresh srcdir, > applied the > patches above and TableGen is looking good:Nice. Tanya, can you please merge this patch onto the 2.1 branch? :) -Chris
More bison woes. llvm-2.1 + the patch Chris mentioned builds without bison, but llvm-gcc4 doesn't: /home/emil/ll/llvm-gcc4.0-2.1.source/missing bison -d -o gengtype-yacc.c ../../llvm-gcc4.0-2.1.source/gcc/gengtype-yacc.y WARNING: `bison' missing on your system. You should only need it if you modified a `.y' file. You may need the `Bison' package in order for those modifications to take effect. You can get `Bison' from any GNU archive site. gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wno-error -DHAVE_CONFIG_H -DGENERATOR_FILE -DENABLE_LLVM -I/home/emil/ll/objdir-llvm/../llvm-2.1/include -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -I. -Ibuild -I../../llvm-gcc4.0-2.1.source/gcc -I../../llvm-gcc4.0-2.1.source/gcc/build -I../../llvm-gcc4.0-2.1.source/gcc/../include -I./../intl -I../../llvm-gcc4.0-2.1.source/gcc/../libcpp/include -I/home/emil/ll/llvm-2.1/include -I/home/emil/ll/objdir-llvm/include \ -o build/gengtype-lex.o gengtype-lex.c ../../llvm-gcc4.0-2.1.source/gcc/gengtype-lex.l:31:27: error: gengtype-yacc.h: No such file or directory ../../llvm-gcc4.0-2.1.source/gcc/gengtype-lex.l: In function 'yylex': ../../llvm-gcc4.0-2.1.source/gcc/gengtype-lex.l:220: error: 'yylval' undeclared (first use in this function) [...] gmake[1]: *** [build/gengtype-lex.o] Error 1 gmake[1]: Leaving directory `/home/emil/ll/objdir-gcc/gcc' gmake: *** [all-gcc] Error 2 If I install bison and try again from the top, it succeeds. --Emil