Home > Mobile >  GCC Compiler Taking Forever to Update
GCC Compiler Taking Forever to Update

Time:08-15

I'm using homebrew to update my GCC compiler and it's taking a pretty long time... ~25min so far. When I first installed GCC it took around 45min. I have a 2019 Macbook Pro and from what I can tell there's absolutely no reason for it to be this much of a challenge. Here's the activity monitor while it's updating. The bottom of my laptop is also so hot it burns my hand if I hold it there too long and the fans are going nuts. I have no idea why it'd be this strenuous of a process to install/update a C/C compiler? Anyone know why?

CodePudding user response:

Homebrew is building GCC from source. Building GCC is a notoriously costly procedure. More generally, compilation of complex programs is sometimes used for stress testing and performance benchmarking. It takes a lot of work.

The Homebrew FAQ documents the conditions under which it will build from source.

CodePudding user response:

Normally, Homebrew tries to install packages from pre-built binaries (as mentioned in John Bollinger's link). However, it sounds like you're running macOS Mojave (10.14), which isn't supported by Homebrew anymore. Ideally, you'd upgrade to Catalina or newer.

  • Related