rikhuijzer / ata

Ask the Terminal Anything (ATA): ChatGPT in the terminal
MIT License
274 stars 17 forks source link

Current release for aarch64 on macOS has the wrong cpu type #13

Closed mi-skam closed 1 year ago

mi-skam commented 1 year ago

Hi,

I downloaded ata-aarch64-apple-darwin and tried to run it in the Terminal and got -bash: /Users/plumps/Downloads/ata-aarch64-apple-darwin: Bad CPU type in executable as response.

Checking the file type with file, showed that:

file ~/Downloads/ata-aarch64-apple-darwin 
/Users/plumps/Downloads/ata-aarch64-apple-darwin: Mach-O 64-bit executable **x86_64**
rikhuijzer commented 1 year ago

Thanks for reporting this. I was naively hoping that it would work to compile aarch64 from a x86 system. It looks like I should either compile aarch64 from inside QEMU or use runners from somewhere else such as buildjet.com (https://github.com/actions/runner-images/issues/5631).

I'll think about a solution to this and leave the issue open for now. I think you should be able to run the ata-x86_64-unknown-linux-gnu binaries via Rosetta or build aarm64 yourself via Cargo. Let me know if any of these options are not working

mi-skam commented 1 year ago

Let me know if any of these options are not working

I let you know, that it is working, although you asked me to let you know only in the case it isn't ;)

rikhuijzer commented 1 year ago

Haha great :smiley: