Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing on mac #36

Open
mikesmic opened this issue Aug 1, 2024 · 0 comments
Open

Installing on mac #36

mikesmic opened this issue Aug 1, 2024 · 0 comments

Comments

@mikesmic
Copy link

mikesmic commented Aug 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant