Skip to content

macOS CI is broken due to unsupported gcc version hardcoded in fpm releases #860

@perazz

Description

@perazz

Description

Previous literature: #780

The fpm macOS CI does not work anymore even though we've recently updated it (#857) to gcc-10 (gcc-9 was deleted from all github images).

The reason is that gcc-9 dynamic libraries are hardcoded in all published fpm releases from 0.3.0 to the latest 0.7.0
See for example 0.3.0 which is what's currently used:

federico@Federicos-MacBook-Pro Downloads % otool -l fpm-0.3.0-macos-x86_64 | grep dylib
         name /usr/local/opt/gcc@9/lib/gcc/9/libgfortran.5.dylib (offset 24)
         name /usr/lib/libSystem.B.dylib (offset 24)
         name /usr/local/lib/gcc/9/libgcc_s.1.dylib (offset 24)
         name /usr/local/opt/gcc@9/lib/gcc/9/libquadmath.0.dylib (offset 24)

The good news is that the ABI of these libraries is unchanged between gcc-9 and gcc-10. So I think that until a new release is out that's built as a position-independent executable, we can just now create symbolic links to those paths from the new libraries, so the CI keeps working until that time.

Expected Behaviour

CI should work

Version of fpm

trunk

Platform and Architecture

MacOS

Additional Information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions