Re: [Lazarus] on ARM Linux ,SoftFloat and EABI issues
Hi Henry Please give me the exact command used by you for compiling. regards Nataraj Henry Vermaak wrote: 2008/5/31 Nataraj S Narayan [EMAIL PROTECTED]: Henry, Thanks for the suggestions. Will try cross compiling. I cross compile using /home/nataraj/arm-2008q1/arm-none-linux-gnueabi-. Freepascal wiki says to install fpc for the native x86 machine first. Then go for fpc-arm version 2.0.4. Which version of fpc should i install in native host - 2.2.0 or 2.0.4? Also, for cross compiling 2.0.4 ,how do i specify the said cross bin utils ? i use trunk to cross compile for arm, but i think fixes_2_2 will also work. you should use 2.2.0 as a starting compiler (but 2.0.4) also works for me. you have to tell the build system where your binutils are (BINUTILSDIR=/home/nataraj/arm-2008q1/) and what prefix you use (BINUTILSPREFIX=arm-none-linux-gnueabi-). then you need to use CROSSOPT=-CfSOFT for the softfloat business. all the packages get built for me, it just dies near the end of make crossinstall. the buildfaq contains good info (thanks to marco): www.stack.nl/~marcov/buildfaq.pdf henry ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] on ARM Linux ,SoftFloat and EABI issues
2008/6/5 Nataraj S Narayan [EMAIL PROTECTED]: Hi Henry Please give me the exact command used by you for compiling. here's a script. change the params as you need. henry buildarm.sh Description: Bourne shell script ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] on ARM Linux ,SoftFloat and EABI issues
Hi Henry Thank you. Trying it out. Compilation getting aborted telling make[5]: Entering directory `/home/kodi/fpc/rtl/linux' /bin/mkdir -p /home/kodi/fpc/rtl/units/arm-linux /home/nataraj/arm-2008pq1/arm-none-linux-gnueabi/bin/as -o /home/kodi/fpc/rtl/units/arm-linux/prt0.o arm/prt0.as make[5]: /home/nataraj/arm-2008pq1/arm-none-linux-gnueabi/bin/as: Command not found make[5]: *** [prt0.o] Error 127 But path for assembler is correct. It build the ppcrossarm in fpc/compiler. I am able to compile a program with it after symlinking the above assembler and linker to /usr/local/bin/arm-linux-as and arm-linux-ld respectively. Lots of warning are generated. But when I copied the binary to Target linux, the execution just hangs wihtout output till I CTRL-C. home/nataraj/arm-2008pq1/arm-none-linux-gnueabi/bin/ is bin utils from Sourcery that is used to compile kernel 2.6.25 for ARM board. What else should I do? regards Nataraj Henry Vermaak wrote: 2008/6/5 Nataraj S Narayan [EMAIL PROTECTED]: Hi Henry Please give me the exact command used by you for compiling. here's a script. change the params as you need. henry ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] on ARM Linux ,SoftFloat and EABI issues
Henry Vermaak escribió: 2008/6/5 Nataraj S Narayan [EMAIL PROTECTED]: Hi Henry Please give me the exact command used by you for compiling. here's a script. change the params as you need. What does the crossinstall target do? (I mean, differently than plain install) Bye -- Luca ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] on ARM Linux ,SoftFloat and EABI issues
Henry, Thanks for the suggestions. Will try cross compiling. I cross compile using /home/nataraj/arm-2008q1/arm-none-linux-gnueabi-. Freepascal wiki says to install fpc for the native x86 machine first. Then go for fpc-arm version 2.0.4. Which version of fpc should i install in native host - 2.2.0 or 2.0.4? Also, for cross compiling 2.0.4 ,how do i specify the said cross bin utils ? regards Nataraj Henry Vermaak wrote: 2008/5/30 Nataraj S Narayan [EMAIL PROTECTED]: Hi Florian and other friends I am involved in porting existing C code to Arm Linux for AT91SAM9263 Ek board with 340x220 display. I need to write lots of console kinda apps. I am using a qemu-system-arm emulated Armel Debian machine on a Debian x86 Lenny distro for writing code. I installed fpc-2.2.0.arm-linux.tar on the emulated linux. Which compiling a simple helloworld.pas , i get the classic error of System.o being EABI 0 while target is EABI 4. I have got the svn download of fpc, and trying to compile it in the emulated machine for ARM for the past 2 days. I have given :- make clean all ARCH=arm OPT=-CfSoft. the makefiles use CPU_TARGET, but this shouldn't be necessary when you're compiling natively (or inside an emulator, even). i'd recommend going the cross compile route (since i know that works with trunk). just compile binutils (./configure --target arm) and compile fpc with: make crossall CPU_TARGET=arm CROSSOPT=-CfSOFT you can use other envvars, too, just inspect the makefile if you're brave, or read the buildfaq for some good info. henry ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] on ARM Linux ,SoftFloat and EABI issues
2008/5/31 Nataraj S Narayan [EMAIL PROTECTED]: Henry, Thanks for the suggestions. Will try cross compiling. I cross compile using /home/nataraj/arm-2008q1/arm-none-linux-gnueabi-. Freepascal wiki says to install fpc for the native x86 machine first. Then go for fpc-arm version 2.0.4. Which version of fpc should i install in native host - 2.2.0 or 2.0.4? Also, for cross compiling 2.0.4 ,how do i specify the said cross bin utils ? i use trunk to cross compile for arm, but i think fixes_2_2 will also work. you should use 2.2.0 as a starting compiler (but 2.0.4) also works for me. you have to tell the build system where your binutils are (BINUTILSDIR=/home/nataraj/arm-2008q1/) and what prefix you use (BINUTILSPREFIX=arm-none-linux-gnueabi-). then you need to use CROSSOPT=-CfSOFT for the softfloat business. all the packages get built for me, it just dies near the end of make crossinstall. the buildfaq contains good info (thanks to marco): www.stack.nl/~marcov/buildfaq.pdf henry ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] on ARM Linux ,SoftFloat and EABI issues
Hi Florian and other friends I am involved in porting existing C code to Arm Linux for AT91SAM9263 Ek board with 340x220 display. I need to write lots of console kinda apps. I am using a qemu-system-arm emulated Armel Debian machine on a Debian x86 Lenny distro for writing code. I installed fpc-2.2.0.arm-linux.tar on the emulated linux. Which compiling a simple helloworld.pas , i get the classic error of System.o being EABI 0 while target is EABI 4. I have got the svn download of fpc, and trying to compile it in the emulated machine for ARM for the past 2 days. I have given :- make clean all ARCH=arm OPT=-CfSoft. Its compiling for quite long and finally comes to rest endlessly while compiling system.pp. Let me remind you that i am dont use a Cross compiler, but an emulated Arm machine. My boss and colleagues are 'C only' programmers . Doing all kinda harware access for embedded devices using C. They have developed pretty good successful apps using pure C without an OS. What i have been trying is to convice them to use Freepascal for the Application part, which is presently console Apps. The next stage is to develop X apps using Lazarus. But for these I need to get FPC working. Please help. regards Nataraj ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] on ARM Linux ,SoftFloat and EABI issues
2008/5/30 Nataraj S Narayan [EMAIL PROTECTED]: Hi Florian and other friends I am involved in porting existing C code to Arm Linux for AT91SAM9263 Ek board with 340x220 display. I need to write lots of console kinda apps. I am using a qemu-system-arm emulated Armel Debian machine on a Debian x86 Lenny distro for writing code. I installed fpc-2.2.0.arm-linux.tar on the emulated linux. Which compiling a simple helloworld.pas , i get the classic error of System.o being EABI 0 while target is EABI 4. I have got the svn download of fpc, and trying to compile it in the emulated machine for ARM for the past 2 days. I have given :- make clean all ARCH=arm OPT=-CfSoft. the makefiles use CPU_TARGET, but this shouldn't be necessary when you're compiling natively (or inside an emulator, even). i'd recommend going the cross compile route (since i know that works with trunk). just compile binutils (./configure --target arm) and compile fpc with: make crossall CPU_TARGET=arm CROSSOPT=-CfSOFT you can use other envvars, too, just inspect the makefile if you're brave, or read the buildfaq for some good info. henry ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus