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

Support for Apple Silicon - bad CPU type in executable: flashlight #199

Open
tormoseng opened this issue Feb 5, 2024 · 11 comments
Open

Comments

@tormoseng
Copy link

I'm running MacOS 14.2.1 on an Apple Mac M3. And after running curl https://get.flashlight.dev | bash, I try:

$ flashlight measure

Then, my response is

bad CPU type in executable: flashlight

Is this due to missing support of Apple Silicon?

Note: I'm able to clone your repo and run test and report as guided in the contribution.md, but it would be nice to do it with only $ flaslight

@Almouro
Copy link
Member

Almouro commented Feb 8, 2024

Hi, thanks for raising this!

Turns out so far, we've been relying on people having Rosetta installed to run the Flashlight executable as an Intel executable

But we should really have a proper arm64 executable for Apple silicon as well, we'll look into this 👍

@tormoseng
Copy link
Author

Thanks so much! It would be very appreciated 🙌

@gabimoncha
Copy link

I have an M1 Max and flashlight is working on my device

@tormoseng
Copy link
Author

I have an M1 Max and flashlight is working on my device

Without Rosetta?

@gabimoncha
Copy link

yes, installed through normal iTerm session, without Rosetta

@chanphiromsok
Copy link

it too slow when profiler on M1

@tormoseng
Copy link
Author

@gabimoncha I just now saw that you wrote iTerm session, so I tried to get and run flashlight on iTerm (and not the Mac terminal), but it still fails with the same message. I'm on M3 if that is different from M1?

@Sumedh-k
Copy link

Sumedh-k commented Sep 16, 2024

As a workaround you can run it using Rosetta with this command.

arch -x86_64 flashlight measure

To install Rosetta use this command.

softwareupdate --install-rosetta --agree-to-license

@tormoseng
Copy link
Author

Last update from me. I'm now using iTerm with Rosetta to run the flashlight commands, while my regular mac terminal runs as before. It works - even though supporting Apple Silicon would be nice!

@Randall71
Copy link

@Almouro This problem deserves to be pinned

@Almouro Almouro changed the title Support for Apple Silicon Support for Apple Silicon - bad CPU type in executable: flashlight Oct 3, 2024
@Almouro Almouro pinned this issue Oct 3, 2024
@Almouro
Copy link
Member

Almouro commented Oct 3, 2024

Good point @Randall71! Still not fixed on our side, it's just a bit annoying since we have to codesign the executable now, but it's underway

In the meantime I've pinned the issue and linked @Sumedh-k's helpful comment to the install docs in https://docs.flashlight.dev/

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

6 participants