Skip to content

Commit 2811d88

Browse files
authored
Merge pull request #1530 from Unidata/issue1526
fix for C23 gcc
2 parents ee4c242 + 5067e59 commit 2811d88

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/build_old.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
sudo apt-get update
3333
#sudo apt-get install mpich libmpich-dev libhdf5-mpich-dev libcurl4-openssl-dev bzip2 libsnappy-dev libblosc-dev libzstd-dev
3434
sudo apt-get install openmpi-common libopenmpi-dev openmpi-bin libhdf5-openmpi-dev libcurl4-openssl-dev bzip2 libsnappy-dev libblosc-dev libzstd-dev
35+
# PnetCDF 1.12.1 and netCDF-C 4.7.4 are C17-era sources; ubuntu-26.04's gcc
36+
# defaults to C23, where `enum {false=0, true=1}` (ncmpidump.h) no longer compiles.
37+
export CFLAGS="-std=gnu17"
3538
echo "Download and build PnetCDF version ${PNETCDF_VERSION}"
3639
wget https://parallel-netcdf.github.io/Release/pnetcdf-${PNETCDF_VERSION}.tar.gz
3740
tar -xzf pnetcdf-${PNETCDF_VERSION}.tar.gz

0 commit comments

Comments
 (0)