Skip to content
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

Has an issue with the parser package after update to MacOS 13 #66

Closed
TruongNguyenLava opened this issue Nov 3, 2022 · 5 comments
Closed

Comments

@TruongNguyenLava
Copy link

TruongNguyenLava commented Nov 3, 2022

System:
Machine: Macbook Pro M1
Go version: 1.19.3
OS: MacOS 13
pg_query_go: 1.0.3

Summary
I don't understand why there is an error from XCode, maybe this error is related to MacOS 13.
I have googled to try to solve this but no success, do you have any ideas?

image

@ulfmagnetics
Copy link

The underlying issue appears to be a conflict between clang v14.0.0 and the sqlc module -- see this issue. I was able to work around it by installing the Command Line Tools for XCode 13.4 from here, though I'm still on Monterey and I'm not sure if this will still work for Ventura.

@TruongNguyenLava
Copy link
Author

Thank you @ulfmagnetics, but I can't install Command Line Tools for XCode 13.4 on MacOS 13.

image

@lfittl
Copy link
Member

lfittl commented Nov 4, 2022

@TruongNguyenLava This might be the same issue that was fixed in version 2.2.0 (see #64 and pganalyze/libpg_query#156)

Are you seeing this with sqlc, or something else? (I've opened up a PR on sqlc to get the library dependency updated: sqlc-dev/sqlc#1921)

@TruongNguyenLava
Copy link
Author

Thanks @lfittl everything works perfectly in 2.2.0

@funny-falcon
Copy link

The problem is in bison: native MacOS bison is very old (2.2). It defines a lot of garbage macroses before include directives.

Instalation of bison 3.8.2 with brew fixed compilation.

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

No branches or pull requests

4 participants