[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: f951: internal compiler error: Illegal instruction: 4 when installin
Re: f951: internal compiler error: Illegal instruction: 4 when installing packages
Sat, 17 Apr 2021 21:27:15 -0400
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.9.1
On 4/15/21 9:19 AM, mzerobin via Help-octave wrote:
> Again, thank you for your help.
You're welcome! Happy to 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> . 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.
> 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
> you know if there is a way to maybe build gcc explicitly for the
> am using?
I'm about out of ideas here; sorry. AFAIK, what you're doing "should
have" worked. There's nothing special you need to do to build a program
specifically for your CPU; that's just what should happen by default
when you build from source.
Maybe try MacPorts instead? They have better support for older macOS
versions and machines than Homebrew does.
You could also try building this stuff with `HOMEBREW_MAKE_JOBS=1`.
It'll go a lot slower, but you'll get easier-to-read diagnostic output
in the build logs.
> Furthermore, I searched for 'f951' in /usr/local where I actually found 3
> One in //usr/local/gfortran/libexec/gcc/x86_64-apple-darwin15/6.1.0/f951/
> A second one in
> And a third one in
> 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?
Now that is a bit odd. Where did that /usr/local/gfortran installation
The other two things look like two separate GCC installations (the f951
program is part of GCC, like the rest of GNU Fortran); one from Homebrew
and one that you did using one of the other processes.
Which one of these you're picking up will depend on your $PATH settings
when you do the build.
I've made an Octave.app issue about adding support for this scenario to
Octave.app: https://github.com/octave-app/octave-app/issues/225. If you
have some spare time, maybe you could drop by there and write some
comments about your use case? It won't happen any time soon, but it
might be useful for you or other users in the future.