Skip to content

Compilation of rc-3.5.0 on Mac M1 2020 #1551

@andrew-platt

Description

@andrew-platt

Bug description
A new clone of rc-3.5.0 does not directly compile on MacbookPro17,1 (early M1 chipset) with Monterey

From HomeBrew:

  • CMake v 3.22.4
  • gcc/gfortran v 12.2
  • make 3.8.1
  • XCode command line 13.4?

Interestingly v 3.4.1 compiles just fine on this hardware. So there must be something in the rc-3.5.1 changes to CMake that cause linking issues on this specific hardware configuration.

IMG_9638

To troubleshoot, we checked everything in CMakeCache.txt, specified exact paths to all compilers and linkers, and checked the SDK version. Nothing appeared out of the ordinary in any of that. We also compared the link.txt and other files in CMake build system with a clean compile of rc-3.5.0 on an Intel based Mac, but did not find anything unusual.

I will attempt to commandeer a 2020 M1 and attempt this build process to reproduce.

To Reproduce
Steps to reproduce the behavior:

  1. Fresh clone of OpenFAST from GH
  2. checkout branch rc-3.5.0
  3. mkdir build; cmake .. -DBUILD_SHARED=On; make -j4 openfastlib
  4. Everything compiles, but linking fails

After checking this, git checkout v3.4.1 followed by removing everything in build and repeating step 3 above works just fine.

OpenFAST Version
rc-3.5.0 branch of OpenFAST

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions