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

_copy_file and _copy_dir fail on macOS #223

Open
pswaminathan opened this issue Apr 5, 2024 · 0 comments
Open

_copy_file and _copy_dir fail on macOS #223

pswaminathan opened this issue Apr 5, 2024 · 0 comments

Comments

@pswaminathan
Copy link

macOS's cp command doesn't support the --reflink flag (used here). Attempting to build a library with databinding causes the following error:

$ bazel build //app
ERROR: /Users/p/Code/project/app/BUILD.bazel:4:13: Copy ../rules_android~/rules/data_binding_annotation_template.txt to app/databinding/app_RESOURCES_DO_NOT_USE/android/databinding/layouts/DataBindingInfo.java failed: (Exit 64): bash failed: error executing CopyFile command (from target ///app:app_RESOURCES_DO_NOT_USE) /bin/bash -c 'cp --reflink=auto $1 $2' '' external/rules_android~/rules/data_binding_annotation_template.txt ... (remaining 1 argument skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file ... target_directory
Target //src/airborne/Android/app:app failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 6.255s, Critical Path: 3.89s
INFO: 898 processes: 416 internal, 482 darwin-sandbox.
ERROR: Build did NOT complete successfully
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

No branches or pull requests

1 participant