[MacPorts] #68645: gdal @3.7.3 Fails to Build using clang-17 on Lion
MacPorts
noreply at macports.org
Mon Nov 6 15:17:39 UTC 2023
#68645: gdal @3.7.3 Fails to Build using clang-17 on Lion
---------------------+--------------------
Reporter: RobK88 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: lion
Port: gdal |
---------------------+--------------------
Description changed by RobK88:
Old description:
> 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 -v 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$
> }}}
New description:
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$
}}}
--
--
Ticket URL: <https://trac.macports.org/ticket/68645#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list