lelit/pglast

Install fails on mac OS with M1 chip

kino-ma opened this issue · 10 comments

When I tried to install pglast with pip3 install pglast==1.14, the install process errors out with the following output:

# ...
    #include "port/atomics/arch-arm.h"
             ^~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    make: *** [src/pg_query_json_plpgsql.o] Error 1
#...

How can I install pglast on M1 Mac?

lelit commented

Sorry, I can be of very little help, as I do not have such kind of machine around. More over, the issue seems related to the underlying libpg_query library: I'd try to open an issue there, I guess you are not the only one facing the problem.

Thank you for your response.

Yeah, it seems to be a problem related to pg_query. I will watch your issue, and please tell me if there is anything I can be of help with!

lelit commented

Thank you for your response.

Yeah, it seems to be a problem related to pg_query. I will watch your issue, and please tell me if there is anything I can be of help with!

Please open it yourself, so you can add required details: as said, not having an M1 machine around it's difficult for me provide those.

I’m sorry. I’ll do so. Thank you.

Seems similar to pganalyze/libpg_query#72, which has been resolved.

lelit commented

Did you try with more recent v3 version?

Did you try with more recent v3 version?

WFM on mac m1 :)

lelit commented

Does that mean "works for me"? and if so, are you suggesting to close this?

Does that mean "works for me"? and if so, are you suggesting to close this?

Yes! Works for me. If you'd like you could close out the issue since we don't have a reproducer, and let @kino-ma re-open it with more information if they chose to do so.

lelit commented

Thanks!