Re: f951: internal compiler error: Illegal instruction: 4 when installing packages

mzerobin via Help-octave <[email protected]>
Newsgroups gmane.comp.gnu.octave.general
Message-ID <[email protected]>
Again, thank you for your help.

First, since building from source using the command 'brew reinstall
--build-from-source gcc' did not work I looked for other ways and found a
video to build gcc-10 from source 
https://www.youtube.com/watch?v=GUa9w5rn3a8
<https://www.youtube.com/watch?v=GUa9w5rn3a8>  . I followed it and it took
many many hours to build. During the process several warnings occurred.
However, I did not take notes which ones. Still, when installing the
statistics package it resulted in the same error.

Then, after reading your answer I tried what you said. Specifically, I run
'brew reinstall --build-from-source gmp isl libmpc mpfr' which resulted in 
/% brew reinstall --build-from-source gmp isl libmpc mpfr
==> Downloading https://gmplib.org/download/gmp/gmp-6.2.1.tar.xz
Already downloaded:
/Users/Manuel/Library/Caches/Homebrew/downloads/ade51fddb351cd85e1645e43543cff053bc2f667ec8a7eb1c7554ac301a30d4b--gmp-6.2.1.tar.xz
==> Reinstalling gmp 
==> ./configure --prefix=/usr/local/Cellar/gmp/6.2.1
--libdir=/usr/local/Cellar/
==> make
==> make check
Last 15 lines from /Users/Manuel/Library/Logs/Homebrew/gmp/03.make:
# SKIP:  0
# XFAIL: 0
# FAIL:  6
# XPASS: 0
# ERROR: 0
============================================================================
See tests/mpz/test-suite.log
Please report to [email protected], see
https://gmplib.org/manual/Reporting-Bugs.html
============================================================================
make[5]: *** [test-suite.log] Error 1
make[4]: *** [check-TESTS] Error 2
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2

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

Obviously something is not working here as well. However, for completeness I
tried 'brew reinstall --build-from-source gcc' which resulted in 

/% brew reinstall --build-from-source gcc
==> Downloading
https://raw.githubusercontent.com/Homebrew/formula-patches/6a83f36d/gcc/bigsur_2.patch
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/Cellar/gcc/10.2.0_4/lib/gcc/10 --disable-nls
--enable-checking=rel
==> 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
/bin/sh ../../gcc/../move-if-change tmp-opinit.c insn-opinit.c
echo timestamp > s-opinit
build/genattrtab ../../gcc/common.md ../../gcc/config/i386/i386.md
insn-conditions.md \
		-Atmp-attrtab.c -Dtmp-dfatab.c -Ltmp-latencytab.c
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/

Finally, trying to install the statistics package in Octave resulted in the
same error as before.

I am very thankful for any additional tips I could try to get it working. Do
you know if there is a way to maybe build gcc explicitly for the processor I
am using?

Furthermore, I searched for 'f951' in /usr/local where I actually found 3
exec. 
One in //usr/local/gfortran/libexec/gcc/x86_64-apple-darwin15/6.1.0/f951/
A second one in
//usr/local/gcc-10/libexec/gcc/x86_64-apple-darwin19.6.0/11.0.1/f951/
And a third one in
//usr/local/Cellar/gcc/10.2.0_4/libexec/gcc/x86_64-apple-darwin19/10.2.0/f951/

Although I am far from being an expert in this matter I believe that maybe
this could cause the error? I.e. that I have the same exec in three
different directories?  

Thank you
Manuel



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.