Hello,
I'm trying to build a cross compiler with gcc and binutils.
I do what the http://www.osdev.org/wiki/GCC_Cross-Compiler explains.
Binutils (2.15) compiles right but the directory /usr/cross is not created even if I setted up environment variables as explained ($PREFIX and $PATH).
When I compile gcc (3.3.6) I get an error because i586-elf-ar is not found.
As I guess i586-elf-ar would be in /usr/cross but even the directory is not created.
find /usr -name "i586-elf-ar" says that there is nothing like i586-elf-ar on the system.
My question is: What I missed?
Building a cross compiler
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Why are you using such a dated version of binutils? 2.18 has been tested successfully while 2.15 is not even on the list, and I know of several issues that were present in earlier versions of binutils.
Also, have you made sure this part of the article doesn't apply to you:
Also, have you made sure this part of the article doesn't apply to you:
In all, I recommend using at least 2.17 if not a later version.Problems have been reported on trying to build bintils 2.14 with Cygwin GCC < 3.3.3.3 as host compiler, as well as on trying to build binutils <= 2.15 with GCC 4.x as host compiler.
This might be a stupid question, but:
Did you ever bother to run make install?
If you did, then -
- check if compilation really did succeed (are the executables present in the build directory)
- or if you actually set the prefix/target properly during configuration
And I also strongly advise using the latest version of binutils.
Did you ever bother to run make install?
If you did, then -
- check if compilation really did succeed (are the executables present in the build directory)
- or if you actually set the prefix/target properly during configuration
And I also strongly advise using the latest version of binutils.
"Sufficiently advanced stupidity is indistinguishable from malice."