环境信息
操作系统: macOS 10.12.2 (16C68)
编译器: gcc-6
复制步骤
我安装了gcc-6,并根据需要将config.mk修改为export CC = gcc-6 export CXX = g++-6,但始终存在以下错误:g++-6 -c -std=c++0x -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/learner.cc -o build/learner.o FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
你试过什么?
XCodegccmake clean_all && make -4j但还是出了问题。有什么想法吗?
发布于 2017-03-23 07:43:53
我在使用macports-installed gnu汇编程序时遇到了这个问题。您可以尝试强制使用Xcode附带的as,或者只是暂时从路径中删除/opt/local/bin。
发布于 2017-10-07 00:12:34
我通过卸载MacPorts来解决问题:
sudo port -f uninstall installedhttps://stackoverflow.com/questions/41542990
复制相似问题