Opened 3 hours ago
#71095 new defect
Error compiling GDAL with variants in MacOS Sonoma
Reported by: | news24lor | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | gdal |
Description
I did a clean installation of MacPorts in my MacBook Pro M2Pro in MacOS Sonoma and installed GDAL. The standard version of GDAL is installed without any problems, but I need the version where there are also the libraries of nedcdf, hdf4, hdf5 and others that are not present in the normal version. I executed the command:
% sudo port install gdal +hdf4 +hdf5 +netcdf +postgresql16 +proj9.
It started the compilation and the error came up immediately:
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/build' :info:build [ 6%] Built target libtiff :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/build' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/build' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/build" && /usr/bin/make -j10 -w VERBOSE=ON :info:build Exit code: 2 :error:build Failed to build gdal: command execution failed :debug:build Error code: CHILDSTATUS 59141 2 :debug:build Backtrace: command execution failed :debug:build while executing :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring" :debug:build invoked from within :debug:build "command_exec -callback portprogress::target_progress_callback build" :debug:build (procedure "portbuild::build_main" line 10) :debug:build invoked from within :debug:build "$procedure $targetname" :error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/main.log for details.
My MacPorts is a new installation with very few applications. I have also tried other variants of GDAL but the error is the same. Only the basic version of GDAL is installed, but where many important libraries are absent.
Note: See
TracTickets for help on using
tickets.