Skip to content

Commit d1913a3

Browse files
committed
requires libtool 2.5.4
1 parent f457814 commit d1913a3

File tree

5 files changed

+85
-5
lines changed

5 files changed

+85
-5
lines changed

.github/workflows/mac_mpich.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ on:
2424

2525
env:
2626
MPICH_VERSION: 4.2.0
27+
LIBTOOL_VERSION: 2.5.4
2728

2829
jobs:
2930
build:
@@ -37,7 +38,23 @@ jobs:
3738
# which gcc
3839
# gcc --version
3940
# which gfortran
40-
brew install automake autoconf libtool m4
41+
brew install automake autoconf m4
42+
autoconf --version
43+
automake --version
44+
m4 --version
45+
- name: Clean up git untracked files
46+
run: |
47+
git clean -fx
48+
- name: Build GNU libtool
49+
run: |
50+
cd ${GITHUB_WORKSPACE}
51+
wget -q https://ftp.wayne.edu/gnu/libtool/libtool-${LIBTOOL_VERSION}.tar.gz
52+
gzip -dc libtool-${LIBTOOL_VERSION}.tar.gz | tar -xf -
53+
cd libtool-${LIBTOOL_VERSION}
54+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
55+
--silent
56+
make -s -j 8 install > qout 2>&1
57+
make -s -j 8 distclean >> qout 2>&1
4158
- name: Build MPICH
4259
run: |
4360
cd ${GITHUB_WORKSPACE}
@@ -57,6 +74,9 @@ jobs:
5774
- name: Build PnetCDF
5875
run: |
5976
cd ${GITHUB_WORKSPACE}
77+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
78+
export LD_LIBRARY_PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/lib:${LD_LIBRARY_PATH}"
79+
libtool --version
6080
autoreconf -i
6181
mkdir -p pnetcdf_output
6282
./configure --enable-option-checking=fatal \

.github/workflows/mac_openmpi.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ on:
2424

2525
env:
2626
OPENMPI_VERSION: 5.0.2
27+
LIBTOOL_VERSION: 2.5.4
2728

2829
jobs:
2930
build:
@@ -37,7 +38,23 @@ jobs:
3738
# which gcc
3839
# gcc --version
3940
# which gfortran
40-
brew install automake autoconf libtool m4
41+
brew install automake autoconf m4
42+
autoconf --version
43+
automake --version
44+
m4 --version
45+
- name: Clean up git untracked files
46+
run: |
47+
git clean -fx
48+
- name: Build GNU libtool
49+
run: |
50+
cd ${GITHUB_WORKSPACE}
51+
wget -q https://ftp.wayne.edu/gnu/libtool/libtool-${LIBTOOL_VERSION}.tar.gz
52+
gzip -dc libtool-${LIBTOOL_VERSION}.tar.gz | tar -xf -
53+
cd libtool-${LIBTOOL_VERSION}
54+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
55+
--silent
56+
make -s -j 8 install > qout 2>&1
57+
make -s -j 8 distclean >> qout 2>&1
4158
- name: Build OPENMPI
4259
run: |
4360
cd ${GITHUB_WORKSPACE}
@@ -59,6 +76,9 @@ jobs:
5976
- name: Build PnetCDF
6077
run: |
6178
cd ${GITHUB_WORKSPACE}
79+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
80+
export LD_LIBRARY_PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/lib:${LD_LIBRARY_PATH}"
81+
libtool --version
6282
autoreconf -i
6383
mkdir -p pnetcdf_output
6484
./configure --enable-option-checking=fatal \

.github/workflows/ubuntu_mpich.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020

2121
env:
2222
MPICH_VERSION: 4.2.0
23+
LIBTOOL_VERSION: 2.5.4
2324

2425
jobs:
2526
build:
@@ -30,7 +31,10 @@ jobs:
3031
- name: Set up dependencies
3132
run: |
3233
sudo apt-get update
33-
sudo apt-get install automake autoconf libtool libtool-bin m4
34+
sudo apt-get install automake autoconf m4
35+
autoconf --version
36+
automake --version
37+
m4 --version
3438
# install gfortran
3539
version=12
3640
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
@@ -45,6 +49,19 @@ jobs:
4549
which gfortran
4650
gcc --version
4751
gfortran --version
52+
- name: Clean up git untracked files
53+
run: |
54+
git clean -fx
55+
- name: Build GNU libtool
56+
run: |
57+
cd ${GITHUB_WORKSPACE}
58+
wget -q https://ftp.wayne.edu/gnu/libtool/libtool-${LIBTOOL_VERSION}.tar.gz
59+
gzip -dc libtool-${LIBTOOL_VERSION}.tar.gz | tar -xf -
60+
cd libtool-${LIBTOOL_VERSION}
61+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
62+
--silent
63+
make -s -j 8 install > qout 2>&1
64+
make -s -j 8 distclean >> qout 2>&1
4865
- name: Build MPICH
4966
run: |
5067
cd ${GITHUB_WORKSPACE}
@@ -71,6 +88,9 @@ jobs:
7188
- name: Build PnetCDF
7289
run: |
7390
cd ${GITHUB_WORKSPACE}
91+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
92+
export LD_LIBRARY_PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/lib:${LD_LIBRARY_PATH}"
93+
libtool --version
7494
autoreconf -i
7595
./configure --prefix=${GITHUB_WORKSPACE}/PnetCDF \
7696
--enable-option-checking=fatal \

.github/workflows/ubuntu_openmpi.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020

2121
env:
2222
OPENMPI_VERSION: 5.0.2
23+
LIBTOOL_VERSION: 2.5.4
2324

2425
jobs:
2526
build:
@@ -30,7 +31,10 @@ jobs:
3031
- name: Set up dependencies
3132
run: |
3233
sudo apt-get update
33-
sudo apt-get install automake autoconf libtool libtool-bin m4
34+
sudo apt-get install automake autoconf m4
35+
autoconf --version
36+
automake --version
37+
m4 --version
3438
# install gfortran
3539
version=12
3640
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
@@ -45,6 +49,19 @@ jobs:
4549
which gfortran
4650
gcc --version
4751
gfortran --version
52+
- name: Clean up git untracked files
53+
run: |
54+
git clean -fx
55+
- name: Build GNU libtool
56+
run: |
57+
cd ${GITHUB_WORKSPACE}
58+
wget -q https://ftp.wayne.edu/gnu/libtool/libtool-${LIBTOOL_VERSION}.tar.gz
59+
gzip -dc libtool-${LIBTOOL_VERSION}.tar.gz | tar -xf -
60+
cd libtool-${LIBTOOL_VERSION}
61+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
62+
--silent
63+
make -s -j 8 install > qout 2>&1
64+
make -s -j 8 distclean >> qout 2>&1
4865
- name: Build OPENMPI
4966
run: |
5067
cd ${GITHUB_WORKSPACE}
@@ -65,6 +82,9 @@ jobs:
6582
- name: Build PnetCDF
6683
run: |
6784
cd ${GITHUB_WORKSPACE}
85+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
86+
export LD_LIBRARY_PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/lib:${LD_LIBRARY_PATH}"
87+
libtool --version
6888
autoreconf -i
6989
mkdir -p pnetcdf_output
7090
./configure --prefix=${GITHUB_WORKSPACE}/PnetCDF \

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ dnl AC_PROG_RANLIB
453453

454454
dnl libtool v2.4.6 was released in 2015-02-15
455455
dnl Travis CI only has v2.4.2
456-
LT_PREREQ([2.4.6])
456+
LT_PREREQ([2.5.4])
457457
dnl LT_INIT([dlopen disable-shared])
458458
dnl LT_INIT([dlopen])
459459
dnl LT_INIT([disable-shared]) # build without shared libraries

0 commit comments

Comments
 (0)