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

Sven Barth pascaldragon at googlemail.com
Sun Jun 16 11:33:57 CEST 2013

On 15.06.2013 19:19, Dennis Poon wrote:
> I eventually found this page which talked about downloading a special
> toolchain from openwrt web site
> http://www.dd-wrt.com/phpBB2/viewtopic.php?t=61112
> I followed its instruction and successfully compiled a helloworld c
> program and
> successfully RUN the helloworld binary on Netgear 3700 running DD-Wrt !
> I was overjoyed.
> Then I tried to modify the steps to compile fpc
> my toolchains  is at /home/dennis/toolchains/staging_dir_mips/bin/
> and in this folder, there are files: mips-linux-ar  and mips-linux-as
> so I
> make clean all CPU_TARGET=mips OS_TARGET=linux
> BINUTILSPREFIX=/home/dennis/toolchains/staging_dir_mips/bin/mips-linux-

It seems not to be your problem, but your arguments are not entirely 
correct (and it "works" just by accident). BINUTILSPREFIX is *only* the 
prefix of the binaries, in your case "mips-linux-". The path must be 
passed as CROSSBINDIR like so: 
And did you choose the correct endianess? Aka CPU_TARGET=mipsel or 

Maybe you could try to fiddle around with the arguments passed to 
mips-linux-as by hand. This means take the command below and try to get 
the prt0.as file to assemble:

/home/dennis/toolchains/staging_dir_mips/bin/mips-linux-as -32 -mips32 
-EB -o /home/dennis/fpc/2.7.1/rtl/units/mips-linux/prt0.o mips/prt0.as

(current directory should be /home/dennis/fpc/2.7.1/rtl/linux )


More information about the fpc-pascal mailing list