Re: first stab at a cross compiler ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



15.4.2011 8:43, kevin diggs kirjoitti:
Hi,

On Fri, Apr 15, 2011 at 12:11 AM, Ian Lance Taylor<iant@xxxxxxxxxx>  wrote:

When you configure the binutils and gcc, use the same --prefix
argument.  First configure and install the binutils, then configure
gcc.  If you do that, it should all just work.

Ian


So, no /opt/cross/q700/binutils-2.16.1/bin&
/opt/cross/q700/gcc-3.4.6/bin? I need to do something like
/opt/cross/q700/toolchain for both?

Yes! I think that in my instructions I clearly told that
the $prefix in '--prefix=$prefix' used with binutils and
GCC must be the same! And that GCC doesn't search for the
'$target-<tool>'s although the GCC build scripts will use
just them! Just like humans but GCC isn't some kind of
HAL which behaves just like a human being :(

Expecting a native GCC to search for 'as' and 'ld' and a
cross GCC to search for '$target-as' and '$target-ld' is
a very common misunderstanding, maybe because a native GCC
is usually used via 'gcc' but a cross GCC is used via
'$target-gcc'. Something like: "What I will use, GCC must
use too!", which of course is totally wrong logic :(


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux