-
Notifications
You must be signed in to change notification settings - Fork 4k
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
building bazel libcpu_profiler fails to find jni_md.h (ppc64le) #10746
Comments
@alandonovan -- i've tried to figure out how to get this to build and can't. i thought maybe it was because we build using the local jdk, but i think that's the default now. i also tried that on x86 and this works fine. so now i'm guessing there's some place i can't find with an |
Take a look at the BUILD.oss file in the linked commit: |
@alandonovan I had tried some things there, but guess I missed the obvious one of just copying the linux_x86_64 case to ppc. PR submitted. Thanks! |
I just ran into the same problem on aarch64 (arm64). |
I compile Bazel on aarch64 from source and have been able to successfully do so up until 2.2.0. I compiled 2.1.1 last week successfully with I tried 2.2.0 this morning and get:
On further inspection the following additions for aarch64 didn't make it into 2.2.0 - https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/syntax/BUILD#L166-L176 |
Yes, you'll need to build a version of Bazel more recent than 2.2.0 (20 days old) as the fix was only added in 2402c8f (15 days ago). |
Hi @alandonovan , I am unable to find a more recent bazel version than 2.2.0 - can you please give me a hint where I can download specifically the dist, because I need to bootstrap it? Kind regards |
We have now a release candidate for Bazel 3.0, see https://releases.bazel.build/3.0.0/rc1/index.html The alternative is to build Bazel yourself. |
I am using the latest release dist package (3.3.1) and I see this issue on Raspbian (Linux raspberrypi 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux):
Could someone help? |
The fact that Bazel is compiling cpu_profiler_unimpl.cc means that the config_setting //src/conditions:linux_arm is false on your platform, which is surprising. This condition is determined by the flag --cpu=arm. Did you set that flag? You should open a new issue for this; although it is similar to the ppc64le problem, it clearly requires a different fix. |
Hi, |
To be clear, I meant: you will need to set --cpu=arm. |
Ahh.. let me try that. I have created this new issue: #11709, I will try with that flag and update. Thanks! |
Hi, |
@here I am running into the same error building bazel using the zip from 3.3.0 distro https://github.com/bazelbuild/bazel/releases/download/3.3.0/bazel-3.3.0-dist.zip. bazel-out/ppc-opt/bin/external/bazel_tools/tools/jdk/include/jni.h:45:10: fatal error: jni_md.h: No such file or directory Any pointers to resolve this. |
Same here. |
Hi, just did and got the same error. Cheers, Simon |
@aiuto Tony, should I be able to reproduce this in a cross build? I tried
Any help much appreciated. |
Perhaps 38c85a4 should have added ppc64le instead of replacing it? |
The two conditions have equal definitions, so I don't see why that should matter. Linux is only a good default if you're actually using Linux. I'd rather it fail fast than use the wrong header. |
I'm on i686 debian bullseye and running into this issue trying to build bazel 3.7.2 from the dist archive. It's unclear how to make it work, generally, on an unsupported or failing system. EDIT: This fails because bazel specifically does not provide support or configurations for 32 bit systems. There are instructions elsewhere for patching hazel for 32 bit systems. Further pursuit of this on 32 bit would likely involve an issue or pull request to notify the user that their CPU architecture is not accepted to build with. This particular issue is triggered similarly as other answers in this thread: there is no condition for the architecture, so the file is not copied in. The jni_md.h file is os-dependent, held in an os-specific subfolder. |
Description of the problem / feature request:
compiling from master on ppc64le fails:
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?
What's the output of
bazel info release
?building with:
If
bazel info release
returns "development version" or "(@non-git)", tell us how you built Bazel.What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?root@ede9b339f10f:/bazel# git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
https://github.com/bazelbuild/bazel.git
1ae1c16
314cd33
Have you found anything relevant by searching the web?
Any other information, logs, or outputs that you want to share?
This commit seems to have broken us: 314cd33
More or the error here: https://gist.github.com/clnperez/781149e8c6882ea668d06483325e1151
The text was updated successfully, but these errors were encountered: