Skip to content

Installing on mac #36

@mikesmic

Description

@mikesmic

I'm trying to install on mac os but getting these errors while compiling:

In file included from /Users/xg3401/software/proteus/build/unity_src/kernels_Unity.C:2:
/Users/xg3401/software/proteus/src/kernels/INSADEpsilonDissipation.C:21:13: error: reference member '_C_eps2' binds to a temporary object whose lifetime would be shorter than the lifetime of the constructed object
    _C_eps2(getParam<Real>("C_eps2"))
            ^~~~~~~~~~~~~~~~~~~~~~~~
/Users/xg3401/software/proteus/build/header_symlinks/INSADEpsilonDissipation.h:21:18: note: reference member declared here
  const ADReal & _C_eps2;
                 ^
In file included from /Users/xg3401/software/proteus/build/unity_src/kernels_Unity.C:3:
/Users/xg3401/software/proteus/src/kernels/INSADEpsilonProduction.C:25:13: error: reference member '_C_eps1' binds to a temporary object whose lifetime would be shorter than the lifetime of the constructed object
    _C_eps1(getParam<Real>("C_eps1"))
            ^~~~~~~~~~~~~~~~~~~~~~~~
/Users/xg3401/software/proteus/build/header_symlinks/INSADEpsilonProduction.h:25:18: note: reference member declared here
  const ADReal & _C_eps1;
                 ^
2 errors generated.
make: *** [/Users/xg3401/software/moose/framework/build.mk:150: /Users/xg3401/software/proteus/build/unity_src/kernels_Unity.aarch64-apple-darwin20.0.0.opt.lo] Error 1
make: *** Waiting for unfinished jobs....

I installed the dependencies for MOOSE through conda. The MOOSE test app builds fine and all but a handful of the tests pass. I source the following before trying to compile:

micromamba activate moose
export CC=mpicc CXX=mpicxx F90=mpif90 F77=mpif77 FC=mpif90
export MOOSE_DIR=/Users/xg3401/software/moose
export PATH=$PATH:/Users/xg3401/software/proteus

and I believe the clang compiler installed in the conda environment is being used.

Any ideas on how to fix this? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions