Build error: 'No rule to make target gen-cpp/scribe.cpp'

397 views
Skip to first unread message

Chris

unread,
Sep 18, 2010, 3:20:38 PM9/18/10
to Scribe Server
make all-recursive
make[1]: Entering directory `/home/me/Downloads/scribe'
Making all in .
make[2]: Entering directory `/home/me/Downloads/scribe'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/me/Downloads/scribe'
Making all in src
make[2]: Entering directory `/home/me/Downloads/scribe/src'
Makefile:892: warning: overriding commands for target `gen-cpp/
_types.cpp'
Makefile:891: warning: ignoring old commands for target `gen-cpp/
_types.cpp'
/usr/local/bin/thrift -o . -I /usr/local/share/ --cpp --py --php --
java ../if/bucketupdater.thrift
[WARNING:arguments:1] -cpp is deprecated. Use --gen cpp
[WARNING:arguments:1] -java is deprecated. Use --gen java
[WARNING:arguments:1] -py is deprecated. Use --gen py
[WARNING:arguments:1] -php is deprecated. Use --gen php
make all-am
make[3]: Entering directory `/home/me/Downloads/scribe/src'
Makefile:892: warning: overriding commands for target `gen-cpp/
_types.cpp'
Makefile:891: warning: ignoring old commands for target `gen-cpp/
_types.cpp'
make[3]: *** No rule to make target `gen-cpp/scribe.cpp', needed by
`scribe.o'. Stop.
make[3]: Leaving directory `/home/me/Downloads/scribe/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/me/Downloads/scribe/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/me/Downloads/scribe'
make: *** [all] Error 2

What can I do to remedy this?

Andrew Milkowski

unread,
Nov 15, 2010, 10:31:30 AM11/15/10
to Scribe Server
Hey there,

try to run from the src directory

/opt/local/src/thrift/thrift-0.5.0/dist/bin/thrift -o . -I /opt/local/
src/thrift/thrift-0.5.0/dist/share/ --gen cpp:pure_enums --gen py --
gen php --gen java ../if/scribe.thrift

(replace /opt/local/src/thrift/thrift-0.5.0/dist/bin/thrift with
your path to 0.5.0 thrift binary and -I /opt/local/src/thrift/
thrift-0.5.0/dist/share/ with a directory corresponding to your
project structure

then from root of the project

./configure
make
make install

Make process should do the above, but this workaround will unblock you
for the time being...

best
Reply all
Reply to author
Forward
0 new messages