[
https://issues.apache.org/jira/browse/THRIFT-1838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13560024#comment-13560024
]
Roger Meier commented on THRIFT-1838:
-------------------------------------
Thanks Diwakar!
could you add some platform defines here?
it does not compile on Debian GNU/Linux(squeeze) using
bison 1:2.4.1.dfsg-3 and flex 2.5.35-10
{noformat}
g++ -DHAVE_CONFIG_H -I. -I../.. -I./src -Wall -Wno-sign-compare -Wno-unused
-g -O2 -MT libparse_a-thriftl.o -MD -MP -MF .deps/libparse_a-thriftl.Tpo -c -o
libparse_a-thriftl.o `test -f 'thriftl.cc' || echo './'`thriftl.cc
thriftl.ll:51:22: error: thrifty.hh: No such file or directory
thriftl.ll: In function 'int yylex()':
thriftl.ll:114: error: 'yylval' was not declared in this scope
thriftl.ll:114: error: 'tok_int_constant' was not declared in this scope
thriftl.ll:115: error: 'yylval' was not declared in this scope
{noformat}
;-r
> Can't build compiler on OS X because of missing thrifty.h
> ---------------------------------------------------------
>
> Key: THRIFT-1838
> URL: https://issues.apache.org/jira/browse/THRIFT-1838
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (General)
> Affects Versions: 0.9
> Environment: OS X 10.8.2
> Thrift trunk
> bison (GNU Bison) 2.3
> flex 2.5.35 Apple(flex-31)
> Note that I'm using the bison/flex that ship with OS X.
> Reporter: Diwaker Gupta
> Assignee: Jake Farrell
> Attachments: THRIFT-1838.patch
>
>
> With a clean checkout, run boostrap -> configure and try to build the
> compiler. Fails with:
> {noformat}
> /bin/sh ../../ylwrap `test -f 'src/thrifty.yy' || echo
> './'`src/thrifty.yy y.tab.c thrifty.cc y.tab.h `echo thrifty.cc | sed -e
> s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s
> /c++$/h++/ -e s/c$/h/` y.output thrifty.output -- bison -y -d updating
> thrifty.hhg++ -DHAVE_CONFIG_H -I. -I../.. -I./src -Wall -Wno-sign-compare
> -Wno-unused -g -O2 -MT libparse_a-thrifty.o -MD -MP -MF
> .deps/libparse_a-thrifty.Tpo -c -o libparse_a-thrifty.o `test -f 'thrifty.cc'
> || echo './'`thrifty.cc
> mv -f .deps/libparse_a-thrifty.Tpo .deps/libparse_a-thrifty.Po\ \
> /bin/sh ../../ylwrap `test -f 'src/thriftl.ll' || echo './'`src/thriftl.ll
> lex.yy.c thriftl.cc -- flex
> g++ -DHAVE_CONFIG_H -I. -I../.. -I./src -Wall -Wno-sign-compare -Wno-unused
> -g -O2 -MT libparse_a-thriftl.o -MD -MP -MF .deps/libparse_a-thriftl.Tpo -c
> -o libparse_a-thriftl.o `t
> est -f 'thriftl.cc' || echo './'`thriftl.cc
> src/thriftl.ll:51:21: error: thrifty.h: No such file or directory
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira