New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30330 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

openmpi does not build on Lion

Reported by: takeshi@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: haspatch lion Cc: gezelter@…, schiotz@…, amerwafai@…
Port: openmpi

Description

I was able to build on Lion by setting the same compiler as Snow (gcc-4.2). I notice that --with-xgrid no longer exists in configure. See the patch.

Attachments

Portfile.diff (596 bytes) - added by takeshi@… 3 years ago.
main.log (643.8 KB) - added by danmichaelo+macports@… 3 years ago.
error log
Portfile2.diff (375 bytes) - added by mmoll@… 3 years ago.

Change History

Changed 3 years ago by takeshi@…

comment:1 Changed 3 years ago by jmr@…

Does it work with clang? Does it work with llvm-gcc-4.2 on Snow Leopard? If it really does need gcc-4.2, please see jeremyhu's post "MacPorts on Lion (common issues, fixes, and workarounds)" on macports-dev for the preferred way to make that happen.

comment:2 Changed 3 years ago by justus.c79@…

I followed the directions given in the above mentioned post and was able to successfully build using the clang compiler. I added the following lines to the openmpi port file (/opt/local/var/macports/sources/rsync.macports.org/release/ports/science/openmpi/Portfile).

if {${configure.compiler} == "llvm-gcc-4.2"} {
    configure.compiler clang
}

comment:3 Changed 3 years ago by gezelter@…

  • Cc gezelter@… added

Cc Me!

Changed 3 years ago by danmichaelo+macports@…

error log

comment:4 Changed 3 years ago by danmichaelo+macports@…

I was able to build as well using the modification by justus.c79 above.

comment:5 Changed 3 years ago by schiotz@…

  • Cc schiotz@… added

Cc Me!

comment:6 Changed 3 years ago by mmoll@…

Switching to clang also works. In that case xgrid doesn't need to be disabled. See attached diff.

Changed 3 years ago by mmoll@…

comment:7 Changed 3 years ago by ryandesign@…

  • Keywords haspatch added
  • Cc amerwafai@… added

Has duplicate #30891.

comment:8 Changed 3 years ago by ryandesign@…

  • Keywords lion added

comment:9 Changed 3 years ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.