Skip to content

The tool stopped working on MacOS 15.4 #3916

Closed
hatchet-dev/hatchet
#1879
@legosx

Description

@legosx

Version

1.28.0

What happened?

Running the tool via:

go run -mod=mod github.com/sqlc-dev/sqlc/cmd/sqlc generate

Getting the log:

Relevant log output

# 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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions