Skip to content

Fix compilation bugs - #15

Merged
mwiering merged 1 commit into
csiro:masterfrom
AlecThomson:fix-compile
Sep 15, 2026
Merged

mwiering merged 1 commit into
csiro:masterfrom
AlecThomson:fix-compile

Conversation

@AlecThomson

Copy link
Copy Markdown

Hi there,

I hit a couple of compilation/build bugs with -DLARGEN=ON and CMake < 3.24 - this should fix both:

  • pgplot/CMakeLists.txt: DOWNLOAD_EXTRACT_TIMESTAMP is only a recognized
    ExternalProject_Add keyword on CMake >= 3.24. On older CMake it was
    getting absorbed into PATCH_COMMAND, corrupting the patch invocation
    (patch: Can't open patch file TRUE). Now only passed when supported.

  • CMakeLists.txt: LARGEN's enlarged COMMON blocks overflow the default
    small memory model's 32-bit relocations at link time
    (relocation truncated to fit). Add -mcmodel=medium for C/Fortran
    when LARGEN is enabled.

@mwiering mwiering left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good but automatic build is failing for linux - fetch of the pgplot code is not working. There were some Node.js deprecation warnings so I've updated the actions. Maybe merge in master and see how it goes.

@mwiering
mwiering merged commit 1ef2e6e into csiro:master Sep 15, 2026
2 of 4 checks passed
@mwiering

Copy link
Copy Markdown
Contributor

Needed a rebase from master to build successfully, so did that in a forced merge.

@AlecThomson

Copy link
Copy Markdown
Author

Thanks @mwiering! Sorry for the pain on this one

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