[MacPorts] #23645: nco +netcdf4 fails to install
#23645: nco +netcdf4 fails to install --------------------------------------+------------------------------------- Reporter: barry.j.mcinnes@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: nco netcdf4 | Port: nco --------------------------------------+------------------------------------- I am trying to get nco +netcdf4 built after hdf5-18 and netcdf4 +dap +netcdf4 build OK. The port info says the variant is availabe - % port info nco nco @4.0.0 (science) Variants: mpich2, netcdf4, openmpi, udunits2, universal I have attached the debug of the build. The macport build for nco fails the same way on clean install of MacPorts and builds, on Mac 10.5 and 10.6 versions. -- Ticket URL: <http://trac.macports.org/ticket/23645> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23645: nco +netcdf4 fails to install --------------------------------------+------------------------------------- Reporter: barry.j.mcinnes@… | Owner: takeshi@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: nco --------------------------------------+------------------------------------- Changes (by macsforever2000@…): * keywords: nco netcdf4 => * owner: macports-tickets@… => takeshi@… * cc: takeshi@… (removed) Old description:
I am trying to get nco +netcdf4 built after hdf5-18 and netcdf4 +dap +netcdf4 build OK. The port info says the variant is availabe - % port info nco nco @4.0.0 (science) Variants: mpich2, netcdf4, openmpi, udunits2, universal I have attached the debug of the build.
The macport build for nco fails the same way on clean install of MacPorts and builds, on Mac 10.5 and 10.6 versions.
New description: I am trying to get nco +netcdf4 built after hdf5-18 and netcdf4 +dap +netcdf4 build OK. The port info says the variant is availabe - {{{ % port info nco nco @4.0.0 (science) Variants: mpich2, netcdf4, openmpi, udunits2, universal }}} I have attached the debug of the build. The macport build for nco fails the same way on clean install of MacPorts and builds, on Mac 10.5 and 10.6 versions. -- -- Ticket URL: <http://trac.macports.org/ticket/23645#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23645: nco +netcdf4 fails to install --------------------------------------+------------------------------------- Reporter: barry.j.mcinnes@… | Owner: takeshi@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: nco --------------------------------------+------------------------------------- Comment(by takeshi@…): I cannot reproduce the problem. Does config.h have a line below? {{{ #define ENABLE_NETCDF4 1 }}} May I take a look at config.log? -- Ticket URL: <http://trac.macports.org/ticket/23645#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23645: nco +netcdf4 fails to install --------------------------------------+------------------------------------- Reporter: barry.j.mcinnes@… | Owner: takeshi@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: nco --------------------------------------+------------------------------------- Comment(by takeshi@…): Updated netcdf to 4.1 in r63794. I am not sure if this helps. -- Ticket URL: <http://trac.macports.org/ticket/23645#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23645: nco +netcdf4 fails to install --------------------------------------+------------------------------------- Reporter: barry.j.mcinnes@… | Owner: takeshi@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: nco --------------------------------------+------------------------------------- Comment(by takeshi@…): Sorry for slow response. This is caused by referring the old version in ${prefix}/lib. Try deactivating nco before install. I am asking for a help with libtool in macports-dev mailing list. -- Ticket URL: <http://trac.macports.org/ticket/23645#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23645: nco +netcdf4 fails to install --------------------------------------+------------------------------------- Reporter: barry.j.mcinnes@… | Owner: takeshi@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: nco --------------------------------------+------------------------------------- Comment(by takeshi@…): My guess that replacement of libnco.la by ${prefix}/lib ./.libs/libnco.a is a cause of duplicate name with the old library ${prefix}/lib seems to be wrong. Since ./.libs/libnco.a is specified in the full path and nothing else like -lnco, the former should be used. Thus it does not seem to be related with libtool. I still can't reproduce your problem (Leopard on PPC and Snow Leopard on Intel). I don't have the duplicate symbol between netcdf +netcdf4 and nco +netcdf4. {{{ $ nm work/nco-4.0.0/src/nco/.libs/libnco.a | grep _nc_put_vara_ulonglong U _nc_put_vara_ulonglong $ nm /opt/local/lib/libnetcdf.a | grep _nc_put_vara_ulonglong 00000000000006e0 T _nc_put_vara_ulonglong nm: no name list 0000000000005ae8 S _nc_put_vara_ulonglong.eh nm: no name list nm: no name list }}} Can I see the result of these commands? -- Ticket URL: <http://trac.macports.org/ticket/23645#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23645: nco +netcdf4 fails to install --------------------------------------+------------------------------------- Reporter: barry.j.mcinnes@… | Owner: takeshi@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: nco --------------------------------------+------------------------------------- Comment(by takeshi@…):
bash-3.2# port installed|grep netcdf netcdf @4.0.1_7 (active)
It seems that you have netcdf-4 features are not enabled in your netcdf installation. nco +netcdf4 requires netcdf +netcdf4. There is no explicit way to specify variant dependency at the moment but I added a trick to stop building in such a case in the modified Portfile in r64316. I would like you to try the following. {{{ # deactivate netcdf sudo port -d deactivate netcdf # update the port tree sudo port -d sync # upgrade those outdated sudo port -du upgrade outdated # install netcdf and nco sudo port -d install netcdf +netcdf4 sudo port -d install nco +netcdf4 }}} -- Ticket URL: <http://trac.macports.org/ticket/23645#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23645: nco +netcdf4 fails to install ---------------------------------------+------------------------------------ Reporter: barry.j.mcinnes@… | Owner: takeshi@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: fixed | Keywords: Port: nco | ---------------------------------------+------------------------------------ Changes (by takeshi@…): * status: new => closed * resolution: => fixed Comment: The reporter contacted that r64440 fixed the problem. -- Ticket URL: <http://trac.macports.org/ticket/23645#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts