bazel: 6.2.0: Unexpected output "Unknown constant: 11"
Description of the bug:
After upgrading to 6.2.0, I am seeing many messages in build log that do not seem possible when reading the source code:
(02:31:14) INFO: From Extracting interface //my_target:my_target_with_header:
--
| Unknown constant: 11. Passing class through.
| Unknown constant: 11. Passing class through.
| Unknown constant: 11. Passing class through.
| Unknown constant: 11. Passing class through.
| Unknown constant: 11. Passing class through.
| Unknown constant: 11. Passing class through.
| Unknown constant: 11. Passing class through.
This is the default case for https://github.com/bazelbuild/bazel/blob/release-6.2.0/third_party/ijar/classfile.cc#L1660-L1662
however the switch should have a case for constant 11
https://github.com/bazelbuild/bazel/blob/release-6.2.0/third_party/ijar/classfile.cc#L1593.
I am wanting to understand this error to see if there is anything I need to change on my end, or if its a bug here.
What’s the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
https://github.com/joeljeske/bazel-repo-iss18360
Which operating system are you running Bazel on?
Linux, and darwin
What is the output of bazel info release
?
release 6.2.0
If bazel info release
returns development version
or (@non-git)
, tell us how you built Bazel.
No response
What’s the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD
?
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 18 (17 by maintainers)
Commits related to this issue
- Teach ijar about dynamic constants. https://github.com/bazelbuild/bazel/issues/18360 — committed to benjaminp/bazel by benjaminp a year ago
- Teach ijar about dynamic constants. https://github.com/bazelbuild/bazel/issues/18360 — committed to benjaminp/bazel by benjaminp a year ago
- Teach ijar about dynamic constants. https://github.com/bazelbuild/bazel/issues/18360 — committed to benjaminp/bazel by benjaminp a year ago
- Teach ijar about dynamic constants. https://github.com/bazelbuild/bazel/issues/18360 — committed to benjaminp/bazel by benjaminp a year ago
- Teach ijar about dynamic constants. https://github.com/bazelbuild/bazel/issues/18360 Partial commit for third_party/*, see #18406. Signed-off-by: Hee Cha <heec@google.com> — committed to bazelbuild/bazel by benjaminp a year ago
- Teach ijar about dynamic constants. https://github.com/bazelbuild/bazel/issues/18360 Partial commit for third_party/*, see #18406. Signed-off-by: Hee Cha <heec@google.com> — committed to iancha1992/bazel by benjaminp a year ago
- Teach ijar about dynamic constants. https://github.com/bazelbuild/bazel/issues/18360 Partial commit for third_party/*, see #18406. Signed-off-by: Hee Cha <heec@google.com> — committed to traversaro/bazel by benjaminp a year ago
@sgowroji Alright, here is a minimum reproduction! Its pretty simple and it does not occur in 6.1.0.
https://github.com/joeljeske/bazel-repo-iss18360