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

Binaries for arm64 #2

Closed
noplanman opened this issue May 18, 2017 · 17 comments
Closed

Binaries for arm64 #2

noplanman opened this issue May 18, 2017 · 17 comments
Assignees

Comments

@noplanman
Copy link

Would be nice to have a binary built for arm64 devices (e.g. Pine64) 😊

@bauerj
Copy link
Owner

bauerj commented May 18, 2017

Sure, I'll look into it 👍

@bauerj bauerj self-assigned this May 19, 2017
@bauerj
Copy link
Owner

bauerj commented Jun 9, 2017

It seems like the setup I'm using for armv5/armv6 won't work with arm64. Can you tell me what glibc version you are using?

ldd --version

@noplanman
Copy link
Author

# ldd --version
ldd (Debian GLIBC 2.19-18+deb8u7) 2.19

Is that all you need?

@bauerj
Copy link
Owner

bauerj commented Jun 9, 2017

Yes, thank you!

@noplanman
Copy link
Author

@bauerj Any progress on this? 😇

@bauerj
Copy link
Owner

bauerj commented Apr 19, 2018

Sorry, I know it has been nearly a year without any progress but this seems to be more complicated than I initially thought. The build process randomly crashes and I couldn't find out why.

@noplanman
Copy link
Author

Do you have your build scripts public somewhere so I can also give it a try?
I have very little experience, but sometimes it helps to have another set of eyes 😇

@kBite
Copy link

kBite commented Apr 20, 2018

Have you looked at SynoCommunity's approach? There is some progress in building a borgbackup spk package: SynoCommunity/spksrc#2351

@noplanman
Copy link
Author

@kBite Awesome, thanks for sharing that! Would love to see it running on my DS too 😃

Was already prepared to simply use sshfs to make the link, but a "native" package would be all too perfect!

@bauerj
Copy link
Owner

bauerj commented Apr 20, 2018

Hey,

sure, I can upload the build scripts (although I need to clean them up a bit first). However, you would have to manually install Debian (or Raspbian) wheezy into a QEMU VM in order to use them. I guess for arm64 some newer OS could be used but that would raise the minimum supported glibc/kernel version.

I don't have any documentation how I installed the VMs but there are some instructions on the internet.

@noplanman
Copy link
Author

@bauerj That would be much appreciated, thanks 👌

@bauerj
Copy link
Owner

bauerj commented Apr 20, 2018

Alright, I checked in the scripts but be warned that this requires a significant amount of work to set up 😕

@noplanman
Copy link
Author

noplanman commented Apr 21, 2018

@kBite You mentioned that you have a DS218play, which is armv8, not arm64.

Have you tried just getting the borg v6 binary from here? Not sure if it works for v8 too though.
https://borg.bauerj.eu/

(or do you have some other arm64 server around too?)

@kBite
Copy link

kBite commented Apr 23, 2018

rtd1296 (ARMv8.0-A) has 4x Cortex-A53 which support aarch64 (https://developer.arm.com/products/processors/cortex-a/cortex-a53). Refering to https://stackoverflow.com/a/47274698 arm64 and aarch64 seem synonymous. armv8, aarch64, and arm64 are also handled as synonymous by FreeBSD:

FreeBSD/arm64 is the FreeBSD port to the 64-bit ARM architecture, also known as AArch64 or ARMv8.

I don't have other arm64 hardware - does RasPi3 with A53 cores count ;)?

I never hassled with cross-compilation. Is there any difference between armv8, aarch64, and arm64 when building binaries?

@noplanman
Copy link
Author

noplanman commented Apr 23, 2018

Right, thanks for your response!

Clearly my ignorance got the best of me, proving again that assumptions aren't good 😁

Looking at the links you've sent me, it just showed me how little I know about all this architecture stuff and how vast it all is!

(At this point a huge "Thanks!" to everybody who does the leg work to make it all so much more pleasant for us users 🙏)

Back to the topic:

You should be able to get the official SynoCommunity Borg package.

You'll need to build your own Python 3 package though, as it's not updated by SynoCommunity yet, have a look here:
borgbackup/borg#719 (comment)

@noplanman
Copy link
Author

I'm obviously very new to this building/compiling stuff and thus enter with a certain "noobz-brain".

@bauerj Have you tried this docker image for building by any chance?
https://hub.docker.com/r/arm64v8/python/

@noplanman
Copy link
Author

Closing here due to https://git.feneas.org/noplanman/borg-binary-builder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants