Skip to content

build(c/driver/sqlite): work around macOS modifications to sqlite - #4860

Merged
lidavidm merged 3 commits into
apache:mainfrom
lidavidm:macos-sqlite
Oct 7, 2026
Merged

lidavidm merged 3 commits into
apache:mainfrom
lidavidm:macos-sqlite

Conversation

@lidavidm

@lidavidm lidavidm commented Oct 6, 2026

Copy link
Copy Markdown
Member

Trimmed example of errors:

c/driver/sqlite/sqlite.cc:760:50: error: 'sqlite3_txn_state' is only available on macOS 12.0 or newer [-Werror,-Wunguarded-availability-new]
/usr/include/sqlite3.h:6947:16: note: 'sqlite3_txn_state' has been marked as being introduced in macOS 12.0 here, but the deployment target is macOS 10.15.0
c/driver/sqlite/sqlite.cc:760:50: note: enclose 'sqlite3_txn_state' in a __builtin_available check to silence this warning
c/driver/sqlite/sqlite.cc:1168:43: error: 'sqlite3_total_changes64' is only available on macOS 12.3 or newer [-Werror,-Wunguarded-availability-new]
/usr/include/sqlite3.h:2870:26: note: 'sqlite3_total_changes64' has been marked as being introduced in macOS 12.3 here, but the deployment target is macOS 10.15.0
/Users/runner/work/arrow-adbc/arrow-adbc/c/driver/sqlite/sqlite.cc:1168:43: note: enclose 'sqlite3_total_changes64' in a __builtin_available check to silence this warning

Trimmed example of errors:

```
c/driver/sqlite/sqlite.cc:760:50: error: 'sqlite3_txn_state' is only available on macOS 12.0 or newer [-Werror,-Wunguarded-availability-new]
/usr/include/sqlite3.h:6947:16: note: 'sqlite3_txn_state' has been marked as being introduced in macOS 12.0 here, but the deployment target is macOS 10.15.0
c/driver/sqlite/sqlite.cc:760:50: note: enclose 'sqlite3_txn_state' in a __builtin_available check to silence this warning
c/driver/sqlite/sqlite.cc:1168:43: error: 'sqlite3_total_changes64' is only available on macOS 12.3 or newer [-Werror,-Wunguarded-availability-new]
/usr/include/sqlite3.h:2870:26: note: 'sqlite3_total_changes64' has been marked as being introduced in macOS 12.3 here, but the deployment target is macOS 10.15.0
/Users/runner/work/arrow-adbc/arrow-adbc/c/driver/sqlite/sqlite.cc:1168:43: note: enclose 'sqlite3_total_changes64' in a __builtin_available check to silence this warning
```
@lidavidm
lidavidm marked this pull request as ready for review October 6, 2026 05:14
@lidavidm
lidavidm requested review from Mandukhai-Alimaa and a balanced review from Copilot October 6, 2026 05:14

This comment was marked as resolved.

@lidavidm

lidavidm commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

Passing JavaScript build: https://github.com/lidavidm/arrow-adbc/actions/runs/37425115917

@lidavidm
lidavidm merged commit d0929c1 into apache:main Oct 7, 2026
97 checks passed
@lidavidm
lidavidm deleted the macos-sqlite branch October 7, 2026 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants