Opened 23 months ago

Last modified 23 months ago

#57156 assigned defect

wgrib2 fails to build on Mac OS X 10.11.6

Reported by: yurukc Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: Dave-Allured (Dave Allured)
Port: wgrib2

Description (last modified by jmroot (Joshua Root))

While I was trying to upgrade ncarg on Mac OS X 10.11.6, I gave the following error message about wgrib2. Then I tried "sudo port clean wgrib2" and "sudo port install wgrib2", respectively but it gave the same error.

Warning: Xcode does not appear to be installed; most ports will likely fail to build.
--->  Computing dependencies for wgrib2
--->  Fetching archive for wgrib2
--->  Attempting to fetch wgrib2-2.0.7_4+gcc7.darwin_15.x86_64.tbz2 from http://nue.de.packages.macports.org/wgrib2
--->  Attempting to fetch wgrib2-2.0.7_4+gcc7.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/wgrib2
--->  Attempting to fetch wgrib2-2.0.7_4+gcc7.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/wgrib2
--->  Fetching distfiles for wgrib2
--->  Attempting to fetch wgrib2.tgz.v2.0.7 from http://nue.de.distfiles.macports.org/wgrib2
--->  Verifying checksums for wgrib2                                                 
--->  Extracting wgrib2
--->  Applying patches to wgrib2
--->  Configuring wgrib2
--->  Building wgrib2
Error: Failed to build wgrib2: command execution failed

There were also warning notes at the end.

--->  Some of the ports you installed have notes:
  hdf5 has the following notes:
    Mac users may need to set the environment variable "HDF5_USE_FILE_LOCKING" to the five-character string "FALSE" when accessing network mounted files.  This is an
    application run-time setting, not a configure or build setting.  Otherwise errors such as "unable to open file" or "HDF5 error" may be  encountered.
  libidn has the following notes:
    Please be aware that GNU libidn2 is the successor of GNU libidn. It comes with IDNA 2008  
    and TR46 implementations and also provides a compatibility layer for GNU libidn.
  libpsl has the following notes:
    libpsl API documentation is provided by the port 'libpsl-docs'.
  netcdf has the following notes:
    As of version 4.2 c++ and fortran interfaces are separate ports, netcdf-cxx and netcdf-fortran, respectively.
  python27 has the following notes:
    To make this the default Python or Python 2 (i.e., the version run by the 'python' or 'python2' commands), run one or both of:
    
        sudo port select --set python python27
        sudo port select --set python2 python27

Finally I made "sudo port upgrade outdated" and it stopped again while building wgrib2.

Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
--->  Computing dependencies for wgrib2
--->  Building wgrib2
Error: Failed to build wgrib2: command execution failed

Attachments (1)

main.log (86.8 KB) - added by yurukc 23 months ago.
Detailed log file

Download all attachments as: .zip

Change History (6)

Changed 23 months ago by yurukc

Attachment: main.log added

Detailed log file

comment:1 Changed 23 months ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: set to tenomoto
Priority: HighNormal
Status: newassigned
Warning: Xcode does not appear to be installed; most ports will likely fail to build.

Is Xcode in fact installed? What result do these commands give?

xcode-select -print-path
xcodebuild -version

comment:2 Changed 23 months ago by yurukc

When I type "xcode-select -print-path" command, it shows /Library/Developer/CommandLineTools path.
However, the command "xcodebuild -version" gives error that is xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance.

comment:3 Changed 23 months ago by jmroot (Joshua Root)

OK, so you should run this:

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

But it looks like there is still a problem with the fortran compiler, which is not provided by Xcode but by a port.

comment:4 Changed 23 months ago by yurukc

It says "xcode-select: error: invalid developer directory '/Applications/Xcode.app/Contents/Developer". Could it be because of the absence of Xcode.app directory under Applications?

Last edited 23 months ago by yurukc (previous) (diff)

comment:5 Changed 23 months ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added
Note: See TracTickets for help on using tickets.