I am currently trying to install gcc using homebrew on my new macbook.
However, I keep getting this error:
Last 15 lines from /Users/jonathan/Library/Logs/Homebrew/gcc/02.make:
7 0x1bd35026c _dispatch_apply_with_attr_f + 1152
8 0x1bd35047c dispatch_apply + 108
9 0x100ab11f4 ld::tool::InputFiles::InputFiles(Options&) + 616
10 0x100a336c0 main + 552
A linker snapshot was created at:
/tmp/libstdc++.6.dylib-2022-09-19-124659.ld-snapshot
ld: Assertion failed: (_file->_atomsArrayCount == computedAtomCount && "more atoms allocated than expected"), function parse, file macho_relocatable_file.cpp, line 2061.
collect2: error: ld returned 1 exit status
make[6]: *** [libstdc++.la] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-stage1-target-libstdc++-v3] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
clip: drop GCC dependency https://github.com/Homebrew/homebrew-core/pull/110763
djview4: drop GCC dependency https://github.com/Homebrew/homebrew-core/pull/110664
openmsx: drop GCC dependency https://github.com/Homebrew/homebrew-core/pull/110324
simutrans: drop GCC dependency https://github.com/Homebrew/homebrew-core/pull/110143
Remove Linux-only GCC dependencies https://github.com/Homebrew/homebrew-core/issues/110010
synergy-core: drop GCC dependency https://github.com/Homebrew/homebrew-core/pull/110128
gcc@11: do not strip on macOS https://github.com/Homebrew/homebrew-core/pull/110706
GCC 12.2.0 breaks TLS (thread_local) at least on x86_64 https://github.com/Homebrew/homebrew-core/issues/110673
I have no idea what the problem is...if anyone has any solutions or ideas, please let me know!
Thank you!