Binutils构建在Mac OS X 10.10.5 Yosemite上失败 [英] Binutils build fails on Mac OS X 10.10.5 Yosemite
问题描述
下载GNU Binutils 2.25软件包后
我按照安装Binutils"中的说明进行操作:
./cnofigure
制造
构建后发生错误:
../../binutils-gdb/binutils/nm.c:1733:28: error: 'sbrk' is deprecated [-Werror,-Wdeprecated-declarations]
char *lim = (char *) sbrk (0);
/usr/include/unistd.h:582:7: note: 'sbrk' has been explicitly marked deprecated here
void *sbrk(int);
1 error generated.
make[4]: *** [nm.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-binutils] Error 2
make: *** [all] Error 2
我在网上做了一些研究,他们说使用此命令
./configure --prefix =/usr --disable-werror
我明白了
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
make[8]: Nothing to be done for 'all-am'.
make[1]: Nothing to be done for 'all-target'.
(什么意思是对于所有上午和所有目标一无所获")
我不知道该怎么办了. 是错误还是我做错了什么?
请帮助.
如果在OSX上使用homebrew
作为程序包管理器,确实会让自己的生活更轻松.
转到家酿网站,然后将单行安装脚本复制并粘贴到终端中.
然后您只需输入
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
make[8]: Nothing to be done for 'all-am'.
make[1]: Nothing to be done for 'all-target'.
即可安装binutils
brew install binutils
如果您要查找GNU sed或ImageMagick,则可以执行
brew search sed
或
brew search imagemagick
然后
brew install sed
如果有任何问题,请运行
brew doctor
如果要更新所有软件包,只需运行
brew update
brew upgrade --all
更酷的想法和建议
./cnofigure make errors happened after build: I did some research on net and they said using this command ./configure --prefix=/usr --disable-werror and I get (what does that mean "nothing to be done for all-am and all-target") I don't know what to do anymore.
Is it a bug or it's me doing something wrong? Please help. You really would make life easier for yourself if you used Goto the homebrew website and copy and paste the one-line install script into your Terminal. Then you can install If, down the line, you want to find GNU sed, or ImageMagick, you can just do or then If you have any problems, just run If you want to update all your packages, just run More cool ideas and suggestions here. 这篇关于Binutils构建在Mac OS X 10.10.5 Yosemite上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!../../binutils-gdb/binutils/nm.c:1733:28: error: 'sbrk' is deprecated [-Werror,-Wdeprecated-declarations]
char *lim = (char *) sbrk (0);
/usr/include/unistd.h:582:7: note: 'sbrk' has been explicitly marked deprecated here
void *sbrk(int);
1 error generated.
make[4]: *** [nm.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-binutils] Error 2
make: *** [all] Error 2
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
make[8]: Nothing to be done for 'all-am'.
make[1]: Nothing to be done for 'all-target'.
homebrew
as a package manager on OSX.binutils
simply by typingbrew install binutils
brew search sed
brew search imagemagick
brew install sed
brew doctor
brew update
brew upgrade --all