Re: [OMPI users] config: gfortran: "could not run a simple Fortran program"

2021-03-08 Thread Jeff Squyres (jsquyres) via users
What is the exact configure line you used to build Open MPI?  You don't want to 
put CC and CXX in a single quoted token.  For example, do this:

./configure CC=gcc CXX=g++ ...

Don't do this (which is what your previous mail implied you might be doing...?):

./configure "CC=gcc CXX=g++" ...



On Mar 7, 2021, at 9:59 PM, Anthony Rollett via users 
mailto:users@lists.open-mpi.org>> wrote:

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 
mailto: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
mailto: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.



--
Jeff Squyres
jsquy...@cisco.com



Re: [OMPI users] config: gfortran: "could not run a simple Fortran program"

2021-03-07 Thread Anthony Rollett via users
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 
>  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
>  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.



Re: [OMPI users] config: gfortran: "could not run a simple Fortran program"

2021-03-07 Thread Gilles Gouaillardet via users
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
 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.


[OMPI users] config: gfortran: "could not run a simple Fortran program"

2021-03-07 Thread Anthony Rollett via users
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.