Skip to content

z/OS: Fix Bazel bootstrap path handling and JNI loader fallback - #3

Open
harsh-sagar03 wants to merge 7 commits into
zopencommunity:mainfrom
RohiniShankari:fix-zos-jniloader-fallback
Open

z/OS: Fix Bazel bootstrap path handling and JNI loader fallback#3
harsh-sagar03 wants to merge 7 commits into
zopencommunity:mainfrom
RohiniShankari:fix-zos-jniloader-fallback

Conversation

@harsh-sagar03

Copy link
Copy Markdown
Collaborator

This continues the ongoing work to get Bazel bootstrapping cleanly on z/OS.

The initial port got us through a number of platform-specific issues around the bootstrap environment, z/OS tooling, and native dependencies. During the latest bootstrap runs, we hit a particularly confusing issue where the generated Bazel binary path was being printed with garbled/corrupted characters. This made it difficult to tell whether Bazel was actually producing the binary or whether the path itself was being mangled.

We went through the bootstrap logs in detail and traced the issue through the Java/runtime environment and the bootstrap path handling.

The path corruption has now been resolved: the Bazel binary path and related output are being produced normally, and the bootstrap has moved past that blocker.

There are still further z/OS-specific build issues to work through, but this PR captures the source changes from this stage of the investigation so the work can be reviewed and built upon.

Generated files and temporary build artifacts are intentionally left out of the changes.

DEVUSER and others added 7 commits July 7, 2026 03:21
Implemented:
- Added AutoServiceProcessor to BAZEL_JAVAC_OPTS in buildenv to resolve the unsupported charset error.
- Updated unix_cc_configure.bzl to execute scripts through /bin/bash.
- Added z/OS enum support in Os.java.

Work in progress:
- Local rules_python and rules_go overrides.
- Initial z/OS support changes in rules_python and rules_go.
- working on rules_python and rules_go
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

Successfully merging this pull request may close these issues.

2 participants