Recent

Author Topic: mips linux cross compiled application error  (Read 2094 times)

czd

  • New Member
  • *
  • Posts: 11
mips linux cross compiled application error
« on: November 09, 2015, 11:57:23 pm »
Hi all,
I have compiled a simple mips/linux application with using raspberry pi, when I execute the app. it replies with this error. Device is onion omega.
Illegal instruction.

Here is my application output and the source.
file testmips
testmips: ELF 32-bit MSB executable, MIPS, MIPS32 version 1, statically linked, stripped

program test;
begin
  writeln('DATE ',{$i %DATE%});
  writeln('FPCTARGET ',{$i %FPCTARGET%});
  writeln('FPCTARGETCPU ',{$i %FPCTARGETCPU%});
  writeln('FPCTARGETOS ',{$i %FPCTARGETOS%});
  writeln('FPCVERSION ',{$i %FPCVERSION%});
end.
Is there any special options/parameters for mips/linux to compile under arm/linux?
Thanks.

 

TinyPortal © 2005-2018