gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1608 Posts in 532 Topics by 776 Members - Latest Member: evvaletov September 28, 2022, 04:29:25 PM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Support  |  Macintosh  |  Building and Installing OPENMPI and/or MPICH-3 under Mac OS X 10.10
gfx
gfxgfx
 

Author Topic: Building and Installing OPENMPI and/or MPICH-3 under Mac OS X 10.10  (Read 5944 times)

Orbital Mechanic

  • Newbie
  • *
  • Posts: 16
I'm attempting to build and install OPENMPI ver. 1.8.2 and/or MPICH-3 ver.3.1.3 on a MacBook Pro running Absoft Fortran Pro ver. 14 under Mac OS X ver. 10.10.  I'm getting an error when the configure script checks to see if my gcc compiler is working.  The message I see in the terminal window is "C compiler cannot create executables."  I get this error message building and installing OPENMPI or MPICH-3.

The file config.log is attached to this note. From what little I know of gcc, there is no apparent reason why the C compiler fails.

Any advice?

forumadmin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 332
Re: Building and Installing OPENMPI and/or MPICH-3 under Mac OS X 10.10
« Reply #1 on: January 05, 2015, 11:53:02 AM »

This morning, I was able to successfully configure and build a 32 bit OpenMPI 1.8.2 on OS X 10.10 using
Absoft Pro Fortran 2014 and the command line tools Apple ships with Xcode 6.1.

From the contents of your config.log file, it seems like you are using a custom version of GCC
rather than the LLVM C/C++ compiler Apple bundles with XCode.  The error message in the log file:

  configure:5817: checking whether the C compiler works
  configure:5839: gcc -m32  -m32 conftest.c  >&5
  Undefined symbols for architecture i386:
     "start", referenced from:
     implicit entry/start for main executable
  ld: symbol(s) not found for architecture i386
  collect2: error: ld returned 1 exit status

may indicate that your GCC does not have support for building 32 bit applications.
Are you able to compile and link a simple C program using the -m32 flag from the
command line?

I would suggest trying to build a 64 bit version of OPENMPI using:

     configure --prefix=/opt/openmpi-64 \
              FC=$ABSOFT/bin/af90 FCFLAGS=-m64 \
              CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS=-m64 \
              --with-wrapper-fcflags=-m64 \
              --enable-static --disable-shared





Orbital Mechanic

  • Newbie
  • *
  • Posts: 16
Re: Building and Installing OPENMPI and/or MPICH-3 under Mac OS X 10.10
« Reply #2 on: January 07, 2015, 04:44:01 PM »
Thank you for responding to my question.

I modified the command you suggested to build the 64-bit version of OpenMpi as follows:

../openmpi-1.8.2/configure --prefix=/opt/openmpi-64 \
            FC=/Applications/Absoft14.0/bin/af90 FCFLAGS=-m64 \
            CC=/usr/llvm-gcc-4.2/bin/i686-apple-darwin11-llvm-gcc-4.2 \
            CXX=/usr/llvm-gcc-4.2/bin/i686-apple-darwin11-llvm-g++-4.2 \
            CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS=-m64 \
            --with-wrapper-fcflags=-m64 \
            --enable-static --disable-shared

I explicitly pointed to Apple's version of gcc and c++ and was able to get to the point where the Fortran builds occur. The problem I'm having now is that Absoft Fortran 14.0 is having a similar linking problem for 64-bit addressing as I had with the C code. Furthermore, from what I see in the log file, the configure script appears to be saying that it's using both gfortran and Absoft Fortran 14.0 as shown below:


*** Fortran compiler
checking whether we are using the GNU Fortran compiler... yes
checking whether /Applications/Absoft14.0/bin/af90 accepts -g... yes
checking whether ln -s works... yes
checking if Fortran compiler works... no
**********************************************************************
* It appears that your Fortran compiler is unable to produce working
* executables.  A simple test application failed to properly
* execute.  Note that this is likely not a problem with Open MPI,
* but a problem with the local compiler installation.  More
* information (including exactly what command was given to the
* compiler and what error resulted when the command was executed) is
* available in the config.log file in the Open MPI build directory.
**********************************************************************
configure: error: Could not run a simple Fortran program.  Aborting.
users-MacBook-Pro:ompi-64build user$


Any advice.

paj

  • Newbie
  • *
  • Posts: 7
Re: Building and Installing OPENMPI and/or MPICH-3 under Mac OS X 10.10
« Reply #3 on: January 08, 2015, 07:39:50 AM »
My guess is that you probably did not set your environment up to use Pro Fortran. Enter the following command before starting the configure process:

 source /Applications/Absoft14.0/bin/absvars.sh
« Last Edit: January 08, 2015, 08:32:17 AM by forumadmin »

Orbital Mechanic

  • Newbie
  • *
  • Posts: 16
Re: Building and Installing OPENMPI and/or MPICH-3 under Mac OS X 10.10
« Reply #4 on: January 08, 2015, 11:13:47 PM »
I have the statement

source /Applications/Absoft15.0/bin/absvars.sh

in my bash_profile file at the beginning of the file and still getting the same result. In looking in the config.log file, the problem seems to be with conftest.f. I haven't been able to find that file, so I have no insight as to what is going on.

Help.


paj

  • Newbie
  • *
  • Posts: 7
Re: Building and Installing OPENMPI and/or MPICH-3 under Mac OS X 10.10
« Reply #5 on: January 09, 2015, 08:31:46 AM »
Let's move this discussion to support@absoft.com. Please attach your log file so that we can take a look at it.

Absoft User Forum  |  Support  |  Macintosh  |  Building and Installing OPENMPI and/or MPICH-3 under Mac OS X 10.10
 

gfxgfx
gfx gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!