error building on m1 mac
sfusco-kryptowire opened this issue · comments
sfusco-kryptowire commented
⎆ brew reinstall FiloSottile/musl-cross/musl-cross --with-x86_64
==> Fetching dependencies for filosottile/musl-cross/musl-cross: make
==> Fetching make
==> Downloading https://ghcr.io/v2/homebrew/core/make/manifests/4.4.1
######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/make/blobs/sha256:2cf9b5846e07363681d41819a13d2d9a993a69dd5090bbfae3da182915e777b9
#=#=- # # #=O#- # # -#O=- # # # ######################################################################################################################################################################################################################################################### 100.0%
==> Fetching filosottile/musl-cross/musl-cross
==> Downloading https://github.com/richfelker/musl-cross-make/commit/d6ded50d.patch?full_index=1
######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://github.com/richfelker/musl-cross-make/commit/a54eb56f.patch?full_index=1
######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://github.com/richfelker/musl-cross-make/commit/8d34906.patch?full_index=1
######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.88.tar.xz
######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://ftp.gnu.org/gnu/mpfr/mpfr-4.0.2.tar.bz2
######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://ftp.gnu.org/gnu/gmp/gmp-6.1.2.tar.bz2
######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://www.musl-libc.org/releases/musl-1.2.0.tar.gz
#=#=- # # #=O#- # # ######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://ftp.gnu.org/gnu/binutils/binutils-2.33.1.tar.bz2
######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=3d5db9ebe860
#=#=- # # #=O#- # # -#O=- # # #
==> Downloading https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.xz
######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://downloads.sourceforge.net/project/libisl/isl-0.21.tar.bz2
==> Downloading from https://phoenixnap.dl.sourceforge.net/project/libisl/isl-0.21.tar.bz2
#=#=- # # #=O#- # # ######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://github.com/richfelker/musl-cross-make/archive/refs/tags/v0.9.9.tar.gz
==> Downloading from https://codeload.github.com/richfelker/musl-cross-make/tar.gz/refs/tags/v0.9.9
#=#=- # # #=O#- # #
==> Reinstalling filosottile/musl-cross/musl-cross --without-x86_64
==> Installing dependencies for filosottile/musl-cross/musl-cross: make
==> Installing filosottile/musl-cross/musl-cross dependency: make
==> Downloading https://ghcr.io/v2/homebrew/core/make/manifests/4.4.1
Already downloaded: /Users/sfusco/Library/Caches/Homebrew/downloads/c257c9c7d43cce925f3c1cfbc6e65af3fcfa9f7c60035ca02055f54bde5caec9--make-4.4.1.bottle_manifest.json
==> Pouring make--4.4.1.arm64_sonoma.bottle.tar.gz
🍺 /opt/homebrew/Cellar/make/4.4.1: 16 files, 1.3MB
==> Installing filosottile/musl-cross/musl-cross --without-x86_64
==> Patching
==> Applying d6ded50d.patch
patching file 'patches/musl-1.2.0/0001-broken_arm_vdso.diff'
==> Applying a54eb56f.patch
patching file Makefile
==> Applying 8d34906.patch
patching file 'patches/gcc-10.3.0/0007-darwin-aarch64-config.diff'
patching file 'patches/gcc-10.3.0/0008-darwin-aarch64-self-host-driver.patch'
patching file 'patches/gcc-6.5.0/0026-darwin-aarch64-config.diff'
patching file 'patches/gcc-6.5.0/0027-darwin-aarch64-self-host-driver.diff'
patching file 'patches/gcc-6.5.0/0028-darwin-align-pch_address_space-to-16k.patch'
patching file 'patches/gcc-7.5.0/0023-darwin-aarch64-config.diff'
patching file 'patches/gcc-7.5.0/0024-darwin-aarch64-self-host-driver.patch'
patching file 'patches/gcc-7.5.0/0025-darwin-align-pch_address_space-to-16k.patch'
patching file 'patches/gcc-8.5.0/0022-darwin-aarch64-config.diff'
patching file 'patches/gcc-8.5.0/0023-darwin-aarch64-self-host-driver.patch'
patching file 'patches/gcc-8.5.0/0024-darwin-align-pch_address_space-to-16k.patch'
patching file 'patches/gcc-9.2.0/0020-darwin-aarch64-config.diff'
patching file 'patches/gcc-9.2.0/0021-darwin-aarch64-self-host-driver.patch'
patching file 'patches/gcc-9.2.0/0022-darwin-align-pch_address_space-to-16k.patch'
patching file 'patches/gcc-9.4.0/0020-darwin-aarch64-config.diff'
patching file 'patches/gcc-9.4.0/0021-darwin-aarch64-self-host-driver.patch'
==> Downloading https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.88.tar.xz
Already downloaded: /Users/sfusco/Library/Caches/Homebrew/downloads/f5440cf7cd8df600bbbc7888d7bfc745681f3e3a3bfa5e1fe0e48c03b54781d0--linux-4.19.88.tar.xz
==> Downloading https://ftp.gnu.org/gnu/mpfr/mpfr-4.0.2.tar.bz2
Already downloaded: /Users/sfusco/Library/Caches/Homebrew/downloads/7ca7bfe4233494307c2c9b60b79304b8c35b79989d947bcb99eab79a01705eee--mpfr-4.0.2.tar.bz2
==> Downloading https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
Already downloaded: /Users/sfusco/Library/Caches/Homebrew/downloads/f46049bc3c7cd6b6d6fd2051c98794ba4977ef0eaa361b6fd3c10b95f9d907f0--mpc-1.1.0.tar.gz
==> Downloading https://ftp.gnu.org/gnu/gmp/gmp-6.1.2.tar.bz2
Already downloaded: /Users/sfusco/Library/Caches/Homebrew/downloads/ef6f10b9f951265fe9fca7e4a3f31538df4093f745837530e75c9a88954fe135--gmp-6.1.2.tar.bz2
==> Downloading https://www.musl-libc.org/releases/musl-1.2.0.tar.gz
Already downloaded: /Users/sfusco/Library/Caches/Homebrew/downloads/f24a4c691121f7b49cb43e4106192242544447ea7990bb8172ad0509d02c4469--musl-1.2.0.tar.gz
==> Downloading https://ftp.gnu.org/gnu/binutils/binutils-2.33.1.tar.bz2
Already downloaded: /Users/sfusco/Library/Caches/Homebrew/downloads/742cf2bb3679b7916196d01dd3ea8e87dbafbd6b128d657eccffa1921cbff79b--binutils-2.33.1.tar.bz2
==> Downloading https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=3d5db9ebe860
Already downloaded: /Users/sfusco/Library/Caches/Homebrew/downloads/53c623e9fd9ebac8516b8d880b2a1f0e9c9ef2aa08be18ec30d173ba4ca7d1f2--config.sub
==> Downloading https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.xz
Already downloaded: /Users/sfusco/Library/Caches/Homebrew/downloads/d826388c1d62d3837abf5966bfcb52111c0fea536be81417ab4718ba089422f1--gcc-9.2.0.tar.xz
==> Downloading https://downloads.sourceforge.net/project/libisl/isl-0.21.tar.bz2
Already downloaded: /Users/sfusco/Library/Caches/Homebrew/downloads/a9dd57e80e483bb29f553e2c596e73ffb5bf92049f5c09d2d2801bc92287ea84--isl-0.21.tar.bz2
==> /opt/homebrew/opt/make/bin/gmake install TARGET=aarch64-linux-musl
Last 15 lines from /Users/sfusco/Library/Logs/Homebrew/musl-cross/01.gmake:
6 warnings generated.
7 warnings generated.
9 warnings generated.
25 warnings generated.
23 warnings generated.
29 warnings generated.
18 warnings generated.
17 warnings generated.
rm gcc.pod
gmake[3]: Leaving directory '/private/tmp/musl-cross-20240315-69038-ubrbo4/musl-cross-make-0.9.9/build/local/aarch64-linux-musl/obj_gcc/gcc'
gmake[2]: *** [Makefile:4361: all-gcc] Error 2
gmake[2]: Leaving directory '/private/tmp/musl-cross-20240315-69038-ubrbo4/musl-cross-make-0.9.9/build/local/aarch64-linux-musl/obj_gcc'
gmake[1]: *** [Makefile:222: obj_gcc/gcc/.lc_built] Error 2
gmake[1]: Leaving directory '/private/tmp/musl-cross-20240315-69038-ubrbo4/musl-cross-make-0.9.9/build/local/aarch64-linux-musl'
gmake: *** [Makefile:183: install] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/FiloSottile/homebrew-musl-cross/issues
☠ 1 231s
Ares Andrew commented
Same issue on M3 pro
langs commented
Same issue on M1 pro
long568 commented
Same issue on M2 pro
Ares Andrew commented
For anyone who is stilling wrestling with this issue, here's an alternative, which is more comprehensive.
abdulazizibrahim commented
On Apple Silicon Macs, install without specifying any flags. It worked for me.