Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-19 Thread Jonas Maebe
Jonas Maebe wrote on Wed, 19 Aug 2015: Chris Moody wrote on Wed, 19 Aug 2015: On 08/19/2015 12:57 AM, Jonas Maebe wrote: /home/chris/Documents/fp/fpcbuild-2.6.4/binutils/bin/as --version Somehow this was for x86 linux, not sure how that happened. Will have to look again. One more thing:

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-19 Thread Jonas Maebe
Chris Moody wrote on Wed, 19 Aug 2015: On 08/19/2015 12:57 AM, Jonas Maebe wrote: /home/chris/Documents/fp/fpcbuild-2.6.4/binutils/bin/as --version Somehow this was for x86 linux, not sure how that happened. Will have to look again. One more thing: as has been mentioned before, FPC 2.6.4 c

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-19 Thread Chris Moody
On 08/19/2015 12:57 AM, Jonas Maebe wrote: /home/chris/Documents/fp/fpcbuild-2.6.4/binutils/bin/as --version Somehow this was for x86 linux, not sure how that happened. Will have to look again. Chris ___ fpc-pascal maillist - fpc-pascal@lists.fre

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-19 Thread Jonas Maebe
Chris Moody wrote on Tue, 18 Aug 2015: So I tried to compile a special version of FPC for arm, I installed: binutils-2.25 And I got as far as this: /home/chris/Documents/fp/fpcbuild-2.6.4/binutils/bin/as -o /home/chris/Documents/fp/fpcbuild-2.6.4/fpcsrc/rtl/units/arm-linux/prt0.o arm/p

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Michael Ring
You first need to check out the sourcecode from svn: svn checkout http://svn.freepascal.org/svn/fpc/trunk fpc then change into the fpc directory and enter the build commands line by line. and yes, this is all done on the host, not on the raspberry pi; Host means a linux or a mac system, I un

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread John Lee
Did I miss something? - where does it it get the rtl & compiler source? TIA John On 18 August 2015 at 16:27, Chris Moody wrote: > > > On 08/18/2015 01:24 AM, Michael Ring wrote: > > This is how I build fpc trunk cross compiler: > > echo "Building fpchf-linux from trunk" > SUBARCH=armv7 > C

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Chris Moody
On 08/18/2015 01:24 AM, Michael Ring wrote: This is how I build fpc trunk cross compiler: echo "Building fpchf-linux from trunk" SUBARCH=armv7 CROSSOPT="-dREVINC -dFPC_ARMHF -CX -CpARMV7A -CfVFPV3_D16 -OpARMV7A -O2 -OoFASTMATH -XX -Xs" //CROSSOPT="-dREVINC -dFPC_ARMHF -CX -CpARMV6 -Cf

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Michael Ring
This is how I build fpc trunk cross compiler: echo "Building fpchf-linux from trunk" SUBARCH=armv7 CROSSOPT="-dREVINC -dFPC_ARMHF -CX -CpARMV7A -CfVFPV3_D16 -OpARMV7A -O2 -OoFASTMATH -XX -Xs" //CROSSOPT="-dREVINC -dFPC_ARMHF -CX -CpARMV6 -CfVFPV2 -OpARMV6 -O2 -OoFASTMATH -XX -Xs" OPT

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Michael Schnell
On 08/18/2015 09:17 AM, Martin Schreiber wrote: The already several times mentioned cross environment from here: http://sourceforge.net/projects/mseide-msegui/files/fpcrossarm/ works well for me. I don't doubt that and will be happy to try it (and report what I find) next time I want to do some

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Martin Schreiber
Am 18.08.2015 09:01, schrieb Michael Schnell: On 08/18/2015 08:54 AM, Martin Schreiber wrote: I assume one could setup a ssh tunnel -> remote native ARM gdb too, I never tried it. I feel it even would be easier to do than using gdbserver, as - after setting up the SSH connection - the IDE wo

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Michael Schnell
On 08/18/2015 08:54 AM, Martin Schreiber wrote: I assume one could setup a ssh tunnel -> remote native ARM gdb too, I never tried it. I feel it even would be easier to do than using gdbserver, as - after setting up the SSH connection - the IDE would just use the same commands with the rem

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Martin Schreiber
Am 18.08.2015 08:44, schrieb Michael Schnell: On 08/17/2015 09:55 PM, Martin Schreiber wrote: This works with MSEide. GREAT ! So MSE IDE does use GDBServer and not native ARM GDB remote controlled by SSH ? Yes. Or a local gdbserver which communicates by a proxy with a hardware debug inter

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Michael Schnell
On 08/17/2015 09:55 PM, Martin Schreiber wrote: This works with MSEide. GREAT ! So MSE IDE does use GDBServer and not native ARM GDB remote controlled by SSH ? Or is this selectable ? When I did that research, I had the impression that SSH would be preferable (whenever Ethernet is install

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-17 Thread Chris Moody
On 08/15/2015 08:46 PM, Chris Moody wrote: On 08/15/2015 07:40 PM, Karoly Balogh (Charlie/SGR) wrote: Hi, On Sat, 15 Aug 2015, Chris Moody wrote: Is there a better guide on how to do this than: http://wiki.freepascal.org/fpcup#Linux_ARM_cross_compiler ? specifically as far as this senten

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-17 Thread Martin Schreiber
On Monday 17 August 2015 15:42:36 Michael Schnell wrote: > > Remote gdb: > - I had not been able to create the gdb (x85) / gdbserver(ARM) pair > (not an fpc issue at all) > - I read that remote gdb does not allow for manually stopping a > running program under debug if no breakpoint is reached

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-17 Thread Chris Moody
On 08/17/2015 05:15 AM, Karoly Balogh (Charlie/SGR) wrote: Hi, On Mon, 17 Aug 2015, Michael Schnell wrote: Cross compiling with fpc is not for that faint of heard. (Been there some years ago) Well, I do it 8 hours a day for a living, actually... :) I think it's really easy these days, if yo

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-17 Thread Michael Schnell
On 08/17/2015 02:15 PM, Karoly Balogh (Charlie/SGR) wrote: Of course, wiring it into an IDE is a different question, that I don't know (and don't use)... That is what I was trying to do. In fact Lazarus provides settings for OS and Arch to be used. But I did not get this to work at that time.

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-17 Thread Karoly Balogh (Charlie/SGR)
Hi, On Mon, 17 Aug 2015, Michael Schnell wrote: > Cross compiling with fpc is not for that faint of heard. (Been there some > years ago) Well, I do it 8 hours a day for a living, actually... :) I think it's really easy these days, if you know some basics about the build system (most of which is

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-17 Thread Michael Schnell
On 08/16/2015 08:37 AM, Martin Schreiber wrote: MSEide has a project template for cross-Pi development, Great, Martin ! (As always :-) ) I once unsuccessfully tried to do cross compiling and remote debugging for my ARM based (GUI-less) QNAP NAS. I finally compiled the project locally which

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-17 Thread Michael Schnell
Cross compiling with fpc is not for that faint of heard. (Been there some years ago) Please let us know where you get. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pasca

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-16 Thread Martin Schreiber
On Sunday 16 August 2015 15:14:23 Chris Moody wrote: > > Thanks for that Martin, my app is actually just console based (I used > Lazarus because I didn't want to use the text based IDE), would you > still recommend this route? > Sure. MSEide opens on the X86 PC a xterm where the gdb remote session

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-16 Thread Chris Moody
On 08/15/2015 11:37 PM, Martin Schreiber wrote: On Sunday 16 August 2015 02:33:24 Chris Moody wrote: Hi all, I think my project is almost done, wanted to see how fast it ran under the Pi which its destined to be on. After spending a long time trying to get it to compile there I decided I'd se

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-15 Thread Martin Schreiber
On Sunday 16 August 2015 02:33:24 Chris Moody wrote: > Hi all, > > I think my project is almost done, wanted to see how fast it ran under > the Pi which its destined to be on. After spending a long time trying to > get it to compile there I decided I'd see if cross compiling may be any > faster. >

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-15 Thread Chris Moody
On 08/15/2015 07:40 PM, Karoly Balogh (Charlie/SGR) wrote: Hi, On Sat, 15 Aug 2015, Chris Moody wrote: Is there a better guide on how to do this than: http://wiki.freepascal.org/fpcup#Linux_ARM_cross_compiler ? specifically as far as this sentence is concerned: * Linux/Unix build or ins

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-15 Thread Karoly Balogh (Charlie/SGR)
Hi, On Sat, 15 Aug 2015, Chris Moody wrote: > > > Is there a better guide on how to do this than: > > > http://wiki.freepascal.org/fpcup#Linux_ARM_cross_compiler ? specifically > > > as far as this > > > sentence is concerned: > > > > > > * Linux/Unix build or install the relevant crossbinutil

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-15 Thread Chris Moody
On 08/15/2015 06:40 PM, Karoly Balogh (Charlie/SGR) wrote: Hi, On Sat, 15 Aug 2015, Chris Moody wrote: Is there a better guide on how to do this than: http://wiki.freepascal.org/fpcup#Linux_ARM_cross_compiler ? specifically as far as this sentence is concerned: * Linux/Unix build or ins

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-15 Thread Karoly Balogh (Charlie/SGR)
Hi, On Sat, 15 Aug 2015, Chris Moody wrote: > Is there a better guide on how to do this than: > http://wiki.freepascal.org/fpcup#Linux_ARM_cross_compiler ? specifically as > far as this > sentence is concerned: > > * Linux/Unix build or install the relevant crossbinutils (Linux, unix) With Ub