[Lazarus] Cross-compiling -> MIPS

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Mon Oct 29 20:13:50 CET 2012


Mark Morgan Lloyd wrote:
> SkyDiablo wrote:
>> Am 29.10.2012 15:53, schrieb Lukasz Sokol:
>>> You produced an /executable/ ?
>>> Then why not just do
>>>
>>> ./helloWorld4MIPS
>>>
>>> in the dir where the binary is copied to ....?
>>> (yes, dot-slash is needed unless you have this directory added to PATH)
>>>
>>> AFAIK, doing
>>>
>>> sh $file
>>>
>>> will attempt to run it as shell script, WHICH IT ISN'T ?
>>
>> yes, i have tested this befor but now i realize what going on.
>>
>> # chmod +x helloWorld4MIPS
>> # ./helloWorld4MIPS
>>
>> after this, NOTHING happens! no output and no shell-promt! now i have 
>> look at "top" ->
>>
>> process "helloWorld4MIPS" -> 100% CPU load!
>>
>> this is the helloWorld Code:
>> ================================
>> program helloWorld4MIPS;
>> begin
>>   WriteLn('helloWorld');
>> end.
> 
> A possibility there is that the FPC runtimes are incompatible with 
> OpenWRT (assuming that that's what you're running on). I was running on 
> Debian hosted by Qemu (on an x86 Debian system) which appeared OK.

I've just compiled and run a test "Hello, World!" and a do-nothing 
program on mipsel, they both behaved as expected. I suggest I mail them 
to you, the stripped binaries are about 33K in a tar.gz.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list