Re: [fpc-pascal] Compiling arm-embedded fpc

2013-03-03 Thread Koenraad Lelong
Op 14-02-13 20:08, Michael Ring schreef: I might have found a hack to solve your linking problem for arm-embedded on linux, unfortunately I am not an expert on gnu ld, but perhaps this here gives a hint to somebody that knows how to properly solve your problem: First, create a script names arm-e

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-18 Thread Koenraad Lelong
Op 18-02-13 16:22, Michael Ring schreef: My guess is that you use an old version of ppcrossarm: Looking at your error message ppcrossarm is located in: /usr/bin/ppcrossarm which is a quite unusual place for it when you install it from trunk. Michael Hi Micheal, I don't think it's that. I st

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-18 Thread Michael Ring
My guess is that you use an old version of ppcrossarm: Looking at your error message ppcrossarm is located in: /usr/bin/ppcrossarm which is a quite unusual place for it when you install it from trunk. Michael Am 18.02.13 14:16, schrieb Koenraad Lelong: On 17-02-13 20:27, Michael Ring wrote:

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-18 Thread Koenraad Lelong
On 17-02-13 20:27, Michael Ring wrote: I did a quick check on Mac & Linux, on both platforms compiling & loading resulting .elf file into gdb works fine. Thank you very much, Michael Hi, I'm very confused. I must be doing something wrong, but I can't find out what. I tried this on a "virgi

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-17 Thread Michael Ring
I did a quick check on Mac & Linux, on both platforms compiling & loading resulting .elf file into gdb works fine. Thank you very much, Michael Am 17.02.13 19:57, schrieb Florian Klämpfl: Am 17.02.2013 17:50, schrieb Michael Ring: Hi Florian, I am not sure if this was completely clear to you

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-17 Thread Florian Klämpfl
Am 17.02.2013 17:50, schrieb Michael Ring: > Hi Florian, I am not sure if this was completely clear to you, this > problem only seems to exist on linux, my primary platform is mac, there > this is not necessary, also not on windows. Yes I know. But I wonder why linux would need this. This is not h

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-17 Thread Michael Ring
Hi Florian, I am not sure if this was completely clear to you, this problem only seems to exist on linux, my primary platform is mac, there this is not necessary, also not on windows. After Koenraad expirienced this problem on 30.01.2013 I tried on my Fedora 18 linux system and found the same

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-17 Thread Florian Klämpfl
Am 17.02.2013 09:28, schrieb Florian Klämpfl: > Am 14.02.2013 21:34, schrieb Michael Ring: >> I did a grep through the fpc sourcecode and found a reference in >> ./compiler/systems/t_linux.pas in an arm related ifdef section >> >> add(' .note.gnu.build-id : { *(.note.gnu.build-id) }'); >

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-17 Thread Florian Klämpfl
Am 14.02.2013 21:34, schrieb Michael Ring: > I did a grep through the fpc sourcecode and found a reference in > ./compiler/systems/t_linux.pas in an arm related ifdef section > > add(' .note.gnu.build-id : { *(.note.gnu.build-id) }'); > > so perhaps this is really missing in arm-embedd

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-15 Thread Koenraad Lelong
On 14-02-13 21:34, Michael Ring wrote: I did a grep through the fpc sourcecode and found a reference in ./compiler/systems/t_linux.pas in an arm related ifdef section add(' .note.gnu.build-id : { *(.note.gnu.build-id) }'); so perhaps this is really missing in arm-embedded target. The patch f

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-14 Thread Michael Ring
I did a grep through the fpc sourcecode and found a reference in ./compiler/systems/t_linux.pas in an arm related ifdef section add(' .note.gnu.build-id : { *(.note.gnu.build-id) }'); so perhaps this is really missing in arm-embedded target. The patch for for fpc/compiler/systems/t

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-14 Thread Jeppe Græsdal Johansen
Den 14-02-2013 20:39, Florian Klämpfl skrev: Am 14.02.2013 20:08, schrieb Michael Ring: I might have found a hack to solve your linking problem for arm-embedded on linux, unfortunately I am not an expert on gnu ld, but perhaps this here gives a hint to somebody that knows how to properly solve y

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-14 Thread Florian Klämpfl
Am 14.02.2013 20:08, schrieb Michael Ring: > I might have found a hack to solve your linking problem for arm-embedded > on linux, unfortunately I am not an expert on gnu ld, but perhaps this > here gives a hint to somebody that knows how to properly solve your > problem: > > First, create a script

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-02-14 Thread Michael Ring
I might have found a hack to solve your linking problem for arm-embedded on linux, unfortunately I am not an expert on gnu ld, but perhaps this here gives a hint to somebody that knows how to properly solve your problem: First, create a script names arm-embedded-ld with the following content:

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-30 Thread Michael Ring
I did some digging and found the following post: http://www.redhat.com/archives/rhl-devel-list/2007-October/msg01192.html and http://www.redhat.com/archives/rhl-devel-list/2007-October/msg01196.html It's quite old so I am not sure if this still is of relevance but at this time Freepascal did

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-30 Thread Koenraad Lelong
Hi, An update. I tried to make a crosscompiler with the new sources on my "old" developing machine. There I still get the segmentation fault. The difference is that that machine is 64 bit, while the appliance is 32 bit. Actually, that was why I made the appliance. To see if there were differ

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-30 Thread Koenraad Lelong
Hi Michael, I downloaded svn version 23457, and now I can compile the crosscompiler. Unfortunately, I can't compile a project with that crosscompiler. More precisely, the project can't be linked. I have to redo some things to note what I am doing and what the results are, but the linking stage se

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-27 Thread Koenraad Lelong
Op 24-01-13 22:05, Michael Ring schreef: I could reproduce the problem on Fedora 18 x86_64. The error shows up in revision 23457, the only file changed in this revision is compiler/arm/aoptcpu.pas. Checkin comment for file was: Revision *23457*

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-24 Thread Michael Ring
I could reproduce the problem on Fedora 18 x86_64. The error shows up in revision 23457, the only file changed in this revision is compiler/arm/aoptcpu.pas. Checkin comment for file was: Revision *23457* - (view

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-24 Thread Jeppe Græsdal Johansen
Den 24-01-2013 12:16, Koenraad Lelong skrev: On 24-01-13 11:24, Jeppe Græsdal Johansen wrote: Looks like a memory corruption problem. I just tried to compile trunk with 2.6.0 as a starting compiler on win32 and had no problems(apart from the broken RTL). What starting compiler and what os/cpu a

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-24 Thread Koenraad Lelong
On 24-01-13 11:24, Jeppe Græsdal Johansen wrote: Looks like a memory corruption problem. I just tried to compile trunk with 2.6.0 as a starting compiler on win32 and had no problems(apart from the broken RTL). What starting compiler and what os/cpu are you on? Hi, What do you mean with memor

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-24 Thread Jeppe Græsdal Johansen
Looks like a memory corruption problem. I just tried to compile trunk with 2.6.0 as a starting compiler on win32 and had no problems(apart from the broken RTL). What starting compiler and what os/cpu are you on? Den 23-01-2013 19:28, Koenraad Lelong skrev: On 23-01-13 17:20, Tomas Hajny wrote

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-23 Thread Koenraad Lelong
On 23-01-13 17:20, Tomas Hajny wrote: OPT=-gl -Xs- Thanks, I comiled this way : make clean buildbase installbase "OPT=-gl -Xs- -O-" CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv7 That gives this : > gdb --args ../../compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur -Tembedded -Pa

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-23 Thread Tomas Hajny
On Wed, January 23, 2013 14:38, Koenraad Lelong wrote: Hi, > I was looking into the latest fpc to see if there were updates about > arm-embedded since my last version. Indeed there are ! > So I downloaded it (svn 23505) and tried to compile it, following the > wiki (http://wiki.freepascal.org/TA

[fpc-pascal] Compiling arm-embedded fpc

2013-01-23 Thread Koenraad Lelong
Hi, I was looking into the latest fpc to see if there were updates about arm-embedded since my last version. Indeed there are ! So I downloaded it (svn 23505) and tried to compile it, following the wiki (http://wiki.freepascal.org/TARGET_Embedded). It crashes at 'ppcrossarm system.pp', message