Skip to content

NumPy Installation Failure on RHEL/Amazon Linux with GCC < 9.3 - #35

Merged
ayushi1208 merged 2 commits into
awslabs:devfrom
vawsgit:feature/gcc-version-error
Nov 19, 2025
Merged

ayushi1208 merged 2 commits into
awslabs:devfrom
vawsgit:feature/gcc-version-error

Conversation

@vawsgit

@vawsgit vawsgit commented Nov 17, 2025 •

Copy link
Copy Markdown
Contributor

Documentation can be previewed here: https://vawsgit.github.io/stickler/Getting-Started/known-issues/


Steps to Reproduce

  1. Attempt to install stickler-eval on Amazon Linux or RHEL-based system
  2. System has GCC version < 9.3 (e.g., GCC 7.3.1)
  3. Run: pip install stickler-eval

Actual Behavior

Installation fails with error:

ERROR: Problem encountered: NumPy requires GCC >= 9.3

The build process attempts to compile NumPy 2.3.4 which requires GCC >= 9.3, but the system has an older GCC version (e.g., GCC 7.3.1 on Amazon Linux).

Expected Behavior

stickler-eval should install successfully without compilation errors.

Root Cause

NumPy 2.3.4+ requires GCC >= 9.3 for compilation. Older RHEL-based systems (including SageMaker Jupyter Notebooks Classic on Amazon Linux) ship with GCC 7.3.1, which is incompatible with recent NumPy versions.

Workaround

Install on a system with GCC >= 9.3, such as:

  • SageMaker Studio notebooks (Ubuntu 22.04 with GCC 11.4.0)
  • Ubuntu-based environments
  • Update GCC on the target system to version 9.3 or higher

@vawsgit vawsgit changed the title Update README, known-issues (2 files changed, 39 insertions(+)) NumPy Installation Failure on RHEL/Amazon Linux with GCC < 9.3 Nov 17, 2025
@vawsgit
vawsgit marked this pull request as ready for review November 17, 2025 19:42
@ayushi1208
ayushi1208 changed the base branch from main to dev November 19, 2025 14:51
@ayushi1208
ayushi1208 merged commit cc8130e into awslabs:dev Nov 19, 2025
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