Binutils does not work on Mac OS X 10.10.5 Yosemite

After downloading the GNU Binutils 2.25 package

I followed the instructions for installing Binutils:

./cnofigure

to do

Errors occurred after assembly:

../../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 online 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 it mean to "do nothing for all-am and all-target")

I do not know what to do next. Is this a mistake or am I doing something wrong?

Please, help.

0
source share
2 answers

You would really make your life easier if you used homebrew as your OSX package manager.

Go to the homebrew website and copy and paste the one-line installation of the script into your terminal.

You can then install binutils by simply typing

 brew install binutils 

If in the line you want to find GNU sed or ImageMagick, you can simply 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 interesting ideas and suggestions here .

+1
source

After the assembly fails, you must clear the previously created object files

So,

 make clean ./configure --prefix=/usr --disable-werror make 
+1
source

Source: https://habr.com/ru/post/1239363/


All Articles