操作系统: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但仍然出错了.任何的想法?
我已经努力将带有HomeBrew的binutil安装到osx 10.11上,最终成功,但是objdump仍然无效.终端给出的响应如下:
MacBook-Pro:~ Mars$ brew install binutils
==> Downloading https://homebrew.bintray.com/bottles/binutils-2.26.el_capitan.bo
Already downloaded: /Library/Caches/Homebrew/binutils-2.26.el_capitan.bottle.tar.gz
==> Pouring binutils-2.26.el_capitan.bottle.tar.gz
/usr/local/Cellar/binutils/2.26: 109 files, 140.3M
MacBook-Pro:~ Mars$ objdump
-bash: objdump: command not found
Run Code Online (Sandbox Code Playgroud)
有人可以帮忙吗?