Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thrift compiler does not run correctly automatically as part of the build system in out-of-source builds #9

Open
wesm opened this issue May 13, 2016 · 1 comment
Labels

Comments

@wesm
Copy link
Contributor

wesm commented May 13, 2016

From a fresh clone:

$ make
Scanning dependencies of target thrift-generated-files-error
[  2%] Generating ErrorCodes.thrift
ErrorCodes.thrift created.
[  2%] Built target thrift-generated-files-error
Scanning dependencies of target thrift-cpp
[  5%] Running thrift compiler on ErrorCodes.thrift
[  7%] Running thrift compiler on beeswax.thrift
[ 10%] Running thrift compiler on TCLIService.thrift
[ 12%] Running thrift compiler on ExecStats.thrift
[ 15%] Running thrift compiler on ImpalaService.thrift
[ 17%] Running thrift compiler on Status.thrift
[ 20%] Running thrift compiler on Types.thrift
[ 20%] Built target thrift-cpp
Scanning dependencies of target hs2client_thrift
make[2]: *** No rule to make target `src/gen-cpp/ImpalaService.cpp', needed by `src/gen-cpp/CMakeFiles/hs2client_thrift.dir/ImpalaService.cpp.o'.  Stop.
make[1]: *** [src/gen-cpp/CMakeFiles/hs2client_thrift.dir/all] Error 2
make: *** [all] Error 2
@wesm wesm added the bug label May 13, 2016
@wesm wesm changed the title Thrift compiler does not run correctly automatically as part of the build system Thrift compiler does not run correctly automatically as part of the build system in out-of-source builds May 13, 2016
@sewenew
Copy link

sewenew commented May 17, 2021

I got the same problem. You should run cmake in the root directory of the project, instead of creating a subdirectory and run cmake.

# This works:
cmake .

make -j4
# This won't work!!!!
mkdir build

cd build

cmake ..

make -j4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants