-
Notifications
You must be signed in to change notification settings - Fork 124
RHAIENG-2111: chore(trustyai): podman build in rhds: error: command 'g++' failed: No such file or directory #2719
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
base: main
Are you sure you want to change the base?
Conversation
…g++' failed: No such file or directory
|
Skipping CI for Draft Pull Request. |
WalkthroughThis change modifies a development environment setup script to install gcc and g++ upfront to support jpype1==1.5.0 compilation, replaces gcc-toolset-13 with standard gcc/g++ packages, and removes trailing whitespace from a git clone command. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
jupyter/trustyai/ubi9-python-3.12/devel_env_setup.sh(3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Red Hat Konflux / odh-workbench-jupyter-trustyai-cpu-py312-ubi9-on-pull-request
- GitHub Check: build (jupyter-trustyai-ubi9-python-3.12, 3.12, linux/amd64, false) / build
🔇 Additional comments (1)
jupyter/trustyai/ubi9-python-3.12/devel_env_setup.sh (1)
132-132: Minor cleanup: trailing whitespace removal.The trailing space in the git clone command for apache-arrow has been cleanly removed, improving consistency.
| # compiling jpype1==1.5.0 requires g++ and this gets compiled on all platforms | ||
| # gcc and g++ is present by default on registry.access.redhat.com/ubi9/python-312:latest | ||
| dnf install -y --setopt=keepcache=1 gcc gcc-g++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix incorrect package name: use gcc-c++ instead of gcc-g++.
The package gcc-g++ does not exist in the UBI9 repository. The correct package name for the C++ compiler is gcc-c++. This will cause the dnf install command to fail.
This inconsistency is evident when comparing with line 41, where the correct gcc-c++ package is used for s390x.
Apply this diff to fix the package name:
-dnf install -y --setopt=keepcache=1 gcc gcc-g++
+dnf install -y --setopt=keepcache=1 gcc gcc-c++📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| # compiling jpype1==1.5.0 requires g++ and this gets compiled on all platforms | |
| # gcc and g++ is present by default on registry.access.redhat.com/ubi9/python-312:latest | |
| dnf install -y --setopt=keepcache=1 gcc gcc-g++ | |
| # compiling jpype1==1.5.0 requires g++ and this gets compiled on all platforms | |
| # gcc and g++ is present by default on registry.access.redhat.com/ubi9/python-312:latest | |
| dnf install -y --setopt=keepcache=1 gcc gcc-c++ |
🤖 Prompt for AI Agents
In jupyter/trustyai/ubi9-python-3.12/devel_env_setup.sh around lines 21 to 23,
the dnf install uses the non-existent package name gcc-g++; replace it with the
correct UBI9 package name gcc-c++ so the C++ compiler installs correctly (make
the same change as used on line 41), and ensure the dnf command remains
otherwise unchanged.
|
@jiridanek: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
https://issues.redhat.com/browse/RHAIENG-2111
Description
How Has This Been Tested?
Self checklist (all need to be checked):
make test(gmakeon macOS) before asking for reviewDockerfile.konfluxfiles should be done inodh/notebooksand automatically synced torhds/notebooks. For Konflux-specific changes, modifyDockerfile.konfluxfiles directly inrhds/notebooksas these require special attention in the downstream repository and flow to the upcoming RHOAI release.Merge criteria:
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.