Opened 11 months ago
Closed 11 months ago
#68857 closed defect (worksforme)
GDAL 3.8.1 fails to install on brand new macports on macOS Monterey Intel
Reported by: | PaulWessel (Paul Wessel) | Owned by: | Veence (Vincent) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | nilason (Nicklas Larsson) | |
Port: | gdal |
Description
I wiped macports, then reinstalled it on my macOS Pro Intel running latest Monterey. As many times before, the GDAL install fails and that is frustrating. I attach the main.log. I dont know if it is a Cmake bug or if there is something about my mac that cause troubles.
Attachments (1)
Change History (11)
comment:1 Changed 11 months ago by jmroot (Joshua Root)
Cc: | nilason added |
---|---|
Owner: | set to Veence |
Port: | gdal added |
Status: | new → assigned |
Changed 11 months ago by jmroot (Joshua Root)
Attachment: | main.log.bz2 added |
---|
comment:2 Changed 11 months ago by kencu (Ken)
comment:3 Changed 11 months ago by kencu (Ken)
Summary: | GDAL 2.8.1 fails to install on brand new macports on macOS Monterey Intel → GDAL 3.8.1 fails to install on brand new macports on macOS Monterey Intel |
---|
comment:4 Changed 11 months ago by kencu (Ken)
At the start of your log, we see this:
:warn:main The Xcode Command Line Tools package appears to be installed, but its receipt appears to be missing. :warn:main The Command Line Tools may be outdated, which can cause problems. :warn:main Please see: <https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt>
so that is the first thing to fix, by following the instructions that are indicated by that link.
comment:5 Changed 11 months ago by kencu (Ken)
it looks like the error that stops you is this one:
:info:build make[2]: *** No rule to make target `/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/lib/libm.tbd', needed by `gdalplugins/gdal_netCDF.so'. Stop. :info:build make[2]: *** Waiting for unfinished jobs....
that is a strange error, indicating part of the SDK is missing it seems... the first approach to fixing this is to clean up your setup so that the above error comment:4 is no longer present.
Please report back after you have done that fix, with a new log if it fails again after that.
comment:6 Changed 11 months ago by kencu (Ken)
I was also curious why you're not just downloading the prebuilt binary, and it appears you are trying to set some non-default variants:
gdal-3.8.1_0+hdf5+netcdf+openjpeg+postgresql15+proj9.darwin_21.x86_64.tbz2
whereas the prebuilt binary has these variants:
gdal-3.8.1_0+postgresql15+proj9.darwin_21.x86_64.tbz2
variants are an interesting feature of macports, but they can cause problems because non-default variants are not automatically tested.
So unless you really need +hdf5 +netcdf +openjpeg
my advice would be to drop those additional variants.
if you do really need them, and they don't build (they might not) then the port might need fixing. FIguring out which exact non-default variant is broken would be helpful there.
comment:7 Changed 11 months ago by nilason (Nicklas Larsson)
I see:
... :debug:main hdf5 1.14.3_0 exists in the ports tree :debug:main hdf5 1.14.3_0 +cxx+fortran+gfortran+hl is the latest installed :debug:main hdf5 1.14.3_0 +cxx+fortran+gfortran+hl is active ... :debug:main netcdf 4.9.2_1 exists in the ports tree :debug:main netcdf 4.9.2_1 +cdf5+dap+netcdf4 is the latest installed :debug:main netcdf 4.9.2_1 +cdf5+dap+netcdf4 is active ... :debug:configure hdf5 is installed with the following variants: +cxx+fortran+gfortran+hl :debug:configure required: openmpi, forbidden: :debug:configure rejected, because required variant openmpi is missing :debug:configure hdf5 is installed with the following variants: +cxx+fortran+gfortran+hl :debug:configure required: mpich, forbidden: :debug:configure rejected, because required variant mpich is missing :debug:configure Executing proc-pre-org.macports.configure-configure-5 :debug:configure netcdf is installed with the following variants: +cdf5+dap+netcdf4 :debug:configure required: openmpi, forbidden: :debug:configure rejected, because required variant openmpi is missing :debug:configure netcdf is installed with the following variants: +cdf5+dap+netcdf4 :debug:configure required: mpich, forbidden: :debug:configure rejected, because required variant mpich is missing ...
which I believe indicates there is a mpi variant conflict between hdf5 and netcdf.
Did you install any of those ports separately?
(Just for reference, I have gdal @3.8.1_0+arrow+hdf4+hdf5+heif+kea+libarchive+libkml+lto+lzma+native+netcdf+openexr+openjpeg+poppler+postgresql15+proj9+tiledb (active)
installed, so it should work.)
comment:8 Changed 11 months ago by PaulWessel (Paul Wessel)
Thanks, fighting a bit longer with Xcode helped and now my install works again!
comment:10 Changed 11 months ago by kencu (Ken)
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
excellent!
according to
https://ports.macports.org/port/gdal/details/
gdal 3.8.1 builds and installs on every system macports supports.
here in the packages server there does appear to be a ready-made prebuilt binary waiting to be installed for every Intel system since SnowLeopard.
https://packages.macports.org/gdal/
so it certainly should be possible to get you sorted out.
Let’s see what’s going wrong with your setup.