-
Notifications
You must be signed in to change notification settings - Fork 873
The tool stopped working on MacOS 15.4 #3916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same error as well |
Set But the static declaration is causing issues:
|
I was able to get around this by adding this to my zshrc
|
This is a temporary solution that worked for me until it gets fixed. |
sqlc from |
Not sure if this helps. I stumbled across this issue while looking for a solution to the same problem with the ruby gem |
If I understand correctly, we need the |
Yep! New release was supposed to go out last week, but I'm glad I waited for pg_query_go 6.1.0 to land |
The upgrade to pg_query_go 6.1.0 has been merged. For those that can, please build from main and let me know if your issue is fixed. |
The upgraded |
@kyleconroy @connor15mcc I see that sqlc still requires an older pg_query_go. I guess we need to wait until newer version of sqlc is available as well?
|
@vladmiller good catch, I need to run |
@vladmiller the latest main should not include any references to |
The current HEAD (b4f2571) works for me on macos 15.4. |
@kyleconroy yay! Latest In docs, one way to install sqlc is
and latest points to the version that was released in January. I'd suggest maybe do a GH release as well or update the docs. And, the side note – thank you for building sqlc! The thing is amazing and has helped a lot! |
painfully, if you're stuck on 15.2 then this seems to happen;
I'll make sure my SDK is up to date. |
latest does do what you think it does. That’s the latest tagged release. If
you change it to main I believe it works as intended.
…On Tue, Apr 15, 2025 at 12:28 Nathan Ollerenshaw ***@***.***> wrote:
painfully, if you're stuck on 15.2 then this seems to happen;
go install ***@***.***
# github.com/pganalyze/pg_query_go/v5/parser
src_port_snprintf.c:374:1: error: static declaration of 'strchrnul' follows non-static declaration
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_string.h:198:9: note: previous declaration is here
src_port_snprintf.c:438:27: warning: 'strchrnul' is only available on macOS 15.4 or newer [-Wunguarded-availability-new]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_string.h:198:9: note: 'strchrnul' has been marked as being introduced in macOS 15.4 here, but the deployment target is macOS 15.0.0
src_port_snprintf.c:438:27: note: enclose 'strchrnul' in a __builtin_available check to silence this warning
I'll make sure my SDK is up to date.
—
Reply to this email directly, view it on GitHub
<#3916 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAIQTJILVRNV454PUPNQSD2ZVMVNAVCNFSM6AAAAAB2JOQCDKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMBXGI3DGNZRGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
*matjam* left a comment (sqlc-dev/sqlc#3916)
<#3916 (comment)>
painfully, if you're stuck on 15.2 then this seems to happen;
go install ***@***.***
# github.com/pganalyze/pg_query_go/v5/parser
src_port_snprintf.c:374:1: error: static declaration of 'strchrnul' follows non-static declaration
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_string.h:198:9: note: previous declaration is here
src_port_snprintf.c:438:27: warning: 'strchrnul' is only available on macOS 15.4 or newer [-Wunguarded-availability-new]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_string.h:198:9: note: 'strchrnul' has been marked as being introduced in macOS 15.4 here, but the deployment target is macOS 15.0.0
src_port_snprintf.c:438:27: note: enclose 'strchrnul' in a __builtin_available check to silence this warning
I'll make sure my SDK is up to date.
—
Reply to this email directly, view it on GitHub
<#3916 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAIQTJILVRNV454PUPNQSD2ZVMVNAVCNFSM6AAAAAB2JOQCDKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMBXGI3DGNZRGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Who has the power to cut a new release? We're on v1.28.0 which is still broken and would rather update to a real release rather than main |
That's me! Been busy at work but trying to create a release in the next two days. Thanks for understanding. |
Alright, sadly the release workflow is borked right now due to some Apple code signing issues. I'm going to be traveling, so I'm not sure a release will happen in the next 10 days. I could tag a new release and not provide binaries, but that would cause more confusion. In the meantime, please install from
|
1.29.0 is out! |
Thanks so much! |
Version
1.28.0
What happened?
Running the tool via:
Getting the log:
Relevant log output
Database schema
Any schema
SQL queries
Any queries
Configuration
Fails even without any config
Playground URL
I think it's clear without it
What operating system are you using?
MacOS 15.4
What database engines are you using?
Postgres
What type of code are you generating?
Go code
The text was updated successfully, but these errors were encountered: