I am embarrassed to admit that I really did have a problem with compiling a 
simple Fortran program – because of the upgrade to Catalina!
When I would try to compile w/ gfortran, I would get errors such as “cannot 
find -System”.
I finally found this website which provided a solution (although I edited my 
.bash_profile to make the changes permanent):
https://stackoverflow.com/questions/58278260/cant-compile-a-c-program-on-a-mac-after-upgrading-to-catalina-10-15

This allowed gfortran to compile (and run) and then I was able to configure 
openmpi (4.1.0).
I am still trying to configure openmpi with gcc and g++ (as opposed to using 
clang and c++).

Thanks to all
Tony Rollett



> On Mar 7, 2021, at 8:00 PM, Gilles Gouaillardet via users 
> <users@lists.open-mpi.org> wrote:
> 
> Anthony,
> 
> Did you make sure you can compile a simple fortran program with
> gfortran? and gcc?
> 
> Please compress and attach both openmpi-config.out and config.log, so
> we can diagnose the issue.
> 
> Cheers,
> 
> Gilles
> 
> On Mon, Mar 8, 2021 at 6:48 AM Anthony Rollett via users
> <users@lists.open-mpi.org> wrote:
>> 
>> I am trying to configure v 4.1 with the following, which fails as noted in 
>> the Subject line.
>> 
>> ./configure --prefix=/Users/Shared/openmpi410 \
>> FC=gfortran CC=clang CXX=c++ --disable-static \
>> 2>&1 | tee openmpi-config.out
>> 
>> On a 2019 MacbookPro with 10.15 (but I had the same problem with 10.14).
>> Gfortran (and gcc) is from High Performance Computing for OSX
>> 
>> Any clues will be gratefully received! And I apologize if this is a solved 
>> problem ...
>> Many thanks, Tony Rollett
>> PS.  If I try “CC=gcc CXX=g++” then it fails at the C compilation stage.

Reply via email to