[WIP] Implement Option B to fix failing GitHub Actions job for PR #21188 - #21349
Closed
nicholasdille with Copilot wants to merge 1 commit into
Closed
[WIP] Implement Option B to fix failing GitHub Actions job for PR #21188#21349nicholasdille with Copilot wants to merge 1 commit into
nicholasdille with Copilot wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tools/libnvidia-container/Dockerfile.template:libtirpc-devto apt-get install listexport WITH_TIRPC=yesso vendored libtirpc is not builtOriginal prompt
Create a PR implementing Option B to fix the failing GitHub Actions job for PR #21188.
Context
The workflow
.github/workflows/check.yml(refa15842958c8bbae57b390268eda1d4e17a43857a) fails when building thelibnvidia-containertool image.Failing job logs: https://github.com/uniget-org/tools/actions/runs/25047753931/job/73416100199?pr=21188
The build fails while compiling vendored libtirpc 1.3.2 as part of
NVIDIA/libnvidia-container v1.19.0deps build:auth_none.c:65:15: error: conflicting types for 'xdr_opaque_auth'tirpc/rpc/auth.hGoal
Implement Option B: avoid building the vendored libtirpc and instead use the distro-provided libtirpc development package in the image build.
Requirements
libnvidia-containerDocker image build is defined (likelytools/libnvidia-container/Dockerfile.templateand/or generatedtools/libnvidia-container/Dockerfile).libtirpc-dev(and any required build deps likepkg-config) via apt in the build stage.libnvidia-containerdoes not build the vendored libtirpc (deps/src/libtirpc-*).libnvidia-containertool build.Validation
make libnvidia-container--pushstep in CI should no longer attempt to compiledeps/src/libtirpc-1.3.2.libnvidia-containerimage build completes successfully.Notes
make/tool.mkgeneratestools/<tool>/DockerfilefromDockerfile.template.The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Please find a solution for this failing job. Use the logs, job definition, and any referenced files where the failure occurred. Keep your response focused on the solution and include code suggestions when appropriate.
Assistant: The job is failing while building the
libnvidia-containertool image. The build breaks insidemake depswhen compiling the vendored libtirpc 1.3.2 sources:auth_none.c:65:15: error: conflicting types for 'xdr_opaque_auth' ...extern bool_t xdr_opaque_auth();) become incompatible with the actual prototype fromtirpc/rpc/auth.h.Fix: update libtirpc used by libnvidia-container (or stop building the vendored one)
You’re currently building NVIDIA/libnvidia-container v1.19.0 in the Docker build step (log shows
--branch "v1.19.0"andexport WITH_TIRPC=yesthenmake deps). That version pulls in libtirpc 1.3.2, which is too old for the runner/toolchain.You have two practical options; I recommend option A.
Option A (recommended): bump the libnvidia-container version
Update the tool definition to use a newer
libnvidia-containerrelease where dependency/toolchain compatibility is fixed (or where the dependency versions were updated).What to change
In
tools/libnvidia-container/manifest.yaml, bump.versionfrom1.19.0to a newer known-good release (e.g.1.19.1+or whatever is current/works for you).That will flow into the build because your Docker build step uses
--branch "v${version}"(as shown in the failing log), so simply changing the manifest version changes what gets cloned and built.Why this works
Newer upstream versions generally refresh vendored deps and/or carry compatibility fixes for newer compilers/headers.
Option B: avoid building vendored libtirpc; use distro libtirpc instead
If your Dockerfile/template currently forces vendored tirpc via:
export WITH_TIRPC=yes make deps…then change the build to install
libtirpc-devfrom apt and disable vendored tirpc builds (exact flags depend on upstream’s makefiles, but the idea is: don’t builddeps/src/libtirpc-*at all).Concrete change (pattern)
In the
tools/libnvidia-container/Dockerfile.template(or the generated Dockerfile), in the “prepare” stage:RUN apt-get update && apt-get install -y --no-install-recommends \ libtirpc-dev \ pkg-config \ && rm -rf /var/lib/apt/lists/*WITH_TIRPC=yes(or set it tono...This pull request was created from Copilot chat.