Skip to content

Commit ad847b1

Browse files
committed
requires libtool 2.5.4
1 parent f457814 commit ad847b1

File tree

5 files changed

+69
-5
lines changed

5 files changed

+69
-5
lines changed

.github/workflows/mac_mpich.yml

Lines changed: 17 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,10 +38,24 @@ 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: Build GNU libtool
46+
run: |
47+
cd ${GITHUB_WORKSPACE}
48+
wget -q https://ftp.wayne.edu/gnu/libtool/libtool-${LIBTOOL_VERSION}.tar.gz
49+
gzip -dc libtool-${LIBTOOL_VERSION}.tar.gz | tar -xf -
50+
cd libtool-${LIBTOOL_VERSION}
51+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
52+
--silent
53+
make -s -j 8 install > qout 2>&1
54+
make -s -j 8 distclean >> qout 2>&1
4155
- name: Build MPICH
4256
run: |
4357
cd ${GITHUB_WORKSPACE}
58+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
4459
rm -rf MPICH ; mkdir MPICH ; cd MPICH
4560
wget -q https://www.mpich.org/static/downloads/${MPICH_VERSION}/mpich-${MPICH_VERSION}.tar.gz
4661
gzip -dc mpich-${MPICH_VERSION}.tar.gz | tar -xf -
@@ -57,6 +72,7 @@ jobs:
5772
- name: Build PnetCDF
5873
run: |
5974
cd ${GITHUB_WORKSPACE}
75+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
6076
autoreconf -i
6177
mkdir -p pnetcdf_output
6278
./configure --enable-option-checking=fatal \

.github/workflows/mac_openmpi.yml

Lines changed: 17 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,10 +38,24 @@ 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: Build GNU libtool
46+
run: |
47+
cd ${GITHUB_WORKSPACE}
48+
wget -q https://ftp.wayne.edu/gnu/libtool/libtool-${LIBTOOL_VERSION}.tar.gz
49+
gzip -dc libtool-${LIBTOOL_VERSION}.tar.gz | tar -xf -
50+
cd libtool-${LIBTOOL_VERSION}
51+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
52+
--silent
53+
make -s -j 8 install > qout 2>&1
54+
make -s -j 8 distclean >> qout 2>&1
4155
- name: Build OPENMPI
4256
run: |
4357
cd ${GITHUB_WORKSPACE}
58+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
4459
rm -rf OPENMPI ; mkdir OPENMPI ; cd OPENMPI
4560
VER_MAJOR=${OPENMPI_VERSION%.*}
4661
wget -q https://download.open-mpi.org/release/open-mpi/v${VER_MAJOR}/openmpi-${OPENMPI_VERSION}.tar.gz
@@ -59,6 +74,7 @@ jobs:
5974
- name: Build PnetCDF
6075
run: |
6176
cd ${GITHUB_WORKSPACE}
77+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
6278
autoreconf -i
6379
mkdir -p pnetcdf_output
6480
./configure --enable-option-checking=fatal \

.github/workflows/ubuntu_mpich.yml

Lines changed: 17 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,9 +49,20 @@ jobs:
4549
which gfortran
4650
gcc --version
4751
gfortran --version
52+
- name: Build GNU libtool
53+
run: |
54+
cd ${GITHUB_WORKSPACE}
55+
wget -q https://ftp.wayne.edu/gnu/libtool/libtool-${LIBTOOL_VERSION}.tar.gz
56+
gzip -dc libtool-${LIBTOOL_VERSION}.tar.gz | tar -xf -
57+
cd libtool-${LIBTOOL_VERSION}
58+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
59+
--silent
60+
make -s -j 8 install > qout 2>&1
61+
make -s -j 8 distclean >> qout 2>&1
4862
- name: Build MPICH
4963
run: |
5064
cd ${GITHUB_WORKSPACE}
65+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
5166
echo "Install MPICH ${MPICH_VERSION} in ${GITHUB_WORKSPACE}/MPICH"
5267
rm -rf MPICH ; mkdir MPICH ; cd MPICH
5368
# git clone -q https://github.com/pmodels/mpich.git
@@ -71,6 +86,7 @@ jobs:
7186
- name: Build PnetCDF
7287
run: |
7388
cd ${GITHUB_WORKSPACE}
89+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
7490
autoreconf -i
7591
./configure --prefix=${GITHUB_WORKSPACE}/PnetCDF \
7692
--enable-option-checking=fatal \

.github/workflows/ubuntu_openmpi.yml

Lines changed: 17 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,9 +49,20 @@ jobs:
4549
which gfortran
4650
gcc --version
4751
gfortran --version
52+
- name: Build GNU libtool
53+
run: |
54+
cd ${GITHUB_WORKSPACE}
55+
wget -q https://ftp.wayne.edu/gnu/libtool/libtool-${LIBTOOL_VERSION}.tar.gz
56+
gzip -dc libtool-${LIBTOOL_VERSION}.tar.gz | tar -xf -
57+
cd libtool-${LIBTOOL_VERSION}
58+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
59+
--silent
60+
make -s -j 8 install > qout 2>&1
61+
make -s -j 8 distclean >> qout 2>&1
4862
- name: Build OPENMPI
4963
run: |
5064
cd ${GITHUB_WORKSPACE}
65+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
5166
echo "Install OPENMPI ${OPENMPI_VERSION} in ${GITHUB_WORKSPACE}/OPENMPI"
5267
rm -rf OPENMPI ; mkdir OPENMPI ; cd OPENMPI
5368
VER_MAJOR=${OPENMPI_VERSION%.*}
@@ -65,6 +80,7 @@ jobs:
6580
- name: Build PnetCDF
6681
run: |
6782
cd ${GITHUB_WORKSPACE}
83+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
6884
autoreconf -i
6985
mkdir -p pnetcdf_output
7086
./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)