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

Build: add make before make install to catch up CMakeLists change. #11378

Merged
merged 1 commit into from
Jun 12, 2018

Conversation

wanglei828
Copy link
Contributor

This PR (#11309) changed the CMakeLists.txt. Without make before make install, this change cannot be catch up by cmake and will cause the build error. For example:

[100%] Linking CXX executable test_dot
/usr/bin/ld: cannot find -lsend_vars_op
[100%] Linking CXX executable test_node
collect2: error: ld returned 1 exit status
paddle/fluid/inference/analysis/CMakeFiles/test_dot.dir/build.make:406: recipe for target 'paddle/fluid/inference/analysis/test_dot' failed
make[2]: *** [paddle/fluid/inference/analysis/test_dot] Error 1
CMakeFiles/Makefile2:35598: recipe for target 'paddle/fluid/inference/analysis/CMakeFiles/test_dot.dir/all' failed
make[1]: *** [paddle/fluid/inference/analysis/CMakeFiles/test_dot.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: cannot find -lsend_vars_op
collect2: error: ld returned 1 exit status
paddle/fluid/inference/analysis/CMakeFiles/test_node.dir/build.make:406: recipe for target 'paddle/fluid/inference/analysis/test_node' failed
make[2]: *** [paddle/fluid/inference/analysis/test_node] Error 1
CMakeFiles/Makefile2:36276: recipe for target 'paddle/fluid/inference/analysis/CMakeFiles/test_node.dir/all' failed
make[1]: *** [paddle/fluid/inference/analysis/CMakeFiles/test_node.dir/all] Error 2

Users may fix this build error by just deleting the whole build directory to rebuild everything, but I think adding a make before make install is a more efficient way.

Copy link
Contributor

@dzhwinter dzhwinter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@luotao1 luotao1 merged commit a6950e0 into PaddlePaddle:develop Jun 12, 2018
@wanglei828 wanglei828 deleted the fixbuild branch June 12, 2018 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants