We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
rules_android_ndk doesn't work with cc toolchain resolution enabled.
Example failure when building with Bazel@HEAD and --incompatible_enable_cc_toolchain_resolution:
--incompatible_enable_cc_toolchain_resolution
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging java/com/app/jni.cc:15:10: fatal error: 'jni.h' file not found #include <jni.h> ^~~~~~~ 1 error generated. Error in child process '/usr/bin/xcrun'. 1 (07:51:28) ERROR: /Users/buildkite/builds/bk-imacpro-6/bazel-downstream-projects/rules_android_ndk/examples/basic/java/com/app/BUILD:22:11: Compiling java/com/app/jni.cc failed: (Aborted): wrapped_clang_pp failed: error executing command (from target //java/com/app:jni) (cd /private/var/tmp/_bazel_buildkite/298ea2b5b89560eebdd96300ce1ca9e7/sandbox/darwin-sandbox/3/execroot/__main__ && \ exec env - \ APPLE_SDK_PLATFORM='' \ APPLE_SDK_VERSION_OVERRIDE='' \ PATH=/Users/buildkite/Library/Caches/bazelisk/local/-tmp-tmpmy5n7pkm-bazel/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin \ XCODE_VERSION_OVERRIDE=13.0.0.13A233 \ ZERO_AR_DATE=1 \ external/local_config_cc/wrapped_clang_pp '-D_FORTIFY_SOURCE=1' -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -O0 -DDEBUG '-std=c++11' 'DEBUG_PREFIX_MAP_PWD=.' -iquote . -iquote bazel-out/android-x86-fastbuild/bin -MD -MF bazel-out/android-x86-fastbuild/bin/java/com/app/_objs/jni/jni.d '-DBAZEL_CURRENT_REPOSITORY=""' '-frandom-seed=bazel-out/android-x86-fastbuild/bin/java/com/app/_objs/jni/jni.o' -isysroot __BAZEL_XCODE_SDKROOT__ -F__BAZEL_XCODE_SDKROOT__/System/Library/Frameworks -F__BAZEL_XCODE_DEVELOPER_DIR__/Platforms/MacOSX.platform/Developer/Library/Frameworks -no-canonical-prefixes -pthread -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -target x86_64-apple-macosx11.3 -c java/com/app/jni.cc -o bazel-out/android-x86-fastbuild/bin/java/com/app/_objs/jni/jni.o) # Configuration: e6b2da1752e53cbfad1b0216cc4bf232e6229dc2fd3c621e1c4d2840d8603df2 # Execution platform: @local_config_platform//:host
Link to failure: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/2641#01835443-ca23-4d89-b700-dd2ef89c8f7a
The text was updated successfully, but these errors were encountered:
Disable cc_toolchain_resolution (#20)
48bf74c
This should unblock LTS cut of Bazel. Related to: #21
/cc @ahumesky @ted-xie Any plan to support this?
Sorry, something went wrong.
No branches or pull requests
rules_android_ndk doesn't work with cc toolchain resolution enabled.
Example failure when building with Bazel@HEAD and
--incompatible_enable_cc_toolchain_resolution
:Link to failure: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/2641#01835443-ca23-4d89-b700-dd2ef89c8f7a
The text was updated successfully, but these errors were encountered: