[fpc-pascal] is there a ready to use FPC Cross compiler x86-Linux -> MIPS-linux?

Michael Schnell mschnell at lumino.de
Wed Jun 12 12:12:42 CEST 2013


On 06/12/2013 12:01 PM, Dennis Poon wrote:
> But I am working on a i386 Debian box.
> I typed gcc -v and it just says Target: i486-linux-gnu
> but isn't that normal?
>
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").

What I meant by "starting from the command line" is (on linux:)

either give the full path:
/usr/mips-linux-gnu/bin/gcc -v

or cd to the appropriate directory
cd/usr/mips-linux-gnu/bin/
and then do
./gcc -v


if this still says "Target: i486-linux-gnu" you don't have 
cross-binutils at all.

I for example see this with my cross binutils (for a completely 
different target):

./fido-none-elf-gcc -v
Using built-in specs.
COLLECT_GCC=./fido-none-elf-gcc
COLLECT_LTO_WRAPPER=/home/mschnell/CodeSourcery/Sourcery_CodeBench_for_fido_ELF/bin/../libexec/gcc/fido-none-elf/4.6.1/lto-wrapper
Target: fido-none-elf
....


-Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130612/1c81dc1b/attachment.html>


More information about the fpc-pascal mailing list