Re: [fpc-pascal] mips linux cross compiled application error

2016-06-15 Thread czd
Thats the fpc log when compiling under Linux/mips (OpenWRT) system. Has someone any idea? root@Omega-28F6:~/onion-omega/fpc-test# fpc -Tlinux -Pmips hello.pas -va [0.008] Macro defined: LINUX [0.009] Macro defined: UNIX [0.010] Macro defined: HASUNIX [0.012] Macro defined: FPC_REQUIRES_PROPER_ALI

Re: [fpc-pascal] mips linux cross compiled application error

2016-06-15 Thread czd
Hi all, Soon the cross compilation works fine then I tried to compile without cross. :) I compiled fpc for the linux/mips platform. But when I try to compile the test application error occurs like that. root@Omega-28F6:~/onion-omega/fpc-test# ppcmips hello.pas Free Pascal Compiler version 3.1.1 [

Re: [fpc-pascal] mips linux cross compiled application error

2015-11-28 Thread czd
Congratulations for the new fpc compiler and the developers, soon I achieved to compile a simple test program for mips/linux platform. As I wrote before my simple device is onion/omega and here is the cpuinfo and compiled application(attached). It complains with the Illegal instruction replied.. Th

Re: [fpc-pascal] mips linux cross compiled application error

2015-11-10 Thread Mark Morgan Lloyd
czd wrote: The board that I mention looks like Big endian mips system so I checked and recompile the binutils again with these parameters. Big-endian... kinky :-) ./configure --target=mips-linux --prefix=/usr/local --bindir=/usr/bin --program-prefix=mips-linux- And here is the fpc compile st

Re: [fpc-pascal] mips linux cross compiled application error

2015-11-10 Thread czd
The board that I mention looks like Big endian mips system so I checked and recompile the binutils again with these parameters. ./configure --target=mips-linux --prefix=/usr/local --bindir=/usr/bin --program-prefix=mips-linux- And here is the fpc compile steps. make distclean OS_TARGET=linux CP

Re: [fpc-pascal] mips linux cross compiled application error

2015-11-10 Thread Sven Barth
Am 10.11.2015 10:38 schrieb "Mark Morgan Lloyd" < markmll.fpc-pas...@telemetry.co.uk>: > I think you need to give us more information about how you've built and how you're invoking the compiler. Also I notice from https://onion.io/omega/ that it runs OpenWRT, I'm not sure what the situation is with

Re: [fpc-pascal] mips linux cross compiled application error

2015-11-10 Thread Mark Morgan Lloyd
czd wrote: 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, MIP

[fpc-pascal] mips linux cross compiled application error

2015-11-09 Thread czd
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