You are here

Error when install Rosetta 3.13 on Mac M1

3 posts / 0 new
Last post
Error when install Rosetta 3.13 on Mac M1
#1

Hi,

I tried to install Rosetta 3.13 on Mac M1. I got the following error:

scons: *** [build/src/release/macos/10.16/64/x86/clang/15.0/mpi/apps/public/AbinitioRelax.o] Error 255
mpicxx -o build/src/release/macos/10.16/64/x86/clang/15.0/mpi/protocols/init/register2.os -c -std=c++11 -isystem external/boost_submod/ -isystem external/ -isystem external/include/ -isystem external/dbio/ -isystem external/libxml2/include -isystem external/rdkit -isystem /usr/local/include -march=core2 -mtune=generic -pipe -Qunused-arguments -DUNUSUAL_ALLOCATOR_DECLARATION -ftemplate-depth-256 -stdlib=libstdc++ -W -Wall -Wextra -pedantic -Wno-long-long -Wno-strict-aliasing -march=native -mtune=native -stdlib=libc++ -Wno-unused-variable -Wno-implicit-function-declaration -O3 -Wno-unused-variable -Wno-unused-parameter -fPIC -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_DISABLE_THREADS -DPTR_STD -DNDEBUG -DUSEMPI -Isrc -Iexternal/include -Isrc/platform/macos/64/clang/15.0 -Isrc/platform/macos/64/clang -Isrc/platform/macos/64 -Isrc/platform/macos src/protocols/init/register2.cc
scons: *** [build/src/release/macos/10.16/64/x86/clang/15.0/mpi/devel/init.os] Error 255
scons: *** [build/src/release/macos/10.16/64/x86/clang/15.0/mpi/protocols/init/init.os] Error 255
scons: *** [build/src/release/macos/10.16/64/x86/clang/15.0/mpi/protocols/init/register1.os] Error 255
[MengsMacBookPro.local:01046] Error: Unable to get the user home directory
[MengsMacBookPro.local:01046] Error: Unable to get the user home directory
--------------------------------------------------------------------------
It looks like opal_init failed for some reason; your parallel process is
likely to abort.  There are many reasons that a parallel process can
fail during opal_init; some of which are due to configuration or
environment problems.  This failure appears to be an internal failure;
here's some additional information (which may only be relevant to an
Open MPI developer):

  mca_base_var_init failed
  --> Returned value -1 instead of OPAL_SUCCESS
--------------------------------------------------------------------------
scons: *** [build/src/release/macos/10.16/64/x86/clang/15.0/mpi/protocols/init/register2.os] Error 255
scons: building terminated because of errors.
 

Could you please give some suggestions about how to fix it?

Thanks in advance.

Category: 
Post Situation: 
Wed, 2023-11-22 01:13
mengzhang

It looks like it's an issue with the OpenMPI compiler. Best I can tell, it doesn't look like it's Rosetta-specific. -- The Rosetta-specific thing you can try is to edit the source/tools/build/site.settings file -- FInd the line with `"ENV" : os.environ,` on it, and uncomment it (remove the '#' symbol from the front). If your OpenMPI needs some environment variables to properly function, that might fix things.

Have you successfully compiled other MPI programs on this machine? I'd recommend a simple (non-Rosetta) MPI example (perhaps one of the examples in the OpenMPI documentation, if there are any). If those also give errors, then it's not Rosetta-specific and you have a general MPI setup issue. You'll also have a simpler example which people on an OpenMPI-specific forum can more easily debug.

The other thing to do is poke around regarding the error message which does get printed: `Error: Unable to get the user home directory` -- I don't know if your Mac has an odd setup, or you've done something special with respect to your user accounts. But that might be one avenue to invesitigate.

Wed, 2023-11-22 07:19
rmoretti

Hi,

Thank you so much!! I uncommented the `"ENV" : os.environ in source/tools/build/site.settings file. And installed with > ./scons.py -j 5 mode=release bin. 

The problem was solved. Thanks again.

Best,

Meng

Tue, 2023-11-28 04:01
mengzhang