I'm trying to build Rosetta-3.13 "rosetta.source.release-334" with the following command:
./scons.py mode=release bin extras=mpi
I have also updated the site.settings file to prepend the mpicxx and mpicc compilers for openmpi installed in my system.
I got the following error:
ld: warning: ignoring file /opt/programs/openmpi/4.1.4/lib/libmpi.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
.... lots of lines...
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) scons: *** [build/src/release/macos/10.16/64/x86/clang/14.0/mpi/libutility.dylib] Error 1 scons: building terminated because of errors.
I successfully built the same release without extras=mpi. So it looks like the problem is with my openmpi compiler.
I did installed the OpenMPI v.4.1.4 without using homebrew/macports. I downloaded the source binaries from openmpi.org and installed it using the following command:
and used the GCC pre-installed with Xcode (which looks to be a Clang version).
I have no clue on how to troubleshoot this. Don't know if the problem is with any kind of compatibility with my instalation of openmpi and the new Apple M1 chip. Any ideas?