Opened 10 years ago

Closed 10 years ago

#47517 closed defect (fixed)

netcdf-fortran @4.4.2 +universal destroot failure

Reported by: mark.chilenski@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: netcdf-fortran

Description

When attempting to install netcdf-fortran under Yosemite 10.10.3, the following failure occurs:

$ sudo port install netcdf-fortran
--->  Computing dependencies for netcdf-fortran
--->  Fetching archive for netcdf-fortran
--->  Attempting to fetch netcdf-fortran-4.4.2_0+gcc49+universal.darwin_14.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/netcdf-fortran
--->  Attempting to fetch netcdf-fortran-4.4.2_0+gcc49+universal.darwin_14.i386-x86_64.tbz2 from http://packages.macports.org/netcdf-fortran
--->  Attempting to fetch netcdf-fortran-4.4.2_0+gcc49+universal.darwin_14.i386-x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/netcdf-fortran
--->  Fetching distfiles for netcdf-fortran
--->  Verifying checksums for netcdf-fortran
--->  Extracting netcdf-fortran
--->  Configuring netcdf-fortran
--->  Building netcdf-fortran
--->  Staging netcdf-fortran into destroot
Error: org.macports.destroot for port netcdf-fortran returned: command execution failed
Please see the log file for port netcdf-fortran for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_netcdf-fortran/netcdf-fortran/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port netcdf-fortran failed

The log file is attached. The first error I can spot seems to be around line 1795 in the log. The portion around this block is as follows:

...
:info:destroot  /bin/sh ../libtool   --mode=install /usr/bin/install -c   libnetcdff.la '/opt/local/lib'
:info:destroot libtool: install: /usr/bin/install -c .libs/libnetcdff.6.dylib /opt/local/lib/libnetcdff.6.dylib
:info:destroot install: /opt/local/lib/libnetcdff.6.dylib: Operation not permitted
:info:destroot make[3]: *** [install-libLTLIBRARIES] Error 71
:info:destroot make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_netcdf-fortran/netcdf-fortran/work/netcdf-fortran-4.4.2-i386/fortran'
:info:destroot make[2]: *** [install-am] Error 2
:info:destroot make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_netcdf-fortran/netcdf-fortran/work/netcdf-fortran-4.4.2-i386/fortran'
:info:destroot make[1]: *** [install] Error 2
:info:destroot make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_netcdf-fortran/netcdf-fortran/work/netcdf-fortran-4.4.2-i386/fortran'
:info:destroot make: *** [install-recursive] Error 1
:info:destroot make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_netcdf-fortran/netcdf-fortran/work/netcdf-fortran-4.4.2-i386'
:info:destroot Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_netcdf-fortran/netcdf-fortran/work/netcdf-fortran-4.4.2-i386" && /usr/bin/make -w install {prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_netcdf-fortran/netcdf-fortran/work/destroot-i386/opt/local {MANDIR=\${prefix}/share/man}} 
:info:destroot Exit code: 2
...

Wondering if the "Operation not permitted" was a symptom of insufficient privileges (despite having used "sudo"), I tried running as root directly (i.e., typing "sudo -i" first) and the same error occurred.

Attachments (1)

main.log (167.7 KB) - added by mark.chilenski@… 10 years ago.
Log file showing the failure

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by mark.chilenski@…

Attachment: main.log added

Log file showing the failure

comment:1 Changed 10 years ago by mark.chilenski@…

Additional detail: this seems to be related to the +universal variant. I am able to install netcdf-fortran without +universal. Unfortunately, I do need the 32 bit version for my application.

comment:2 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to takeshi@…
Port: netcdf-fortran added

In the future, please fill in the Port field and Cc the port maintainers (port info --maintainers netcdf-fortran), if any.

comment:3 Changed 10 years ago by mark.chilenski@…

Sorry for forgetting the Port and maintainer fields!

Here is an additional detail: desperate to get my code running, I tried the drastic step of uninstalling all ports, running sudo port clean all and then installing netcdf-fortran from this essentially clean state. It failed in the same manner as the initial log file I posted, which would seem to imply this isn't just something pathological with the other ports I have installed.

comment:4 Changed 10 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

Done in r135549. Thanks for reporting.

Note: See TracTickets for help on using tickets.