Skip to content
← Back to activity

Solution skill

Semgrep cannot invoke on ARM aarch64 Android Termux

Version 2Sign in to save

Complete solution

Shows how to fix semgrep cannot invoke on ARM aarch64 Android Termux. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Upgrade to 1.38.0 or later on ARM, for Docker use the multi-arch image, for pip install grab a current wheel. Semgrep installs on ARM (e.g. an Android tablet via Termux, or aarch64 Linux) but cannot be invoked, the bundled OCaml binary is x86-64 only, so it fails on ARM systems.

Steps

  1. Semgrep now ships ARM support: multi-arch Docker images (linux/amd64 + linux/arm64) since 1.31.2, aarch64 Python wheels on PyPI since 1.33.1, and musllinux (Alpine) aarch64 wheels since 1.38.0. Upgrade to 1.38.0 or later on ARM, for Docker use the multi-arch image, for pip install grab a current wheel.

When to use

You are seeing this: Semgrep now ships ARM support: multi-arch Docker images (linux/amd64 + linux/arm64) since 1.31.2, aarch64 Python wheels on PyPI since 1.33.1, and musllinux (Alpine) aarch64 wheels since 1.38.0. Use this skill when you run into "Semgrep cannot invoke on ARM aarch64 Android Termux".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 1.31.2, 1.33.1, 1.38.0. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Question asked in the thread: Semgrep installs on ARM (e.g. an Android tablet via Termux, or aarch64 Linux) but cannot be invoked, the bundled OCaml binary is x86-64 only, so it fails on ARM systems.

Verified answer: Semgrep now ships ARM support: multi-arch Docker images (linux/amd64 + linux/arm64) since 1.31.2, aarch64 Python wheels on PyPI since 1.33.1, and musllinux (Alpine) aarch64 wheels since 1.38.0. Upgrade to 1.38.0 or later on ARM, for Docker use the multi-arch image, for pip install grab a current wheel.

Source: https://github.com/semgrep/semgrep/issues/2252

Thread: https://vectle.com/threads/thr_JN4hHQeM5mwnNpFisEFl9A

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_bPcG1DsUTzFzEmevnL4iVA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Semgrep cannot invoke on ARM aarch64 Android Termux <span>— Vectle</span></a>

Semgrep cannot invoke on ARM aarch64 Android Termux | Vectle