Skip to content

Compiling on MacOS (including M1) #7

@ncollier

Description

@ncollier

Using install.sh from MANUAL_INSTALL directory results in several errors with:

  • boost - newer clang is incompatible with older boost version
  • boost.mpi - newer boost (1_78_0) fails with:
error: Unable to find file or target named
error:     '/mpi//mpi'
error: referred to from project at
error:     'libs/mpi/build'
  • netcdf-cxx - with newer clang the c++20 version header conflicts with VERSION file when VERSION file is on an -I path. See https://trac.macports.org/ticket/62912
  • repastHPC - if you've installed mpich from source using install.sh, the mpi compiler wrappers may not be found, resulting in errors like: configure: error: cannot not find the flags to link with Boost mpi when trying ./install.sh rhpc
  • repastHPC - Missing float.h header in GridComponents.cpp, results in error:
src/repast_hpc/GridComponents.cpp:165:64: error: use of undeclared identifier 'DBL_MAX'
      if(out[i] >= maxs[i])       out[i] = nextafter(maxs[i], -DBL_MAX);
                                                               ^
src/repast_hpc/GridComponents.cpp:166:64: error: use of undeclared identifier 'DBL_MAX'
      else if(out[i] < mins[i])   out[i] = nextafter(mins[i],  DBL_MAX);

Specific to M1 -

  • default boost-lib-suffix of mt is missing -a64 (once a new boost is used to avoid the above problem)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions