Opened 10 years ago

Closed 10 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)

Portfile.diff (596 bytes) - added by tenomoto (Takeshi Enomoto) 10 years ago.
main.log (643.8 KB) - added by danmichaelo+macports@… 10 years ago.
error log
Portfile2.diff (375 bytes) - added by mamoll (Mark Moll) 10 years ago.

Download all attachments as: .zip

Change History (12)

Changed 10 years ago by tenomoto (Takeshi Enomoto)

Attachment: Portfile.diff added

comment:1 Changed 10 years ago by jmroot (Joshua Root)

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 10 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 10 years ago by gezelter@…

Cc: gezelter@… added

Cc Me!

Changed 10 years ago by danmichaelo+macports@…

Attachment: main.log added

error log

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

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

comment:5 Changed 10 years ago by schiotz@…

Cc: schiotz@… added

Cc Me!

comment:6 Changed 10 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 10 years ago by mamoll (Mark Moll)

Attachment: Portfile2.diff added

comment:7 Changed 10 years ago by ryandesign (Ryan Schmidt)

Cc: amerwafai@… added
Keywords: haspatch added

Has duplicate #30891.

comment:8 Changed 10 years ago by ryandesign (Ryan Schmidt)

Keywords: lion added

comment:9 Changed 10 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.