FiloSottile / homebrew-musl-cross

Homebrew Formula for static-friendly musl-based GCC macOS-to-Linux cross-compilers
https://blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/
ISC License
576 stars 47 forks source link

Stuck on step ==> /usr/local/opt/make/bin/gmake install TARGET=x86_64-linux-musl #15

Closed koddr closed 4 years ago

koddr commented 4 years ago

My OS: macOS 10.14.6

After run brew install FiloSottile/musl-cross/musl-cross:

Updating Homebrew...

==> Installing musl-cross from filosottile/musl-cross
==> Downloading https://github.com/richfelker/musl-cross-make/archive/v0.9.8.tar.gz
Already downloaded: /Users/koddr/Library/Caches/Homebrew/downloads/b1fb6145694b3f03e6d4bab7953ade2a909be7407f0819f78d892d3dcd3f81e8--musl-cross-make-0.9.8.tar.gz
==> Downloading https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.10.tar.xz
Already downloaded: /Users/koddr/Library/Caches/Homebrew/downloads/398d7b1a67ebf5f658f5f31f2d57a936f9161716fed598d400290556e8049d42--linux-4.4.10.tar.xz
==> Downloading https://ftp.gnu.org/gnu/mpfr/mpfr-3.1.4.tar.bz2
Already downloaded: /Users/koddr/Library/Caches/Homebrew/downloads/874c62a002181fc3df2f9f0a8a9499f33bb21ccb6370ab9b1065a0e634264b70--mpfr-3.1.4.tar.bz2
==> Downloading https://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz
Already downloaded: /Users/koddr/Library/Caches/Homebrew/downloads/bd14c3cef87f64bec2487a0b0135ce51aea28ef5153b0c74bfd9888c82ebf3b8--mpc-1.0.3.tar.gz
==> Downloading https://ftp.gnu.org/gnu/gmp/gmp-6.1.1.tar.bz2
Already downloaded: /Users/koddr/Library/Caches/Homebrew/downloads/5e579956c8e1aafdb613f9a1735c3b94b0c947db2b3399353408dcb30820abc4--gmp-6.1.1.tar.bz2
==> Downloading https://www.musl-libc.org/releases/musl-1.1.22.tar.gz
Already downloaded: /Users/koddr/Library/Caches/Homebrew/downloads/9389d81146f56f0022c4a8176540aafb5c445271f3d832b9ee26240b009bf46c--musl-1.1.22.tar.gz
==> Downloading https://ftp.gnu.org/gnu/binutils/binutils-2.27.tar.bz2
Already downloaded: /Users/koddr/Library/Caches/Homebrew/downloads/16b0cf84c596dc930fb778e07dc61cf98a1927d8a6287beed37571757804a448--binutils-2.27.tar.bz2
==> Downloading https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=3d5db9ebe860
Already downloaded: /Users/koddr/Library/Caches/Homebrew/downloads/53c623e9fd9ebac8516b8d880b2a1f0e9c9ef2aa08be18ec30d173ba4ca7d1f2--config.sub
==> Downloading https://ftp.gnu.org/gnu/gcc/gcc-6.4.0/gcc-6.4.0.tar.xz
Already downloaded: /Users/koddr/Library/Caches/Homebrew/downloads/e91b66be39793d16f9455fa42756bf471f6fa77c02bd51ca6f3b2f01f823af73--gcc-6.4.0.tar.xz
==> Downloading http://isl.gforge.inria.fr/isl-0.15.tar.bz2
Already downloaded: /Users/koddr/Library/Caches/Homebrew/downloads/2d80a8397ef48e37eff156838a9b7e6963c8f2560eaa9dd578f0894fa731a229--isl-0.15.tar.bz2

But process is stuck on this line:

==> /usr/local/opt/make/bin/gmake install TARGET=x86_64-linux-musl

I wait about 2 hours and nothing happen.

What I miss? How to install homebrew-musl-cross?

FiloSottile commented 4 years ago

That step can take a very long time because it's compiling the whole toolchain. If you're seeing CPU usage, it's not stuck.

koddr commented 4 years ago

@FiloSottile Hi!

I know that, but waiting about 2 hours on MacBook Pro early 2015. What's compiling? Hadron Collider? 😉

GwynethLlewelyn commented 4 years ago

Just to confirm @koddr's experience — on my MacBook Pro (Retina, 15-inch, Mid 2014) the compilation also takes 'several hours', so that seems to be the rule, not the exception. But eventually, it will finish.

FiloSottile commented 4 years ago

My build of the new v0.9.9 on a MacBook Pro (13-inch, 2017) with a 3.1 GHz Dual-Core Intel Core i5 took 36 minutes. Several hours seems like a lot...

AndersonChoi commented 4 years ago

My build of the new v0.9.9 on a MacBook Pro (15-inch, 2016) with a 2.6 GHz Intel Core i7 took 45 minutes.

FiloSottile commented 4 years ago

There is now a pre-built bottle for Catalina, built through GitHub actions making it likely I will keep updating it, and make is again running parallelized, so builds should be much faster (twice as fast on my machine).

xtbl commented 3 years ago

in case someone gets here looking for some info, it took around 20mins for me MBP 15 2019, not bad

rux-eth commented 2 years ago

MBP M1 Pro base model took no longer than 20 mins