<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 06/12/2013 12:01 PM, Dennis Poon
wrote:<br>
</div>
<blockquote cite="mid:51B84704.8090507@avidsoft.com.hk" type="cite">But
I am working on a i386 Debian box.
<br>
I typed gcc -v and it just says Target: i486-linux-gnu
<br>
but isn't that normal?
<br>
<br>
</blockquote>
Of course this is normal. what is not normal is that a cross-gcc
(which is part of binutils) is supposed to be named just "gcc". (It
should be named something like "mips-linux-gcc"). <br>
<br>
What I meant by "starting from the command line" is (on linux:)<br>
<br>
either give the full path: <i class="moz-txt-slash"><span
class="moz-txt-tag"><br>
/</span>usr/mips-linux-gnu/bin<span class="moz-txt-tag">/</span></i>gcc
-v
<br>
<br>
or cd to the appropriate directory <br>
<i class="moz-txt-slash"><span class="moz-txt-tag">cd/</span>usr/mips-linux-gnu/bin<span
class="moz-txt-tag">/</span></i><br>
and then do <br>
./gcc -v<br>
<br>
<br>
if this still says "Target: i486-linux-gnu" you don't have
cross-binutils at all.<br>
<br>
I for example see this with my cross binutils (for a completely
different target):<br>
<br>
./fido-none-elf-gcc -v<br>
Using built-in specs.<br>
COLLECT_GCC=./fido-none-elf-gcc<br>
COLLECT_LTO_WRAPPER=/home/mschnell/CodeSourcery/Sourcery_CodeBench_for_fido_ELF/bin/../libexec/gcc/fido-none-elf/4.6.1/lto-wrapper<br>
Target: fido-none-elf<br>
....<br>
<br>
<br>
-Michael<br>
</body>
</html>