Skip to content

Commit 8a4b048

Browse files
authored
fix macOS CI for fpm-bootstrap executables built with gcc-9 (#861)
create symbolic links to the gcc-9 library paths hardcoded in the bootstrapping fpm executables
2 parents 033146f + 5a74d58 commit 8a4b048

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/CI.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,17 @@ jobs:
5151
ln -s /usr/local/bin/gfortran-${GCC_V} /usr/local/bin/gfortran
5252
which gfortran-${GCC_V}
5353
which gfortran
54+
# Backport gfortran shared libraries to version 9 folder. This is necessary because all macOS releases of fpm
55+
# have these paths hardcoded in the executable (no PIC?). As the gcc ABIs have not changed from 9 to 10, we
56+
# can just create symbolic links for now. This can be removed when an updated fpm release is built with gcc-10
57+
mkdir /usr/local/opt/gcc@9
58+
mkdir /usr/local/opt/gcc@9/lib
59+
mkdir /usr/local/opt/gcc@9/lib/gcc
60+
mkdir /usr/local/opt/gcc@9/lib/gcc/9
61+
mkdir /usr/local/lib/gcc/9
62+
ln -fs /usr/local/opt/gcc@${GCC_V}/lib/gcc/${GCC_V}/libquadmath.0.dylib /usr/local/opt/gcc@9/lib/gcc/9/libquadmath.0.dylib
63+
ln -fs /usr/local/opt/gcc@${GCC_V}/lib/gcc/${GCC_V}/libgfortran.5.dylib /usr/local/opt/gcc@9/lib/gcc/9/libgfortran.5.dylib
64+
ln -fs /usr/local/lib/gcc/${GCC_V}/libgcc_s.1.dylib /usr/local/lib/gcc/9/libgcc_s.1.dylib
5465
5566
- name: Install GFortran Linux
5667
if: contains(matrix.os, 'ubuntu')

0 commit comments

Comments
 (0)