Add test to check that gcc in uenv does not generate a "fixed" pthread.h#474
Merged
jgphpc merged 4 commits intoeth-cscs:mainfrom Dec 4, 2025
Merged
Add test to check that gcc in uenv does not generate a "fixed" pthread.h#474jgphpc merged 4 commits intoeth-cscs:mainfrom
pthread.h#474jgphpc merged 4 commits intoeth-cscs:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new ReFrame test to verify that GCC in the uenv environment does not generate "fixed" versions of the pthread.h header file. This is related to a known issue with GCC's fixincludes mechanism that can cause problems in containerized environments. The test searches for pthread.h files in the uenv directories and verifies that none are located in an include-fixed directory, which would indicate unwanted GCC header "fixes".
Key changes:
- Added new test class
UenvFixincludesthat checks for absence of GCC-fixed pthread.h headers - Test uses
findcommand to search/user-environmentand/user-toolsdirectories - Validates that no pthread.h files are found in
include-fixedpaths
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Updated copyright notice and formatted executable options.
jgphpc
approved these changes
Dec 4, 2025
Collaborator
jgphpc
left a comment
There was a problem hiding this comment.
indeed: UENV=prgenv-gnu/25.07-6.3.3:v10
/user-environment/linux-zen3/gcc-13.4.0-tnhlqoff4ydzqd43d3hewb2fdpzvrq5n/lib/gcc/x86_64-pc-linux-gnu/13.4.0/include-fixed/pthread.h
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.
Test description contains more details. Related to eth-cscs/alps-uenv#277.