Opened 13 months ago
Last modified 4 months ago
#68645 new defect
gdal @3.7.3 Fails to Build using clang-17 on Lion — at Version 5
Reported by: | RobK88 | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | lion mountainlion | Cc: | Veence (Vincent), nilason (Nicklas Larsson), RobK88 |
Port: | gdal |
Description (last modified by RobK88)
I am unable to upgrade gdal
on Lion.
bash-3.2$ sudo port clean gdal ---> Cleaning gdal bash-3.2$ bash-3.2$ sudo port -v upgrade gdal ---> Computing dependencies for gdal. ---> Fetching archive for gdal etc etc [ 9%] Building C object frmts/gtiff/libtiff/CMakeFiles/libtiff.dir/tif_jpeg_12.c.o cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/build/frmts/gtiff/libtiff && /opt/local/bin/clang-mp-17 -DDONT_DEPRECATE_SPRINTF -DGDAL_COMPILATION -DHOST_FILLORDER=FILLORDER_LSB2MSB -DJPEG_DUAL_MODE_8_12 -DJPEG_SUPPORT -DLERC_SUPPORT -DLIBDEFLATE_SUPPORT -DOJPEG_SUPPORT -DPIXARLOG_SUPPORT -DRENAME_INTERNAL_LIBTIFF_SYMBOLS -DWEBP_SUPPORT -DZIP_SUPPORT -DZSTD_SUPPORT -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.7.3/port -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/build/port -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/build/frmts/jpeg/libjpeg12 -pipe -Os -I/opt/local/include/LegacySupport -DNDEBUG -I/opt/local/include -I/opt/local/include/LegacySupport -fvisibility=hidden -arch x86_64 -mmacosx-version-min=10.7 -fPIC -Wall -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wshorten-64-to-32 -Wshadow -Wmissing-include-dirs -Wformat -Werror=format-security -Wno-format-nonliteral -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -std=gnu99 -MD -MT frmts/gtiff/libtiff/CMakeFiles/libtiff.dir/tif_jpeg_12.c.o -MF CMakeFiles/libtiff.dir/tif_jpeg_12.c.o.d -o CMakeFiles/libtiff.dir/tif_jpeg_12.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.7.3/frmts/gtiff/libtiff/tif_jpeg_12.c 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' [ 9%] Built target libtiff 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' make: *** [all] Error 2 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' 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 -j4 -w VERBOSE=ON Exit code: 2 Error: Failed to build gdal: command execution failed Error: 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. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
The workaround is to build using clang-16
. It looks like gdal
is yet another port that will not compile using clang-17
on Lion.
sudo port upgrade gdal configure.compiler=macports-clang-16 ---> Computing dependencies for gdal. ---> Fetching archive for gdal etc etc ---> Cleaning gdal ---> Removing work directory for gdal ---> Scanning binaries for linking errors ---> No broken files found. ---> No broken ports found. bash-3.2$ port installed gdal The following ports are currently installed: gdal @3.7.2_1+postgresql15+proj9 gdal @3.7.3_0+postgresql15+proj9 (active) bash-3.2$
Change History (6)
Changed 13 months ago by RobK88
comment:1 Changed 13 months ago by RobK88
Cc: | RobK88 added |
---|
comment:2 Changed 13 months ago by RobK88
Port: | gdal added; gdak removed |
---|
comment:3 Changed 13 months ago by RobK88
Summary: | gdal @3.7.3 Fails to Build on Lion → gdal @3.7.3 Fails to Build using clang-17 on Lion |
---|
comment:4 Changed 13 months ago by nilason (Nicklas Larsson)
comment:5 Changed 13 months ago by RobK88
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.
The same problem does occur with 10.8, Mountain Lion, too.