[MacPorts] #49430: py27-netcdf4 command execution failed
#49430: py27-netcdf4 command execution failed -------------------------------------------------+------------------------- Reporter: JDTilley@… | Owner: macports- Type: defect | tickets@… Priority: Normal | Status: new Component: ports | Milestone: Keywords: netcdf, python, p27-netcdf4, py- | Version: 2.3.4 netcdf4 | Port: p27-netcdf4 -------------------------------------------------+------------------------- I am unable to get py27-netcdf4 to build on my system. I get {{{Error: org.macports.build for port py27-netcdf4 returned: command execution failed}}} In the log I get a line about: {{{:info:build clang: error: no such file or directory: 'netCDF4/_netCDF4.c'}}} Does anyone know what this issue is related to? -- Ticket URL: <https://trac.macports.org/ticket/49430> MacPorts <https://www.macports.org/> Ports system for OS X
#49430: py27-netcdf4 command execution failed -------------------------+-------------------- Reporter: JDTilley@… | Owner: sean@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: py-netcdf4 | -------------------------+-------------------- Changes (by petr@…): * cc: JDTilley@… (removed) * owner: macports-tickets@… => sean@… * keywords: netcdf, python, p27-netcdf4, py-netcdf4 => * port: p27-netcdf4 => py-netcdf4 Old description:
I am unable to get py27-netcdf4 to build on my system. I get
{{{Error: org.macports.build for port py27-netcdf4 returned: command execution failed}}}
In the log I get a line about:
{{{:info:build clang: error: no such file or directory: 'netCDF4/_netCDF4.c'}}}
Does anyone know what this issue is related to?
New description: I am unable to get py27-netcdf4 to build on my system. I get {{{ Error: org.macports.build for port py27-netcdf4 returned: command execution failed }}} In the log I get a line about: {{{ :info:build clang: error: no such file or directory: 'netCDF4/_netCDF4.c' }}} Does anyone know what this issue is related to? -- Comment: Please follow the ticket guidelines! You do not need to CC yourself, CC the maintainers, no arbitrary keywords. The `main.log` file would be very useful. -- Ticket URL: <https://trac.macports.org/ticket/49430#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#49430: py27-netcdf4 command execution failed -------------------------+-------------------- Reporter: JDTilley@… | Owner: sean@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: py-netcdf4 | -------------------------+-------------------- Comment (by JDTilley@…): main.log attached. To be completely transparent I have hdf5, netcdf4-c, netcdf-fortran installed in /usr/local. But I built these last night, so the problem was before this. I did try sudo port -t install py27-netcdf, but the result was the same. -- Ticket URL: <https://trac.macports.org/ticket/49430#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#49430: py27-netcdf4 command execution failed -------------------------+-------------------- Reporter: JDTilley@… | Owner: sean@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: py-netcdf4 | -------------------------+-------------------- Comment (by sean@…): Can you list the variants you have for each port: hdf5, netcdf4-c, and netcdf-fortran (and anything else that might be relevant)? -- Ticket URL: <https://trac.macports.org/ticket/49430#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#49430: py27-netcdf4 command execution failed -------------------------+-------------------- Reporter: JDTilley@… | Owner: sean@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: py-netcdf4 | -------------------------+-------------------- Comment (by JDTilley@…): {{{ $ port installed *netcdf* *hdf* The following ports are currently installed: hdf4 @4.2.11_0 (active) hdf5 @1.8.15-patch1_0+cxx (active) netcdf @4.3.3.1_2+dap+netcdf4 (active) }}} It may also be relevant that I first experienced this issue when migrating my ports to the new macports release. -- Ticket URL: <https://trac.macports.org/ticket/49430#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#49430: py27-netcdf4 command execution failed -------------------------+-------------------- Reporter: JDTilley@… | Owner: sean@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: py-netcdf4 | -------------------------+-------------------- Comment (by JDTilley@…): Something interesting I noticed in my macports nc-config: {{{ $ nc-config --all This netCDF 4.3.3.1 has been built with the following features: --cc -> /usr/bin/clang --cflags -> -I/opt/local/include -I/opt/local/include -DNDEBUG --libs -> -L/opt/local/lib -lnetcdf --has-c++ -> no --cxx -> --has-c++4 -> no --cxx4 -> --fc -> gfortran --fflags -> -I/usr/local/include --flibs -> -L/usr/local/lib -lnetcdff -L/usr/local/lib -lnetcdf -lhdf5 -lhdf5_hl -lhdf5_fortran -lhdf5hl_fortran -L/opt/local/lib -lsz -lz -lcurl -lnetcdf -L/usr/local/lib -lnetcdf -lhdf5 -lhdf5_hl -lhdf5_fortran -lhdf5hl_fortran -L/opt/local/lib -lsz -lz -lcurl --has-f90 -> no --has-dap -> yes --has-nc2 -> yes --has-nc4 -> yes --has-hdf5 -> yes --has-hdf4 -> no --has-pnetcdf-> no --prefix -> /opt/local --includedir-> /opt/local/include --version -> netCDF 4.3.3.1 }}} So even the macports version is finding the netcdf-fortran I manually compiled in /usr/local. So I tried to change this by installing the macports netcdf-fortran and I get the following message: {{{ Error: org.macports.activate for port netcdf-fortran returned: Image error: /opt/local/include/netcdf.inc already exists and does not belong to a registered port. Unable to activate port netcdf-fortran. Use 'port -f activate netcdf-fortran' to force the activation. }}} Is there anything to make from this? -- Ticket URL: <https://trac.macports.org/ticket/49430#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#49430: py27-netcdf4 command execution failed -------------------------+-------------------- Reporter: JDTilley@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: Port: py-netcdf4 | -------------------------+-------------------- Changes (by sean@…): * status: new => closed * resolution: => invalid Comment: You have things installed in /usr/local? Do not pass go. Do not collect $200. -- Ticket URL: <https://trac.macports.org/ticket/49430#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#49430: py27-netcdf4 command execution failed -------------------------+-------------------- Reporter: JDTilley@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: Port: py-netcdf4 | -------------------------+-------------------- Comment (by JDTilley@…): So I can't have netcdf in usr/local and opt/local coexist peacefully? Is there any workaround? Once again, I installed things in /usr this weekend since macports netcdf-fortran wasn't playing nicely with things. This issue was occurring before this. Either way, if I can't do it, I can't do it. -- Ticket URL: <https://trac.macports.org/ticket/49430#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#49430: py27-netcdf4 command execution failed -------------------------+-------------------- Reporter: JDTilley@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: Port: py-netcdf4 | -------------------------+-------------------- Comment (by sean@…): Of course you cannot mix /usr/local and /opt/local. Without some kind of black magic (such as trace mode), there's no way for MacPorts to prevent compilers from seeing /usr/local. This is problematic because all the compilers I know of search /usr/local blindly. So, no, /usr/local cannot be used. Ever. -- Ticket URL: <https://trac.macports.org/ticket/49430#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts