wdecoster / chopper

MIT License
155 stars 13 forks source link

Not running on aarch64 #22

Closed ImagoXV closed 10 months ago

ImagoXV commented 10 months ago

Hi there, I'm trying to run chopper on an aarch64 architecture from release. It works perfectly fine on my amd64.

Is there any way to make it works on an aarch64 ?

Thanks for your time

Arthur Cousson

wdecoster commented 10 months ago

Have you tried a musl build?

ImagoXV commented 10 months ago

No, I did not, that's my first interaction with aarch64.

I'll give it a try and keep you updated

ImagoXV commented 10 months ago

It's not working neither

$ ./chopper 
-bash: ./chopper: cannot execute binary file: Exec format error
$ file chopper
chopper: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0602da3ae9dd9e39879c74880e9f70ac449e4278, with debug_info, not stripped
wdecoster commented 10 months ago

Okay, I don't have any experience using aarch64, but I will look into this

ImagoXV commented 10 months ago

Maybe if you provide the source code, I can compile it for aarch64. But I'm not too familiar with that neither.

I saw that I might be able to run it with

qemu-system-x86_64

But I did not try yet

I just tried it

This does not look like a viable option to be honest. You need a disk image to run the exec into a system emulation.

wdecoster commented 10 months ago

Maybe if you provide the source code, I can compile it for aarch64. But I'm not too familiar with that neither.

Well the source code is in the repository. But I will try to cross compile it...

ImagoXV commented 10 months ago

Ok I successfully compiled it

https://github.com/jguhlin/minimap2-rs/issues/49#issuecomment-1903784484

Maybe we share the exec ?

wdecoster commented 10 months ago

If you have a chopper binary for aarch64 I could add it to the releases :-)

ImagoXV commented 10 months ago

Yes, here we are

https://github.com/ImagoXV/chopper_aarch64

It's on the repo root

Thanks for everything !

Arthur

wdecoster commented 10 months ago

Has been added to https://github.com/wdecoster/chopper/releases/tag/v0.7.0 Thanks! You may have to do this again for future releases unless I figure out how to do that on my system.

ImagoXV commented 10 months ago

Ok, contact me, we'll find a way