使用intel core 2 duo处理器在旧MBP上从源代码构建gcc

使用intel core 2 duo处理器在旧MBP上从源代码构建gcc,gcc,homebrew,gfortran,macos-catalina,Gcc,Homebrew,Gfortran,Macos Catalina,我试图从失败的源代码构建GCC。我正在使用的设备是旧的MacBook Pro 5,3 2009年年中型号,带有运行macOS 10.15.7 Catalina的Intel Core 2 Duo 2.66 GHz处理器 首先,我通过自制安装了GCC。然而,由于其他一些原因(见下文),我希望从源代码构建GCC。执行命令时 brew reinstall --build-from-source gcc 我收到以下错误消息 brew reinstall --build-from-source gcc =

我试图从失败的源代码构建GCC。我正在使用的设备是旧的MacBook Pro 5,3 2009年年中型号,带有运行macOS 10.15.7 Catalina的Intel Core 2 Duo 2.66 GHz处理器

首先,我通过自制安装了GCC。然而,由于其他一些原因(见下文),我希望从源代码构建GCC。执行命令时

brew reinstall --build-from-source gcc
我收到以下错误消息

brew reinstall --build-from-source gcc
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/6a83f
Already downloaded: /Users/Manuel/Library/Caches/Homebrew/downloads/c0b9dca392d2e8496747001f634c04a4bc2f5c63672b963f3c4f217e70aaa258--bigsur_2.patch
==> Downloading https://ftp.gnu.org/gnu/gcc/gcc-10.2.0/gcc-10.2.0.tar.xz
Already downloaded: /Users/Manuel/Library/Caches/Homebrew/downloads/c8d4ca732a98ae691d04472b15de6d9e06a09016499af6ff16c4f55081bfc6b9--gcc-10.2.0.tar.xz
==> Reinstalling gcc 
==> Patching
==> Applying bigsur_2.patch
patching file gcc/config/host-darwin.c
patching file gcc/config/darwin-c.c
patching file gcc/config/darwin-driver.c
patching file gcc/testsuite/gcc.dg/darwin-minversion-link.c
patching file gcc/config/darwin-driver.c
patching file gcc/config/darwin-driver.c
patching file libsanitizer/configure.tgt
patching file gcc/configure
Hunk #1 succeeded at 15485 (offset -5 lines).
patching file libatomic/configure
patching file libbacktrace/configure
patching file libcc1/Makefile.am
patching file libcc1/Makefile.in
patching file libcc1/configure
patching file libcc1/configure.ac
patching file libffi/configure
patching file libgfortran/configure
patching file libgomp/Makefile.in
patching file libgomp/configure
patching file libhsail-rt/configure
patching file libitm/configure
patching file libitm/configure.tgt
patching file libobjc/configure
patching file libphobos/configure
patching file libquadmath/configure
patching file libsanitizer/configure
patching file libsanitizer/configure.tgt
patching file libssp/configure
patching file libstdc++-v3/configure
patching file libtool.m4
patching file libvtv/configure
patching file zlib/configure
==> ../configure --prefix=/usr/local/Cellar/gcc/10.2.0_4 --libdir=/usr/local/Cel
==> make BOOT_LDFLAGS=-Wl,-headerpad_max_install_names
Last 15 lines from /Users/Manuel/Library/Logs/Homebrew/gcc/02.make:
/bin/sh ../../gcc/../move-if-change tmp-opinit.h insn-opinit.h
build/genattrtab ../../gcc/common.md ../../gcc/config/i386/i386.md insn-conditions.md \
        -Atmp-attrtab.c -Dtmp-dfatab.c -Ltmp-latencytab.c
/bin/sh ../../gcc/../move-if-change tmp-opinit.c insn-opinit.c
echo timestamp > s-opinit
build/genautomata ../../gcc/common.md ../../gcc/config/i386/i386.md \
      insn-conditions.md > tmp-automata.c
make[3]: *** [s-attrtab] Illegal instruction: 4
make[3]: *** Waiting for unfinished jobs....
/bin/sh ../../gcc/../move-if-change tmp-automata.c insn-automata.c
echo timestamp > s-automata
rm gcc.pod
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

READ THIS: https://docs.brew.sh/Troubleshooting

These open issues may also help:
gcc 10.3.0 https://github.com/Homebrew/homebrew-core/pull/74843
显然有些地方出了问题。不幸的是,我不知道在哪里继续解决这个问题。非常感谢您的帮助


Manuel

您在此处复制的输出的底部有两个建议阅读的链接:“阅读此内容:”“这些开放性问题可能也有帮助:gcc 10.3.0”您确定阅读了这些链接吗?您好,是的,谢谢您指出这一点。我已经阅读了Github和自制文档中的一些提交。然而,我对这一点不太熟悉,觉得很难。因此,我希望这里的人能帮助我找到问题,然后从源代码构建gcc。。。