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

ARM support #9

Open
kevinvdburgt opened this issue Jul 27, 2023 · 10 comments
Open

ARM support #9

kevinvdburgt opened this issue Jul 27, 2023 · 10 comments

Comments

@kevinvdburgt
Copy link

Are you able to also release ARM platform binaries?

@fboulnois
Copy link
Owner

fboulnois commented Jul 29, 2023

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.

@kevinvdburgt
Copy link
Author

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.

@x4m
Copy link

x4m commented Sep 17, 2023

Works on M2 fine.

@kevinvdburgt
Copy link
Author

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

@x4m
Copy link

x4m commented Sep 18, 2023

@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
Copy link

x4m commented Sep 18, 2023

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

@kevinvdburgt
Copy link
Author

kevinvdburgt commented Sep 18, 2023

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

@x4m
Copy link

x4m commented Sep 18, 2023

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

@kevinvdburgt
Copy link
Author

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.

@chicco785
Copy link

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

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