help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: f951: internal compiler error: Illegal instruction: 4 when installin


From: Andrew Janke
Subject: Re: f951: internal compiler error: Illegal instruction: 4 when installing packages
Date: Wed, 14 Apr 2021 16:44:45 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.9.1


On 4/14/21 4:38 AM, mzerobin via Help-octave wrote:
> Thank you very much for your input Andrew!
> 
> The CPU I am using is an Intel Core 2 Duo with 2.66 GHz in a MacBook Pro 5,3
> running macOS 10.15.7.

Yep, that's probably what's happening: your MBP is an old 2009 model
running a Penryn CPU. Lacks SSE4.1 and some AVX instructions. When we've
seen this before, it was an AVX instruction in a binary.

> I have just tried to build gcc from source. However, it results in an error
> looking the following:
> 
> /==> 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

Hmmm. Maybe one of GCC's dependencies also has an unsupported
instruction in its binary?

Can you try `brew reinstall --build-from-source gmp isl libmpc mpfr` and
then try rebuilding gcc from source again?

> I am not confident regarding the possibility of trying the Octave.app due to
> the fact that my goal is to use Dynare in combination with Octave. On the
> website  https://www.dynare.org/download/ <https://www.dynare.org/download/>  
> it states explicitly that I have to use Homebrew. Do you have some more
> information whether it is possible to use Dynare with Octave when using the
> Octave.app build? If so, I am willing to try.

Ahhh, I see. Yes, it seems you need a dynare that's built specifically
against your Octave installation. The Homebrewed dynare will not work
with Octave.app then.

Hmm. Let me think a bit about how Octave.app could support dynare.

The way we support other binary packages that are needed for things like
Octave Forge packages is to just include them all in the Octave.app
build itself, so they're ready and waiting for you. Maybe we'll do that
with dynare too. Looks license-compatible.

Cheers,
Andrew




reply via email to

[Prev in Thread] Current Thread [Next in Thread]