如何解决f951:内部编译器错误:非法指令:在 Octave 中安装软件包时为 4
你好,你在帮助别人,
尝试在 Octave 中执行命令 >> pkg install -forge io statistics control struct optim
以安装统计包时,我遇到以下错误:
>> pkg install -forge io statistics control struct optim
warning: LFLAGS is deprecated and will be removed in a future version of
Octave,use LDFLAGS instead
f951: internal compiler error: Illegal instruction: 4
libbacktrace Could not find executable to open
Please submit a full bug report,with preprocessed source if appropriate.
See <https://github.com/Homebrew/homebrew-core/issues> for instructions.
make: *** [slicotlibrary.a] Error 1
tar -xzf slicot.tar.gz
/usr/local/Cellar/octave/6.2.0_2/bin/mkoctfile-6.2.0 -Wall
-Wno-deprecated-declarations __control_helper_functions__.cc
mkdir sltmp
mv slicot/src/*.f ./sltmp
mv slicot/src_aux/*.f ./sltmp
cp TG04BX.fortran ./sltmp/TG04BX.f
cp TB01ZD.fortran ./sltmp/TB01ZD.f
cd sltmp; /usr/local/Cellar/octave/6.2.0_2/bin/mkoctfile-6.2.0 -c *.f
error: pkg: error running 'make' for the control package.
error: called from
configure_make at line 110 column 9
install at line 196 column 7
pkg at line 568 column 9/
我正在运行 MacBook Pro 5,3 2009 年中期,配备 Intel Core 2 Duo 2.66 GHz 处理器和 macOS Catalina 10.15.7。到目前为止,我发现问题出在通过 Homebrew 安装的 gcc 的 f951 编译器中。具体来说,在此 forum 的讨论中,我被告知
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.
所以,我想知道是否可以专门构建 gcc 来支持我正在使用的 cpu 并解决此错误?
附加信息: 我在 /usr/local 中搜索了“f951”,实际上我找到了 3 执行
- 一进
//usr/local/gfortran/libexec/gcc/x86_64-apple-darwin15/6.1.0/f951/
- 第二个
//usr/local/gcc-10/libexec/gcc/x86_64-apple-darwin19.6.0/11.0.1/f951/
- 第三个
//usr/local/Cellar/gcc/10.2.0_4/libexec/gcc/x86_64-apple-darwin19/10.2.0/f951/
虽然我远不是这方面的专家,但我相信也许 这也可能导致错误? IE。我在三个中拥有相同的执行官 不同的目录?
编辑:
我卸载了 gcc 和 gfortran,使得 f951 文件不再可用,然后再次安装。现在,我只找到了一个 f951 exec,但是,它仍然导致同样的错误!
非常感谢您提供的任何提示和技巧,因为我不知道从哪里继续解决这个问题!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。