Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Closed
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.

@jaishallow jaishallow mentioned this issue Nov 26, 2024
@NordicPlayground NordicPlayground locked and limited conversation to collaborators Dec 20, 2024
@coderbyheart coderbyheart converted this issue into discussion #112 Dec 20, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants