Skip to content

Fix for __FILE_NAME__ in linux 22.04 - #133

Merged
Alomir merged 6 commits into
masterfrom
Image_22.04_Test
Jul 27, 2025
Merged

Fix for __FILE_NAME__ in linux 22.04#133
Alomir merged 6 commits into
masterfrom
Image_22.04_Test

Conversation

@Alomir

@Alomir Alomir commented Jul 23, 2025

Copy link
Copy Markdown
Collaborator

Apparently, R versions 4.1 - 4.3 rely on the 22.04 linux image instead of 24.04, and pecan is still using versions < 4.4 (I think? Henry was running into this issue getting the stack to compile in apptainer/docker). Turns out that sipnet cannot currently compile there due to the version of gcc that comes in that image (v11.x, where we need v12+). The issue is that the __FILE_NAME__ macro only got into gcc in version 12.

From Henry: "the tie-in to R version is because the docker images are all based on rocker/tidyverse; and that stack switches to 24.04 starting in R4.4; <=R4.3 corresponds to 22.04"

This PR adds a workaround for that macro if it is not defined, as well as re-adding 22.04 to our CI image list to prevent such issues in the future.

@Alomir Alomir closed this Jul 23, 2025
@Alomir Alomir reopened this Jul 23, 2025
@Alomir
Alomir marked this pull request as ready for review July 23, 2025 19:29
@Alomir Alomir changed the title Linux image 22.04 test Fix for __FILE_NAME__ in linux 22.04 Jul 23, 2025
@Alomir
Alomir requested review from dlebauer and infotroph and removed request for dlebauer July 25, 2025 15:28
@Alomir Alomir self-assigned this Jul 25, 2025
@Alomir
Alomir merged commit e6ca799 into master Jul 27, 2025
9 checks passed
@Alomir
Alomir deleted the Image_22.04_Test branch July 27, 2025 16:35
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