Can't find jni.h if target not declared at the root of workspace #5497
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
platform: linux
stale
Issues or PRs that are stale (no activity for 30 days)
team-Rules-CPP
Issues for C++ rules
type: bug
Description of the problem:
I am having a problem I first saw described at https://stackoverflow.com/questions/49824574/cant-find-jni-h-if-target-not-declared-at-the-root-of-workspace.
If I want to build a cc_library which depends on
jni.h
, I either have to put the target in a BUILD file in the directory of the top level project WORKSPACE, or use workaround from the SO question.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
What operating system are you running Bazel on?
Linux, NixOS 18.03, x86_64
What's the output of
bazel info release
?release 0.12.0- (@non-git)
(whoops) but same thing happens with clensing all with bazel clean, bazel shutdown, upgrading, and
If
bazel info release
returns "development version" or "(@non-git)", tell us how you built Bazel.From checkout of nixpkgs with applied NixOS/nixpkgs#42735
What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?It's from 0.15.0 zipped source release from github
Have you found anything relevant by searching the web?
https://stackoverflow.com/questions/49824574/cant-find-jni-h-if-target-not-declared-at-the-root-of-workspace
The text was updated successfully, but these errors were encountered: