Binutils构建在Mac OS X 10.10.5 Yosemite上失败 [英] Binutils build fails on Mac OS X 10.10.5 Yosemite

查看:132
本文介绍了Binutils构建在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:

../../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

I did some research on net and they said using this command

./configure --prefix=/usr --disable-werror

and I get

/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'.

(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 homebrew as a package manager on OSX.

Goto the homebrew website and copy and paste the one-line install script into your Terminal.

Then you can install binutils simply by typing

brew install binutils

If, down the line, you want to find GNU sed, or ImageMagick, you can just do

brew search sed

or

brew search imagemagick

then

brew install sed

If you have any problems, just run

brew doctor

If you want to update all your packages, just run

brew update
brew upgrade --all

More cool ideas and suggestions here.

这篇关于Binutils构建在Mac OS X 10.10.5 Yosemite上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆