Opened 13 years ago
Closed 13 years ago
#30330 closed defect (fixed)
openmpi does not build on Lion
Reported by: | tenomoto (Takeshi Enomoto) | 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 (3)
Change History (12)
Changed 13 years ago by tenomoto (Takeshi Enomoto)
Attachment: | Portfile.diff added |
---|
comment:1 Changed 13 years ago by jmroot (Joshua Root)
comment:2 Changed 13 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:4 Changed 13 years ago by danmichaelo+macports@…
I was able to build as well using the modification by justus.c79 above.
comment:6 Changed 13 years ago by mamoll (Mark Moll)
Switching to clang also works. In that case xgrid doesn't need to be disabled. See attached diff.
Changed 13 years ago by mamoll (Mark Moll)
Attachment: | Portfile2.diff added |
---|
comment:7 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | amerwafai@… added |
---|---|
Keywords: | haspatch added |
Has duplicate #30891.
comment:8 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | lion added |
---|
comment:9 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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.