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

Release for aarch64 #3112

Open
wonboyn opened this issue Aug 2, 2022 · 34 comments · May be fixed by #3584
Open

Release for aarch64 #3112

wonboyn opened this issue Aug 2, 2022 · 34 comments · May be fixed by #3584
Milestone

Comments

@wonboyn
Copy link

wonboyn commented Aug 2, 2022

At the moment there is a release for Linux amd64 & Mac arm64 but not Linux aarch64.
Can you please make a release of the tools available for aarch64 or provide build instructions.

Thanks

@ghost ghost added the Needs: Triage 🔍 label Aug 2, 2022
@iAmBipinPaul
Copy link

This may help (Raspberry PI 4 (linux-arm/linux-arm64)
#2180 (comment)

@michaelpeng36 michaelpeng36 added this to the Backlog milestone Aug 9, 2022
@alecglen
Copy link

@michaelpeng36 Pinging to increase priority on this if possible. It is closely related to #2834 because anyone attempting to develop Functions in a VS Code devcontainer while on an M1 Mac will be blocked.

@leeford
Copy link

leeford commented Aug 23, 2022

Agree 100%. I'm in the same boat. Cannot run on a Mac M1 inside a container.

@michaelpeng36 michaelpeng36 self-assigned this Aug 24, 2022
@EverybodyKurts
Copy link

@alecglen That's exactly what I'm attempted and failed to do 😆 .

@iAmBipinPaul
Copy link

Hi @michaelpeng36 any update on this?

@jchomarat
Copy link

@michaelpeng36 Pinging to increase priority on this if possible. It is closely related to #2834 because anyone attempting to develop Functions in a VS Code devcontainer while on an M1 Mac will be blocked.

Yeap, I had to reverse to an emulated container in x64 to have the func tools ... and it is very slow now :(

@michaelpeng36
Copy link
Contributor

Hey folks, sorry for missing these pings. I am no longer the primary engineer for Core Tools, so I'm not sure when this will get fixed, but I have reached out to the new owning team to get this prioritized. @khkh-ms , would you mind taking a look?

@michaelpeng36 michaelpeng36 removed their assignment Nov 22, 2022
@johngrahamreynolds
Copy link

@khkh-ms Any update on this being triaged or assigned?

@andrew-benson
Copy link

andrew-benson commented Feb 8, 2023

I'd really like a Linux ARM64 binary for my Chromebook. There's already support for .NET SDK's and VS Code for ARM64, they are working great
I've just seen a PR for Azure CLI to support ARM64.
So it only makes sense for this to drop next, please and thank you

Update: This worked on my Chromebook with Debian bullseye Arm64 👍 It is a lengthy process to get it it built and added to PATH if you're a Linux noob like me.

This may help (Raspberry PI 4 (linux-arm/linux-arm64) #2180 (comment)

@jchomarat
Copy link

I'd really like a Linux ARM64 binary for my Chromebook. There's already support for .NET SDK's and VS Code for ARM64, they are working great I've just seen a PR for Azure CLI to support ARM64. So it only makes sense for this to drop next, please and thank you

Update: This worked on my Chromebook with Debian bullseye Arm64 👍 It is a lengthy process to get it it built and added to PATH if you're a Linux noob like me.

This may help (Raspberry PI 4 (linux-arm/linux-arm64) #2180 (comment)

azure-cli on ARM64 has been supported for a long time. But yes, it'd be awesome to have also azure-func-core-tools for aarch64

@andrew-benson
Copy link

andrew-benson commented Feb 10, 2023

I'd really like a Linux ARM64 binary for my Chromebook. There's already support for .NET SDK's and VS Code for ARM64, they are working great I've just seen a PR for Azure CLI to support ARM64. So it only makes sense for this to drop next, please and thank you
Update: This worked on my Chromebook with Debian bullseye Arm64 👍 It is a lengthy process to get it it built and added to PATH if you're a Linux noob like me.

This may help (Raspberry PI 4 (linux-arm/linux-arm64) #2180 (comment)

azure-cli on ARM64 has been supported for a long time. But yes, it'd be awesome to have also azure-func-core-tools for aarch64

I had a look for it and tried installing azure-cli, although it pulled a package and installed something - it didn't work sadly due to python issue. Which is what this PR seems to be all about, as well as closing of a feature request from 2018 to support arm64.

@snotty
Copy link

snotty commented Feb 23, 2023

+1 on an ask to include azure functions install for arm64... the new Linux VMs for Ubuntu 22.04 LTS on Ampere ARM chips is a price performance leader for servers. azure-cli works (after python fix), dotnet is supported very well, VSCode supported well... just need Azure functions!

@sinedied
Copy link
Member

sinedied commented Mar 7, 2023

Another voice here. Using dev containers on M1/M2 Mac fails because there's no Linux ARM support for Core Tools.
Since support was added for M1/M2 macs, aarch64 should also be supported.

@kurt-mueller-osumc
Copy link

It's been about 7 months since this issue was opened. Is there any movement / progress on azure function core tools adding support for aarch64?

@TheRealWaldo
Copy link

Also running into the same issue, func fails to run inside linux devcontainers when running on M1 Macs.

❯ func
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

@odidev
Copy link

odidev commented May 31, 2023

May I know, when are you planning to release it for Linux Aarch64? It would be really helpful for us if it were available for Aarch64.

@aadamsx
Copy link

aadamsx commented Jun 16, 2023

Yes why is it years before we get this basic capability, especially when the M1/M2 macs are commonly used for software development? It's not just this, MS has also not provided the capability to emulate Cosmos DB on arm64 processors, forcing developers to use cloud Cosmos for devlopment -- a very costly path. It seems MS has deprioritized Mac with Apple Silicon all around.

@mohsinonxrm
Copy link

mohsinonxrm commented Aug 10, 2023

I've just built the binaries myself, you can try from here:
https://github.com/mohsinonxrm/azure-functions-core-tools/releases/tag/4.23_arm64

Otherwise you can build it yourself as well but dotnet release -r linux-arm64

Next, you can use the azure function dotnet docker images:
https://hub.docker.com/r/mohsinonxrm/azure-functions-dotnet/tags

@EverybodyKurts
Copy link

@mohsinonxrm, can you point me to a repo that has the Dockerfile you used for these builds? I'd appreciate it :).

@jlaundry
Copy link

jlaundry commented Nov 28, 2023

Now that #915 is closed as "support for ARM 64 is now released", may we please have an update on when Linux arm64 support will also land?

As per @lucasfijen in Azure/azure-functions-python-worker#915 (comment), azure-functions-core-tools has still not landed in the binary-arm64 Packages file, which prevents using it in arm64 devcontainers.

@dan-consignly
Copy link

It's now 2024, and this issue is still open, and is causing a real headaches for our devs using Apple silicon.

@khkh-ms Can we please get an update on this?

@kurt-mueller-osumc
Copy link

My workaround for this is emulating amd64 architecture then using setting the following env variable:

ENV DOTNET_EnableWriteXorExecute=0

Turning off this environment variable (I think) turns off some sort of memory optimization and allows me to restore my dotnet projects and boot up the azure functions core tools.

@danieljurek
Copy link
Member

danieljurek commented Jan 16, 2024

azd encounters this issue when running func tools in a Linux devcontainer on Apple Silicon (M1/M2 macs). Azure/azure-dev#2593

@amih90 amih90 linked a pull request Jan 26, 2024 that will close this issue
5 tasks
@felipeaprotazio
Copy link

@michaelpeng36 Pinging to increase priority on this if possible. It is closely related to #2834 because anyone attempting to develop Functions in a VS Code devcontainer while on an M1 Mac will be blocked.

I just ran into this. Installed the tool via npm and got a rosetta error then I checked the actual code on npm and saw they do not support Linux aarch64.

@manekinekko
Copy link
Member

I can reproduce the same rosetta error on a M3 Mac.

@kurt-mueller-osumc
Copy link

It's been about a year and half since this issue was opened. Is there any way we can get an update on if/when there'll be a release for aarch64?

@iAmBipinPaul
Copy link

any ETA on this ?

@pleberre
Copy link

Same here would appreciate an ETA on this.

@EverybodyKurts
Copy link

EverybodyKurts commented Mar 28, 2024

There's a pull request, #3584, that references this issue. It's been open for 2 months without anybody reviewing it.

I suggest we bug people on that thread as well :)

@szszoke
Copy link

szszoke commented Mar 28, 2024

We ended up making our own image for the Dev Container and building the PR's branch instead of using the official binaries.

Seems to work fine so far.

@clowa
Copy link

clowa commented Apr 6, 2024

Same here - I have to somehow get the azure-functions-core-tools working in a devcontainer on apple silicon.
I'm currently using the workaround build of @mohsinonxrm via a custom Dockerfile (see below), but it doesn't feel right.

FROM node:18-bullseye

# Install azure function core tools using the workaround
RUN curl -L https://github.com/mohsinonxrm/azure-functions-core-tools/releases/download/4.23_arm64/Azure.Functions.Cli.linux-ARM64.zip -o azure-functions-cli.zip \
    && unzip azure-functions-cli.zip -d /opt/ \
    && mv /opt/Azure.Functions.Cli.linux-ARM64 /opt/azure-functions-cli \
    && ln -s /opt/azure-functions-cli/func /usr/local/bin/func \
    && chmod +x /opt/azure-functions-cli/func \
    && rm -f azure-functions-cli.zip

@ross-p-smith
Copy link

We have had a little success forcing our devcontainers to be amd64

FROM --platform=linux/amd64

https://github.com/Azure-Samples/chat-with-your-data-solution-accelerator/blob/a16c5107062573403490f01819dd5bbde1b41cb1/.devcontainer/Dockerfile#L1

@andrasg
Copy link

andrasg commented Apr 18, 2024

We have had a little success forcing our devcontainers to be amd64

I was able to run a node project this way on an M3 mac in devcontainers.

@dirkesquire
Copy link

We have had a little success forcing our devcontainers to be amd64

FROM --platform=linux/amd64

This does work somewhat, but it is SUPER SLOW. I wasn't able to install any VS Extensions for Python and Azure Functions to actually debug and work work with the code. The install would go on and on forever... (really slow)

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

Successfully merging a pull request may close this issue.