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

'illegal instruction' on ARM platforms 🐛 #1167

Closed
JeremyLoy opened this issue Jan 27, 2024 · 4 comments
Closed

'illegal instruction' on ARM platforms 🐛 #1167

JeremyLoy opened this issue Jan 27, 2024 · 4 comments
Labels
Priority: Normal Minor issue impacting one or more users Type: Bug Something isn't working

Comments

@JeremyLoy
Copy link

JeremyLoy commented Jan 27, 2024

I just upgraded to 2024.1.5 via apt which contains 3ad4b73 but I'm still seeing Illegal instruction, even when just trying to run cloudflared --version.

I'm not trying to be a bother, but #1163, #1162, and #1136 are all closed

I did find #583 from several years ago that does have a solution, albeit it lets you install arm instead of armhf via the package manager.


If I scp the linux-arm binary over to my Pi, that one indeed works correctly.

~~I believe that 3ad4b73 needs to apply to armhf as well (not just arm). ~~


EDIT:

golang/go#61588

Actually, looks like this relatively recent go issue might have the solve we're looking for.

The principal issue here is whether soft/hardware floating point exists, not necessarily the ARM version. Having to specify ARM=5 was a weird workaround but now it seems to be parameterized

@JeremyLoy JeremyLoy added Priority: Normal Minor issue impacting one or more users Type: Bug Something isn't working labels Jan 27, 2024
@OakAtsume
Copy link

OakAtsume commented Jan 29, 2024

Hello, I wanted to confirm that I've also been experiencing this issue; using the latest deb/binary file(s).
where the binary seems to crash and the simply return the message Illegal instruction
Specifically armv6l arch

@joliveirinha
Copy link
Contributor

I believe this was fixed in the latest release. you should use the arm deb

@svde
Copy link

svde commented Apr 12, 2024

Issue is still there, even with the latest version.

$ cloudflared --help
Illegal instruction

$ dpkg --print-architecture
armhf

$ dpkg -l cloudflared
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii cloudflared 2024.4.0 armhf Cloudflare Tunnel daemon

A bit strange to suggest to use a different architecture.

@pew
Copy link

pew commented May 5, 2024

Not the best solution, but I managed to install cloudflared on my Raspberry Pi Zero by adding the arm architecture to the system and specifying arm as the architecture in my sources.list file:

dpkg --add-architecture arm

entry in sources.list

deb [arch=arm signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared buster main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Normal Minor issue impacting one or more users Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants