Re: [fpc-pascal] fpc on Armel issues

2009-08-28 Thread Nataraj S Narayan
Yikes! Gtk2 apps are working on Arm-linux SBC. Now I need to get qt-embededed to work with fpc and then lazarus. Kudos for the team! regards Nataraj On Fri, Aug 28, 2009 at 3:15 PM, Jonas Maebe wrote: > > On 28 Aug 2009, at 11:40, Nataraj S Narayan wrote: > >> On Fri, Aug 28, 2009 at 3:06 PM

Re: [fpc-pascal] fpc on Armel issues

2009-08-28 Thread Nataraj S Narayan
HI # strings firework |grep ld /software/arm-lib/ld-linux.so.3 #strings framebuffer |grep ld /lib/ld-linux.so.3 I have put the contents of # strings firework in pastebin http://pastebin.com/m10d2cc6f Some of the contents are :- 6This binary has no unicodestrings support compiled in. SRecompil

Re: [fpc-pascal] fpc on Armel issues

2009-08-28 Thread Jonas Maebe
On 28 Aug 2009, at 11:40, Nataraj S Narayan wrote: On Fri, Aug 28, 2009 at 3:06 PM, Jonas Maebe wrote: On 28 Aug 2009, at 11:17, Nataraj S Narayan wrote: # strings firework |grep ld /software/arm-lib/ld-linux.so.3 That's probably the problem. This means that to start the program, the k

Re: [fpc-pascal] fpc on Armel issues

2009-08-28 Thread Henry Vermaak
2009/8/28 Nataraj S Narayan : > HI > > # strings firework |grep ld > /software/arm-lib/ld-linux.so.3 This is due to the command line options -Fl/software/arm-lib and -FL/software/arm-lib? Henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] fpc on Armel issues

2009-08-28 Thread Nataraj S Narayan
Hi Jonas That was it! Now its working fine. Where did i miss while compiling? regards & thanks Nataraj On Fri, Aug 28, 2009 at 3:06 PM, Jonas Maebe wrote: > > On 28 Aug 2009, at 11:17, Nataraj S Narayan wrote: > >> # strings firework |grep ld >> /software/arm-lib/ld-linux.so.3 > > That's proba

Re: [fpc-pascal] fpc on Armel issues

2009-08-28 Thread Jonas Maebe
On 28 Aug 2009, at 11:17, Nataraj S Narayan wrote: # strings firework |grep ld /software/arm-lib/ld-linux.so.3 That's probably the problem. This means that to start the program, the kernel will look for /software/arm-lib/ld-linux.so.3 on your ARM system, and it obviously won't find it. Th

Re: [fpc-pascal] fpc on Armel issues

2009-08-28 Thread Jonas Maebe
On 28 Aug 2009, at 10:29, Nataraj S Narayan wrote: On Fri, Aug 28, 2009 at 1:47 PM, Jonas Maebe wrote: On 28 Aug 2009, at 07:19, Nataraj S Narayan wrote: Here are the details of 2 binaries - first compiled using fpc-arm and second qt4 for arm. The second one is working, Are both assemb

Re: [fpc-pascal] fpc on Armel issues

2009-08-28 Thread Nataraj S Narayan
Yes Using Codesourcery :- arm-none-lnux-gnueab- regards Nataraj On Fri, Aug 28, 2009 at 1:47 PM, Jonas Maebe wrote: > > On 28 Aug 2009, at 07:19, Nataraj S Narayan wrote: > >> Here are the details of 2 binaries - first compiled using fpc-arm and >> second qt4 for arm. The second one is working,

Re: [fpc-pascal] fpc on Armel issues

2009-08-28 Thread Jonas Maebe
On 28 Aug 2009, at 07:19, Nataraj S Narayan wrote: Here are the details of 2 binaries - first compiled using fpc-arm and second qt4 for arm. The second one is working, Are both assembled/linked now with the same toolchain? Jonas ___ fpc-pascal mai

Re: [fpc-pascal] fpc on Armel issues

2009-08-27 Thread Nataraj S Narayan
Hi My problem still persists. Here are the details of 2 binaries - first compiled using fpc-arm and second qt4 for arm. The second one is working, 1. debian-armel:~# readelf -h firework ELF Header: Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 Class: E

Re: [fpc-pascal] fpc on Armel issues

2009-08-25 Thread Henry Vermaak
2009/8/25 Nataraj S Narayan : > Hi Henry > > Not any particular reason for that. Company policy was to get rid of > Angtrom and go for Debian. > > Well seems debian-armel is also EABI 4. Would you suggest me a RFS with EABI > 5? I'm just saying that you won't have these problems if you stick to t

Re: [fpc-pascal] fpc on Armel issues

2009-08-25 Thread Nataraj S Narayan
Hi Henry Not any particular reason for that. Company policy was to get rid of Angtrom and go for Debian. Well seems debian-armel is also EABI 4. Would you suggest me a RFS with EABI 5? regards Nataraj On Tue, Aug 25, 2009 at 6:39 PM, Henry Vermaak wrote: > 2009/8/25 Nataraj S Narayan : >> Hi

Re: [fpc-pascal] fpc on Armel issues

2009-08-25 Thread Henry Vermaak
2009/8/25 Nataraj S Narayan : > Hi Henry > > You mean both fpc and app ? No, I mean everything. > > I compile kernel with codesourcery. But the Distro is Angstrom which has > its own arm-angstrom-linux-gnueabi-* Is there a reason why you don't use the distro toolchain for everything? Henry

Re: [fpc-pascal] fpc on Armel issues

2009-08-25 Thread Nataraj S Narayan
Hi Henry You mean both fpc and app ? I compile kernel with codesourcery. But the Distro is Angstrom which has its own arm-angstrom-linux-gnueabi-* regards Nataraj On Tue, Aug 25, 2009 at 6:12 PM, Henry Vermaak wrote: > 2009/8/25 Nataraj S Narayan : >> Hi >> >> using arm-2009q1/arm-none-linux-

Re: [fpc-pascal] fpc on Armel issues

2009-08-25 Thread Henry Vermaak
2009/8/25 Nataraj S Narayan : > Hi > > using  arm-2009q1/arm-none-linux-gnueabi/bin/. from Codesourcery. Why don't you use the toolchain with which your system was compiled in the first place? Henry ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

Re: [fpc-pascal] fpc on Armel issues

2009-08-25 Thread Nataraj S Narayan
Hi using arm-2009q1/arm-none-linux-gnueabi/bin/. from Codesourcery. Should i try out older version, maybe 2008? Are you prsently logged onto Freenode? regards Nataraj On Tue, Aug 25, 2009 at 5:56 PM, Florian Klaempfl wrote: > Nataraj S Narayan schrieb: >> Hi >> >> Fpc compiled binary:- >> r

Re: [fpc-pascal] fpc on Armel issues

2009-08-25 Thread Jonas Maebe
On 25 Aug 2009, at 14:16, Nataraj S Narayan wrote: Fpc compiled binary:- r...@at91sam9263ek:~$ readelf -h firework ELF Header: Flags: 0x502, has entry point, Version5 EABI Other Binary:- r...@at91sam9263ek:~$ readelf -h formshow ELF Header: Flags:

Re: [fpc-pascal] fpc on Armel issues

2009-08-25 Thread Florian Klaempfl
Nataraj S Narayan schrieb: > Hi > > Fpc compiled binary:- > r...@at91sam9263ek:~$ readelf -h firework > ELF Header: > Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 > Class: ELF32 > Data: 2's complement, little endian > Ver

Re: [fpc-pascal] fpc on Armel issues

2009-08-25 Thread Nataraj S Narayan
Hi Fpc compiled binary:- r...@at91sam9263ek:~$ readelf -h firework ELF Header: Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current)

Re: [fpc-pascal] fpc on Armel issues

2009-08-25 Thread Jonas Maebe
On 25 Aug 2009, at 13:44, Nataraj S Narayan wrote: Tried all the tricks. chmod +x firework sh firework firework: firework: 1: Syntax error: word unexpect That is normal, because as mentioned before firework is not a shell script. The above command tells sh to try to read the compiled prog

Re: [fpc-pascal] fpc on Armel issues

2009-08-25 Thread Marco van de Voort
In our previous episode, Nataraj S Narayan said: > dynamically linked (uses shared libs), not stripped > > while another non-fpc app shows:- > > r...@at91sam9263ek:~$ file formshow > formshow: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for > GNU/Linux 2.6.14, dynamically linked (uses share

Re: [fpc-pascal] fpc on Armel issues

2009-08-25 Thread Nataraj S Narayan
Hi Jonas Tried all the tricks. chmod +x firework sh firework firework: firework: 1: Syntax error: word unexpect ./firework -sh: ./firework: not found ed (expecting ")") regards On Tue, Aug 25, 2009 at 5:09 PM, Jonas Maebe wrote: > > On 25 Aug 2009, at 13:35, Nataraj S Narayan wrote: > >>

Re: [fpc-pascal] fpc on Armel issues

2009-08-25 Thread Jonas Maebe
On 25 Aug 2009, at 13:35, Nataraj S Narayan wrote: the resulting binaries (firework etc) are not executing on the arm-linux board as well as qemu. r...@at91sam9263ek:~$ sh firework firework: firework: 1: Syntax error: word unexpected (expecting ")") You are trying to execute the program as a

[fpc-pascal] fpc on Armel issues

2009-08-25 Thread Nataraj S Narayan
Hi At revision 13589. Got a full build of FPC with :- /usr/local/lib/fpc/2.5.1/ppcrossarm -MObjFPC -TLinux -Parmv5 -gl -Xd -Xs -l -XP/armbin/arm-none-linux-gnueabi- -CfSOFT -CaEABI -darm -gl -O- -CpARMV5 ./$1 -uUSE_LOCALIZE -Fu/usr/local/lib/fpc/2.5.1/units/arm-linux/ -Fl/software/arm-lib [r.