You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by Ellen Johnson <El...@mathworks.com> on 2018/09/10 21:38:00 UTC

problem building from source on Linux -- ylwrap issue?

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