Opened 4 years ago

Closed 4 years ago

#62080 closed defect (fixed)

gdal @3.2.1_0+gcc9+postgresql13+proj7: Failed to build

Reported by: nhchan Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: Dave-Allured (Dave Allured)
Port: gdal

Description

System:

  • macOS 11.1 Big Sur
  • MacPorts 2.6.4
  • Xcode 12.3

Steps to reproduce:

sudo port -f clean gdal
sudo port install gdal

This resulted in the following error during the ---> Building gdal stage:

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 to report a bug.
Error: Processing of port gdal failed

The main.log file is attached.

Thank you!

Attachments (2)

main.log (2.7 MB) - added by nhchan 4 years ago.
main.2.log (23.3 KB) - added by nhchan 4 years ago.
main.log (new)

Change History (10)

Changed 4 years ago by nhchan

Attachment: main.log added

comment:1 Changed 4 years ago by Veence (Vincent)

This was probably caused by a KML related option enabled by default that I overlooked. I committed an update, please sync and try again in a few hours.

comment:2 Changed 4 years ago by ericlindsey (Eric Lindsey)

I am getting a similar error today. The message I get occurs here:

:debug:configure system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.2.1" && ./configure --prefix=/opt/local --with-local=yes --with-libz=yes --with-zstd=yes --without-liblzma --with-png=yes --with-libtiff=internal --with-geotiff=internal --with-jpeg=internal --with-charls=yes --with-gif=yes --with-qhull=yes --with-pam --with-sqlite3=/opt/local --with-spatialite=/opt/local --with-curl=/opt/local/bin/curl-config --with-geos=/opt/local/bin/geos-config --with-expat=/opt/local --with-webp=/opt/local --with-xml2=yes --without-grass --without-libgrass --without-cfitsio --without-ogdi --without-exr --without-mongocxx --without-mongocxxv3 --without-fme --without-libkml --disable-driver-kmlsuperoverlay  --without-hdf4 --without-jasper --without-ecw --without-kakadu --without-mrsid --without-jp2mrsid --without-msg --without-bsb --without-oci --without-grib --without-mysql --without-ingres --without-xerces --without-odbc --without-idb --without-sde --without-opencl --without-perl --without-python --without-poppler --mandir=/opt/local/share/man --with-libjson-c=internal --with-cpp14 --with-hdf5=/opt/local --with-netcdf=/opt/local --with-openjpeg=/opt/local/include/openjpeg-2.3 --with-pg=yes --with-proj=/opt/local/lib/proj7 
:info:configure configure: error: invalid feature name: driver-kmlsuperoverlay

Changed 4 years ago by nhchan

Attachment: main.2.log added

main.log (new)

comment:3 Changed 4 years ago by nhchan

I did a port sync and then retried. I still got the same "failed to build" error.

I made another attempt after sudo port -f clean gdal, and got the same result.

I have attached the latest main.log. Thanks!

comment:4 Changed 4 years ago by tsilva451

Please see https://trac.macports.org/ticket/62089. I believe I found the problem (with help from aaschwanden).

comment:5 Changed 4 years ago by nhchan

Thank you!

I can confirm that the installation was successful after replacing the space character between --disable-driver-kmlsuperoverlay and the trailing newline escape character \ (on line 101 for me) in the Portfile found in the directory:

/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/gis/gdal

on my machine.

comment:6 Changed 4 years ago by Veence (Vincent)

Darn. I’m currently finishing a new Portfile, so this should be just a bad memory in a few hours. Blame the French keyword. The \ character is accessible only by using the key combination OPTION+SHIFT+:, and OPTION+Space gives an unbreakable space, which totally looks the same as a normal one. So it’s enough to hit the OPTION key a bit too soon to ruin a whole line :/

Version 0, edited 4 years ago by Veence (Vincent) (next)

comment:7 Changed 4 years ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added

comment:8 Changed 4 years ago by Veence (Vincent)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.