compiling Fiasco trunk, Bison trouble

Roman Beslik rabforum at
Tue Jul 14 08:04:46 CEST 2009

I'm trying to compile Fiasco trunk using this manual: . When I compile tudos/l4 
tree, many errors appear in tudos/dice/src/parser/idl :
g++ -DHAVE_CONFIG_H -I. -I. -I../../..  -I../../../src -Wall 
-I../../../src  -g -O2 -MT idl-scanner.o -MD -MP -MF 
.deps/idl-scanner.Tpo -c -o idl-scanner.o
In file included from ../../../src/parser/idl/location.hh:44,
                 from idl-parser-driver.hh:35,
                 from idl-scanner.ll:6:
position.hh: In function ‘bool yy::operator==(const yy::position&, const 
position.hh:136: warning: suggest parentheses around ‘&&’ within ‘||’
In file included from idl-parser-driver.hh:35,
                 from idl-scanner.ll:6:
idl-parser.yy: At global scope:
idl-parser.yy:76: error: use of enum ‘EXPT_OPERATOR’ without previous 
idl-parser.yy:78: error: ISO C++ forbids declaration of ‘CFETypeSpec’ 
with no type
idl-parser.yy:78: error: expected ‘;’ before ‘*’ token
idl-parser.yy:79: error: ISO C++ forbids declaration of ‘CFEAttribute’ 
with no type
idl-parser.yy:79: error: expected ‘;’ before ‘*’ token
idl-parser.yy:80: error: ISO C++ forbids declaration of ‘CFEExpression’ 
with no type
idl-parser.yy:80: error: expected ‘;’ before ‘*’ token
{{{many errors skipped}}}
make[6]: *** [idl-scanner.o] Error 1
make[6]: Leaving directory `/tudos/dice/src/parser/idl'

It seems that tudos/dice/src/fe/*.h files is not included with 
"#include" in tudos/dice/src/parser/idl/, because when 
I include them by hand, "g++ ..." works out without an error.

 >yacc --version
bison (GNU Bison) 2.4.1
 >g++ --version
g++ (GCC) 4.4.0 20090630 (prerelease)
 >ls -l /usr/local/bin/byacc
lrwxrwxrwx 1 root root 13 2009-07-14 04:24 /usr/local/bin/byacc -> 

-- Best regards, Roman Beslik.

More information about the l4-hackers mailing list