Thanks. In the future, please Cc relevant port maintainers.
This occurs at line 5108 in the log. The offending compilation line is just above it; I’m not going to quote it here because it’s 128,551 characters long.
:info:build Undefined symbols for architecture x86_64:
:info:build "_sqlite3_column_table_name", referenced from:
:info:build OGRSQLiteSelectLayer::OGRSQLiteSelectLayer(OGRSQLiteDataSource*, CPLString, sqlite3_stmt*, int, int) in ogrsqliteselectlayer.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[1]: *** [libgdal.la] Error 1