Support for Mac OS 10.7 Lion

Asked by Fredrik Valdmanis

I am trying to make Dorsal work with Mac OS 10.7 Lion. So far, I have made a new package file and added a line to guess_platform() in dorsal.sh.

Right now, the build fails during PETSc configure. It complains about the option "--with-parmetis-dir". The part of the dorsal output that is not truncated in my terminal is at folk.uio.no/fredva/dorsal.log.

I have pushed my changes to lp:~fredva/dorsal/lion, you can have a look if you would like to help me make it work.

Question information

Language:
English Edit question
Status:
Answered
For:
Dorsal Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Harish Narayanan (hnarayanan) said :
#1

I will help you as soon as I get access to Lion.

Revision history for this message
Johannes Ring (johannr) said :
#2

Look in configure.log in the PETSc folder to see why

  --with-parmetis-dir=/Users/fredva/local/fenics did not work

I'm guessing that you need to install OpenMPI from MacPorts since, AFAIK, Lion does not ship the OpenMPI compilers (like Snow Leopard did).

Revision history for this message
Fredrik Valdmanis (fredva) said :
#3

I have installed OpenMPI via Macports, but PETSc configure doesn't find the compilers automatically. I have set MPI_DIR=/opt/local in lion.package and set the option --with-mpi-dir=${MPI_DIR} in petsccore.package, but it complains that "MPI compiler wrappers in /opt/local/bin do not work."

The MacPorts OpenMpi compiler wrappers are all called "openmpicc" etc., that might be a problem. I was thinking about making symlinks called "mpicc" etc. in a local bin folder, but I guess there are other things I must fix as well in order to make that approach work?

I have also tried the PETSc configure option "--download-openmpi=1", but that does not work when using "--prefix".

I have also tried "--with-mpi-compilers=0", which tries to auto-detect working compilers, but that gives the following error:
"You must specify a path for MPI with --with-mpi-dir=<directory>
If you do not want MPI, then give --with-mpi=0
You might also consider using --download-mpi instead"

Revision history for this message
Johannes Ring (johannr) said :
#4

Have you tried specifying the compiler with --CC, --CXX, and --FC (or --with-cc, --with-cxx, and --with-fc)?

Revision history for this message
Harish Narayanan (hnarayanan) said :
#5

I now have Lion on a test machine and I'm starting to try this. Try the following patch for petsccore.package and see if it helps:

--- FEniCS/packages/petsccore.package 2011-05-16 11:35:28 +0000
+++ FEniCS/packages/petsccore.package 2011-09-16 13:47:49 +0000
@@ -5,6 +5,10 @@

 CONFOPTS="COPTFLAGS=-O2
           --prefix=${INSTALL_PATH}
+ --with-cc=/opt/local/bin/openmpicc
+ --with-cxx=/opt/local/bin/openmpicxx
+ --with-mpiexec=/opt/local/bin/openmpiexec
+ --with-fc=/opt/local/bin/openmpif90
           --with-debugging=0 --with-shared=1 --with-clanguage=cxx --with-fc=0
           --with-parmetis=1 --with-parmetis-dir=${PARMETIS_DIR}
           --download-umfpack=1"

Revision history for this message
Harish Narayanan (hnarayanan) said :
#6

I tried out a complete build and everything works on OS X Lion if:

0. You install openmpi via MacPorts
1. You replace mpicc with openmpicc in src/ParMetis-3.2.0/Makefile.in
2. You use the above patch for FEniCS/packages/petsccore.package
3. You replace mpicc with openmpicc in src/scotch_5.1.11/src/Make.inc/Makefile.inc.i686_mac_darwin8

I will work in these changes in some way (symlink, alias, file edits etc.) into Dorsal in the near future. You guys are free to do so too.

Revision history for this message
Harish Narayanan (hnarayanan) said :
#7

Please try it now; I think I've fixed Lion support.

Can you help with this problem?

Provide an answer of your own, or ask Fredrik Valdmanis for more information if necessary.

To post a message you must log in.