[MacPorts] #47336: Port cannot find #include <mpi.h>
#47336: Port cannot find #include <mpi.h> -------------------------+-------------------------------- Reporter: citibob@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: py27-tables | Port: py-tables -------------------------+-------------------------------- The following "hack" to the Portfile got it to work for me (for the command port install py27-tables +gcc49) compiler.cpath-append ${prefix}/include/openmpi-gcc49 I don't know how to do this right, so it would work for any supported compiler. -- Ticket URL: <https://trac.macports.org/ticket/47336> MacPorts <https://www.macports.org/> Ports system for OS X
#47336: py-tables: Port cannot find #include <mpi.h> ------------------------+--------------------- Reporter: citibob@… | Owner: mmoll@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-tables | ------------------------+--------------------- Changes (by ryandesign@…): * keywords: py27-tables => * owner: macports-tickets@… => mmoll@… Old description:
The following "hack" to the Portfile got it to work for me (for the command port install py27-tables +gcc49)
compiler.cpath-append ${prefix}/include/openmpi-gcc49
I don't know how to do this right, so it would work for any supported compiler.
New description: The following "hack" to the Portfile got it to work for me (for the command port install py27-tables +gcc49) {{{ compiler.cpath-append ${prefix}/include/openmpi-gcc49 }}} I don't know how to do this right, so it would work for any supported compiler. -- -- Ticket URL: <https://trac.macports.org/ticket/47336#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47336: py-tables: Port cannot find #include <mpi.h> ------------------------+--------------------- Reporter: citibob@… | Owner: mmoll@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-tables | ------------------------+--------------------- Comment (by sean@…): I don't have the time to fully look into this now but the solution would be to use the mpi portgroup similar to how `py-mpi4py` does. -- Ticket URL: <https://trac.macports.org/ticket/47336#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47336: py-tables: Port cannot find #include <mpi.h> ------------------------+--------------------- Reporter: citibob@… | Owner: mmoll@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-tables | ------------------------+--------------------- Comment (by mmoll@…): I cannot reproduce this. I installed hdf5+openmpi and then installed py34-tables without errors. Perhaps you had hdf5 installed without the +openmpi variant? -- Ticket URL: <https://trac.macports.org/ticket/47336#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#47336: py-tables: Port cannot find #include <mpi.h> ------------------------+--------------------- Reporter: citibob@… | Owner: mmoll@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-tables | ------------------------+--------------------- Changes (by petr@…): * cc: gnurser@… (added) Comment: Has duplicate #48789, adding reporter of the ticket. -- Ticket URL: <https://trac.macports.org/ticket/47336#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#47336: py-tables: Port cannot find #include <mpi.h> ------------------------+--------------------- Reporter: citibob@… | Owner: mmoll@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-tables | ------------------------+--------------------- Comment (by gnurser@…): Replying to [comment:5 petr@…]:
Has duplicate #48789, adding reporter of the ticket.
This used to work for me until very recently. Same error if I try to upgrade py34-tables. My hdf5 is hdf5 @1.8.15-patch1_0+cxx+gcc49+openmpi -- Ticket URL: <https://trac.macports.org/ticket/47336#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#47336: py-tables: Port cannot find #include <mpi.h> ------------------------+--------------------- Reporter: citibob@… | Owner: mmoll@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: invalid | Keywords: Port: py-tables | ------------------------+--------------------- Changes (by sean@…): * status: new => closed * resolution: => invalid Comment: The fix is to build py-tables with the same mpi variant as hdf5. In your case, `sudo port install py27-tables +gcc49 +openmpi`. -- Ticket URL: <https://trac.macports.org/ticket/47336#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#47336: py-tables: Port cannot find #include <mpi.h> ------------------------+--------------------- Reporter: citibob@… | Owner: mmoll@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: invalid | Keywords: Port: py-tables | ------------------------+--------------------- Comment (by gnurser@…): Replying to [comment:7 sean@…]:
The fix is to build py-tables with the same mpi variant as hdf5. In your case, `sudo port install py27-tables +gcc49 +openmpi`. Tnanks; this now works fine.
-- Ticket URL: <https://trac.macports.org/ticket/47336#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts