Skip to content

Commit 8a2fef2

Browse files
author
Claude
committed
Fix Linux aarch64 build failure in run-on-arch-action
The aarch64 build was failing with "cannot compute suffix of object files: cannot compile" error. This was due to improper package installation within the emulated environment. Changes: - Use separate 'install' parameter for package installation - Add 'githubToken' to avoid Docker rate limits - Add 'file' package needed for verification step - Simplify debug output (gcc --version instead of gcc -v) The 'install' parameter ensures packages are properly installed before the build script runs in the emulated aarch64 environment.
1 parent 49ced88 commit 8a2fef2

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,14 @@ jobs:
6666
with:
6767
arch: aarch64
6868
distro: ubuntu22.04
69+
githubToken: ${{ github.token }}
70+
install: |
71+
apt-get update -q -y
72+
apt-get install -q -y build-essential automake libtool file
6973
run: |
70-
apt-get update
71-
apt-get -y install build-essential automake libtool
7274
pwd
73-
uname
74-
uname -m
75-
gcc -v
75+
uname -a
76+
gcc --version
7677
# Generate build system
7778
libtoolize --copy --force --quiet
7879
aclocal

0 commit comments

Comments
 (0)