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

Fix make clean fail after java build #9710

Closed
wants to merge 1 commit into from

Conversation

jay-zhuang
Copy link
Contributor

Seems clean-rocksjava and clean-rocks conflict.
Also remove unnecessary step in java CI build, otherwise it will rebuild
the code again as java make sample do clean up first.

Test Plan: make rocksdbjava && make clean should return success

@@ -1216,7 +1216,7 @@ clean-rocks:
$(FIND) . -name "*.[oda]" -exec rm -f {} \;
$(FIND) . -type f -regex ".*\.\(\(gcda\)\|\(gcno\)\)" -exec rm -f {} \;

clean-rocksjava:
clean-rocksjava: clean-rocks
Copy link
Contributor

Choose a reason for hiding this comment

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

Error message related to this fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here is the error message, it return error code 2 (find and delete failed because dir jl is just deleted by clean-rocksjava:

$ make rocksdbjava && make clean
...
find . -name "*.[oda]" -exec rm -f {} \;
cd java && /Library/Developer/CommandLineTools/usr/bin/make clean
find: ./jl: No such file or directory
rm -rf ./include
rm -rf test-libs
rm -rf target
make: *** [clean-rocks] Error 1
make: *** Waiting for unfinished jobs....
...

@facebook-github-bot
Copy link
Contributor

@jay-zhuang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Seems clean-rocksjava and clean-rocks conflict.
Also remove unnecessary step in java CI build, otherwise it will rebuild
the code again as java make sample do clean up first.

Test Plan: `make rocksdbjava && make clean` should return success
@facebook-github-bot
Copy link
Contributor

@jay-zhuang has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@jay-zhuang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

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

Successfully merging this pull request may close these issues.

3 participants