pg_uuidv7 icon indicating copy to clipboard operation
pg_uuidv7 copied to clipboard

ARM support

Open kevinvdburgt opened this issue 1 year ago • 10 comments

Are you able to also release ARM platform binaries?

kevinvdburgt avatar Jul 27 '23 21:07 kevinvdburgt

Cross-compilation is a bit of a pain. It should be pretty easy to generate the ARM platform binaries on your own using the accompanying Dockerfile though.

fboulnois avatar Jul 29 '23 14:07 fboulnois

It should be easier using GitHub workflows to build those binaries for various platforms. However, using the dockerfile on the platform works fine too :-)

If you want, I could submit a PR for the workflow.

kevinvdburgt avatar Aug 02 '23 11:08 kevinvdburgt

Works on M2 fine.

x4m avatar Sep 17 '23 06:09 x4m

@x4m Any change you're running it with Rosetta? If not, how do you run PG on the M2?

kevinvdburgt avatar Sep 18 '23 09:09 kevinvdburgt

@kevinvdburgt git clone --depth=5 --single-branch --branch=master https://github.com/postgres/postgres cd postgres ./configure --prefix=$PWD --enable-depend make -j10 > /dev/null make check

I have a video about compiling Postgres on your machine: https://www.youtube.com/watch?v=rihfAnd_leM

x4m avatar Sep 18 '23 10:09 x4m

to run this extensions you will need few more commands make install # install postgres from sources cd contrib git clone https://github.com/fboulnois/pg_uuidv7 cd pg_uuidv7 make install export PATH=$PATH:$PWD/bin # this will export pg_config make install

x4m avatar Sep 18 '23 10:09 x4m

@x4m ah, this issue isn't about compiling but the prebuild binaries in the releases 😁

kevinvdburgt avatar Sep 18 '23 11:09 kevinvdburgt

What's the point in releasing binaries? there is an infinite number of OS+Arch combinations...

x4m avatar Sep 18 '23 11:09 x4m

It's fine for me and my team as we host our own binaries for now. We would like to prevent that members have to install all sorts of build tools.

kevinvdburgt avatar Sep 18 '23 11:09 kevinvdburgt

have you thought about using dockerx to make the build in github and extract the outcome from the images?

chicco785 avatar Mar 20 '24 07:03 chicco785