Hi, Thanks for the heads up, Dom and I have it compiling correctly from an i386 Ubuntu VM, and running on the ARM Linux box, (that compiler option works fine -meabi=5) However I still would prefer to get it compiling on my windows box, I have tried and failed several times to rebuild the binutils following the guide at http://wiki.freepascal.org/Setup_Cross_Compile_For_ARM as its all for linux, alot of the commands don’t work, such as "./configure --target=arm-linux --disable-werror". Nor can i find anywhere thats got some precompiled binutils in this state. Iv tried in Cygwin, but the C compiler doesn't work - "configure:4227: error: C compiler cannot create executables", and this is just one stage. Not sure where to go now to try and compile for the arm on my windows box! Any help would be great. Cheers Phil + Dom From: Henry Vermaak [mailto:henry.verm...@gmail.com] Sent: 27 September 2011 12:29 To: Lazarus mailing list Subject: Re: [Lazarus] Lazarus Digest, Vol 44, Issue 106 On 27/09/11 12:12, Henry Vermaak wrote: > On 27/09/11 11:25, domini...@savagesoftwaresolutions.com wrote: >> Hi Henry, >> Thanks for answering. >> >> This is the ELF output running on the actual box... >> >> https://gist.github.com/1244760 >> >> There are 2 ELF outputs. The top one is the FreePascal one, while the >> bottom one is for mkdir. >> >> We did notice that native exes list their OS as UNIX, while our exe >> lists it as ARM. > > You'll probably need to pass -meabi=5 to arm-linux-as when you build fpc > and your programs. Easiest way is to write a program called > arm-linux-as.exe that calls the real assembler (that you renamed) with > an added -meabi=5. Even better is to re-build the binutils with a target like arm-linux-eabi, which should set this by default. Tip: use a linux machine to build the binutils, it's much easier. Henry -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus