jacobwilliams / Fortran-Astrodynamics-Toolkit

A Modern Fortran Library for Astrodynamics 🚀
Other
176 stars 50 forks source link

Building tests on Mac Pro (2019) under Mac OS X Big Sur #22

Closed OrbitalMechanic closed 3 years ago

OrbitalMechanic commented 3 years ago

Having issues building the current toolkit on a Mac Pro (2019) running Mac OSX Big Sur (ver. 11.1). I'm using GNU Fortran (MacPorts gcc10 10.2.0_4) 10.2.0.

Able to successfully build the static library. My problem at present is building the examples. I got several warnings (as I did in building the static library). However, the linking failed with the following messages:

Compiling ./src/fortran_astrodynamics_toolkit.f90 serially
Compiling ./tests/lambert/lambert_test.f90 serially
Linking bin/lambert_test
ld: library not found for -lSystem
collect2: error: ld returned 1 exit status

ld: library not found for -lSystem
collect2: error: ld returned 1 exit status

How and where is -lSystem being set? How can I correct this problem?

The attached file contains the build log.

Please advise.

Sam Dupree

Fortran-AStrodynamics-Toolkit-build-log.txt

OrbitalMechanic commented 3 years ago

Accidently closed, please reopen.

OrbitalMechanic commented 3 years ago

The problem was due to incompatibility with gfortran in Macports. Resolved the problem by backing out Macports and used the gcc install from Homebrew.