[LLVMdev] 2.1 Pre-Release Available (testers needed)

Emil Mikulic emil at cs.rmit.edu.au
Mon Sep 17 22:36:34 PDT 2007


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



More information about the llvm-dev mailing list