first stab at a cross compiler ...
Kai Ruottu
kai.ruottu@wippies.com
Fri Apr 15 07:33:00 GMT 2011
15.4.2011 8:43, kevin diggs kirjoitti:
> Hi,
>
> On Fri, Apr 15, 2011 at 12:11 AM, Ian Lance Taylor<iant@google.com> 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 :(
More information about the Gcc-help
mailing list