#71095 closed defect (duplicate)
gdal @3.9.2: fatal error: 'cstddef' file not found
Reported by: | news24lor | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | sonoma arm64 | Cc: | Dave-Allured (Dave Allured) |
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.
Attachments (1)
Change History (5)
comment:1 Changed 4 weeks ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | sonoma arm64 added |
---|
comment:2 Changed 4 weeks ago by Dave-Allured (Dave Allured)
Cc: | Dave-Allured added |
---|
Changed 3 weeks ago by news24lor
comment:3 Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Summary: | Error compiling GDAL with variants in MacOS Sonoma → gdal @3.9.2: fatal error: 'cstddef' file not found |
In the log I see:
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.9.2/port/cpl_alibaba_oss.cpp:32: :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.9.2/port/cpl_alibaba_oss.h:36:10: fatal error: 'cstddef' file not found :info:build 36 | #include <cstddef> :info:build | ^~~~~~~~~
See ProblemHotlist#clts16 for the solution. Duplicate of #70750.
comment:4 Changed 3 weeks ago by news24lor
Hi Ryan
The removal of an old XCode directory indicated in the [ProblemHotlist#clts16] solved the problem.
Thank you
Please attach the main.log file.