Hello,
  Can anyone advise on this error when building Thrift from source on Linux:
  During build phase in /thrift/compiler/cpp/src, the ylwrap script (generated 
from the bootstrap.sh command before configure and make) gives the following 
error:

ylwrap thrift/thrifty.yy y.tab.c thrift/thrifty.cc y.tab.h `echo 
thrift/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 thrift/thrifty.output -- 
/stuff/bison/bin/bison -d
updating thriftthrift/thrifty.ccc
mv: cannot move 'tmp-thrifty.ccc' to '../thriftthrift/thrifty.ccc': No such 
file or directory

I've looked at the generated ylwrap script and the issue is on the lined that 
invokes sed_fix_filenames:

  to=`printf '%s\n' "$from" | sed "$sed_fix_filenames"`
  which calls
  sed_fix_filenames="${sed_fix_filenames}s|"`quote_for_sed "$from"`"|$to|g;"

I can't figure out why it thinks it should write to directory "thriftthrift" 
instead of just "thrift".  I don't know where the extra "thrift" in the 
directory name is coming from.
Any help is appreciated.
Thanks!
     ellen

Reply via email to