Is there any other version of binutils for x86_64?

I am trying to install a cross-compiler by following the instructions I found here . I am using the 64 bit version of Ubuntu 13.10. As soon as I entered the command to configure binutils, I get:

Configuring for a x86_64-unknown-linux-gnu host. Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized Unrecognized host system name x86_64-unknown-linux-gnu. 

Is there really a 64 bit version of binutils? If not, can someone tell me which commands to enter to avoid this error?

+6
source share
2 answers

After a little googleing, I found a message. In this article, the author explains that all you need to do to install binutils on a 64-bit Linux system is to trick the system by typing "linux32" in front of your command. For example, in this case it would be:

 linux32 ./configure linux32 make linux32 make install 

to create a regular compiler and this:

 linux32 ./configure --target=$TARGET --prefix="$PREFIX" --disable-nls linux32 make linux32 make install 

to create a cross compiler.

+9
source

I got the same error with binutils-2.9.I just used binutils-2.28 (lower version) and it worked for me.

0
source

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


All Articles