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

Attempt to cross-compile for arm64 Linux #6410

Draft
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

SiarheiFedartsou
Copy link
Member

@SiarheiFedartsou SiarheiFedartsou commented Oct 15, 2022

Issue

closes #6405

Tasklist

Requirements / Relations

Link any requirements here. Other pull requests this PR is based on?

@mjjbell
Copy link
Member

mjjbell commented Oct 15, 2022

This appears to have generated a public package: https://github.com/Project-OSRM/osrm-backend/pkgs/container/osrm-backend%2Frun-on-arch-project-osrm-osrm-backend-osrm-backend-ci-aarch64-ubuntu20-04

Was that the intention? The package containers are already providing ARM images.

Usually it's safer to test these CI changes in a personal fork until they're ready.

@SiarheiFedartsou
Copy link
Member Author

This appears to have generated a public package: https://github.com/Project-OSRM/osrm-backend/pkgs/container/osrm-backend%2Frun-on-arch-project-osrm-osrm-backend-osrm-backend-ci-aarch64-ubuntu20-04

Was that the intention? The package containers are already providing ARM images.

Usually it's safer to test these CI changes in a personal fork until they're ready.

Oops, it likely was generated by https://github.com/uraimo/run-on-arch-action I was trying here. Will you be able to remove it please? I don’t have permissions for that it seems.
It was successful attempt btw, but took >3h to compile OSRM from scratch(it is QEMU emulation), i.e. probably we shouldn’t go this way.

@mjjbell
Copy link
Member

mjjbell commented Oct 15, 2022

Oops, it likely was generated by https://github.com/uraimo/run-on-arch-action I was trying here. Will you be able to remove it please? I don’t have permissions for that it seems.

@DennisOSRM would you mind deleting this package? https://github.com/Project-OSRM/osrm-backend/pkgs/container/osrm-backend%2Frun-on-arch-project-osrm-osrm-backend-osrm-backend-ci-aarch64-ubuntu20-04

It was successful attempt btw, but took >3h to compile OSRM from scratch(it is QEMU emulation), i.e. probably we shouldn’t go this way.

Yes, the current container building action is using QEMU and is also very slow. Even though it only runs on releases, finding a faster alternative would be worthwhile IMO.

@SiarheiFedartsou
Copy link
Member Author

Even though it only runs on releases, finding a faster alternative would be worthwhile IMO.

AFAIK when it comes to Docker images the only alternative is to build on ARM machine.

@DennisOSRM
Copy link
Collaborator

@DennisOSRM
Copy link
Collaborator

Even though it only runs on releases, finding a faster alternative would be worthwhile IMO.

AFAIK when it comes to Docker images the only alternative is to build on ARM machine.

There's an ARM server with an actions runner already installed that I could provide.

@SiarheiFedartsou
Copy link
Member Author

SiarheiFedartsou commented Oct 16, 2022

Even though it only runs on releases, finding a faster alternative would be worthwhile IMO.

AFAIK when it comes to Docker images the only alternative is to build on ARM machine.

There's an ARM server with an actions runner already installed that I could provide.

After playing for a couple of hours with QEMU and cross compilation I can say that(it is mainly about node-osrm, not Docker image):

  1. QEMU works, but it is super slow
  2. Cross compilation it seems possible to configure, but I faced a couple of problems(in particular with TBB) which I am not sure how to solve and how much time it would take to finish with it.

So if it won’t bother you a lot it would be great to have access to this ARM server here(initially I thought that cross compilation will be simpler to configure). Thanks!

@DennisOSRM
Copy link
Collaborator

DennisOSRM commented Oct 16, 2022

@DennisOSRM would you mind deleting this package? https://github.com/Project-OSRM/osrm-backend/pkgs/container/osrm-backend%2Frun-on-arch-project-osrm-osrm-backend-osrm-backend-ci-aarch64-ubuntu20-04

Will be looking into it later tonight.

It's gone.

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

Successfully merging this pull request may close these issues.

Release linux-arm64 prebuilt binary
3 participants