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

Building for macOS (ARM) Fails; Suggest Utilizing GitHub Actions M1 Runners #109

Open
Alec-Bailey opened this issue Nov 9, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@Alec-Bailey
Copy link

Alec-Bailey commented Nov 9, 2024

Description:

Building the Docker image for macOS on ARM architecture encounters failures. To address this amd64 specific packages should be replaced with their arm64 counterparts when arm64 is passed as a build arg. Additionally going forward GitHub Actions’ M1 macOS runner are now publicly available and can be leveraged. (GitHub Changelog)

Steps to Reproduce:

1.	Attempt to build the Docker image on a macOS ARM machine.
2.	Observe the build process failing.

Expected Behavior:

The Docker image should build successfully on macOS ARM architecture.

Actual Behavior:

The build process fails on macOS ARM architecture.

11.45 E: Package 'gcc-multilib' has no installation candidate
------

 1 warning found (use docker --debug to expand):
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
Dockerfile:16
--------------------
  15 |     # python 3.8 is installed by toolchain manager hence older version of libffi is required
  16 | >>> RUN <<EOT
  17 | >>>     apt-get -y update
  18 | >>>     apt-get -y upgrade
  19 | >>>     apt-get -y install wget unzip clang-format gcc-multilib make libffi7
  20 | >>>     apt-get -y clean
  21 | >>>     rm -rf /var/lib/apt/lists/*
  22 | >>> EOT
  23 |     
--------------------
ERROR: failed to solve: process "/bin/bash -euxo pipefail -c     apt-get -y update\n    apt-get -y upgrade\n    apt-get -y install wget unzip clang-format gcc-multilib make libffi7\n    apt-get -y clean\n    rm -rf /var/lib/apt/lists/*\n" did not complete successfully: exit code: 100

Same as in issue #107

Proposed Solution:

  • Resolve amd64 package incompatibilities in Dockerfile.

  • Update the GitHub Actions workflow to utilize M1 macOS runners

@coderbyheart coderbyheart added the help wanted Extra attention is needed label Nov 10, 2024
@coderbyheart
Copy link
Member

I'm happy to review a PR that addresses this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants