Re: [fpc-devel] fpc on arm-linux-uclibc and OABI
Hi Henry Program received signal SIGSEGV, Segmentation fault. 0x001727dc in TQTOBJECT__BEGINEVENTPROCESSING (this=0x16bc38) at qtobjects.pas:820 820 inc(FInEventCount); Current language: auto; currently pascal (gdb) bt #0 0x001727dc in TQTOBJECT__BEGINEVENTPROCESSING (this=0x16bc38) at qtobjects.pas:820 #1 0x0016bc84 in TQTMAINWINDOW__EVENTFILTER (SENDER=0x21f7d8, EVENT=0xbe8c55d0, this=0x16bc38) at qtwidgets.pas:4433 #2 0x401c0ab4 in QList::~QList () from /usr/lib/libqt4intf.so.5 Backtrace stopped: previous frame inner to this frame (corrupt stack?) regards Nataraj On Wed, Mar 3, 2010 at 4:24 PM, Henry Vermaak wrote: > On 2 March 2010 12:51, Nataraj S Narayan wrote: >> open("/tmp/qtembedded-0//fonts/dejavu_sans_12_50.qsf", >> O_RDWR|O_CREAT|O_EXCL, 0644) = 13 >> write(13, "QPF2\0\0\0\0\2\0\0\270\0\0\0\vDejaVu Sans\0\1\0*/"..., 16568) = >> 16568 >> fstat64(13, {st_mode=S_IFREG|0644, st_size=16568, ...}) = 0 >> mmap2(NULL, 16568, PROT_READ|PROT_WRITE, MAP_SHARED, 13, 0) = 0x41cf8000 >> mmap2(NULL, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, >> -1, 0) = 0x41cfd000 >> --- SIGSEGV (Segmentation fault) @ 0 (0) --- > > Can you get a backtrace? It appears to be inside qt code. May even > be corrupt font. > > Henry > ___ > fpc-devel maillist - fpc-devel@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-devel > ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on arm-linux-uclibc and OABI
On 2 March 2010 12:51, Nataraj S Narayan wrote: > open("/tmp/qtembedded-0//fonts/dejavu_sans_12_50.qsf", > O_RDWR|O_CREAT|O_EXCL, 0644) = 13 > write(13, "QPF2\0\0\0\0\2\0\0\270\0\0\0\vDejaVu Sans\0\1\0*/"..., 16568) = > 16568 > fstat64(13, {st_mode=S_IFREG|0644, st_size=16568, ...}) = 0 > mmap2(NULL, 16568, PROT_READ|PROT_WRITE, MAP_SHARED, 13, 0) = 0x41cf8000 > mmap2(NULL, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, > -1, 0) = 0x41cfd000 > --- SIGSEGV (Segmentation fault) @ 0 (0) --- Can you get a backtrace? It appears to be inside qt code. May even be corrupt font. Henry ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on arm-linux-uclibc and OABI
Hi Darek Applied the patch and now the linker error is gone. Thanks! But the program breaks off a little later than before with a seg fault. Please have a loot at the strace output:- http://pastebin.org/99919 regards Nataraj 2010/3/1 : >> /usr/local/lib/fpc/2.5.1/units/arm-linux/rtl/system.o: In function >> `SYSTEM_SYSTEM_EXIT': >> system.pp:(.text.n_system_system_exit+0x10): undefined reference to >> `_haltproc_eabi' >> noy1.lpr(23) Error: Error while linking >> noy1.lpr(23) Fatal: There were 1 errors compiling module, stopping >> Fatal: Compilation aborted >> >> Again, have I missed out something? > > Here is patch for rtl/linux/arm/ucprt0.as which add misses reference > simple copy, but it works for me > > I use them from some time. > > Darek > > > > ___ > fpc-devel maillist - fpc-devel@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-devel > > ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on arm-linux-uclibc and OABI
> /usr/local/lib/fpc/2.5.1/units/arm-linux/rtl/system.o: In function > `SYSTEM_SYSTEM_EXIT': > system.pp:(.text.n_system_system_exit+0x10): undefined reference to > `_haltproc_eabi' > noy1.lpr(23) Error: Error while linking > noy1.lpr(23) Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted > > Again, have I missed out something? Here is patch for rtl/linux/arm/ucprt0.as which add misses reference simple copy, but it works for me I use them from some time. Darek rr Description: Binary data ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on arm-linux-uclibc and OABI
On 01 Mar 2010, at 12:24, Nataraj S Narayan wrote: > system.pp:(.text.n_system_system_exit+0x10): undefined reference to > `_haltproc_eabi' > noy1.lpr(23) Error: Error while linking > noy1.lpr(23) Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted > > Again, have I missed out something? The uclibc startup code in FPC has never been adapted for EABI support. As mentioned earlier: it is not maintained. You can try copying the _haltproc_eabi from cprt0.as, but a) it may still not work b) it will still be unmaintained and unsupported until someone steps in to properly maintain it Jonas___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on arm-linux-uclibc and OABI
Yep. Got the zip root nataraj 15342919 Mar 1 15:59 /software/fpc/fpc-2.5.1.arm-linux.tar.gz using #gmake all crosszipinstall CPU_TARGET=arm OS_TARGET=linux OPT=-dFPC_ARMEL After that, replaced /usr/local/lib/fpc/2.5.1/units/arm-linux with the corresponding one inside the tar.gz The tried compiling a lazarus-qt program using :- # ppcrossarm -MObjFPC -Sgi -CX -TLinux -Parm -gl -XX -l -Fi/home/siddhiq/:/software/lazarus-svn/lcl/units/arm-linux/include/ -Fl/cdrom/output/build/staging_dir/usr/lib/ -Fl/cdrom/output/build/staging_dir/lib/ -Fu/software/lazarus-svn/lcl/units/arm-linux/ -Fu/software/lazarus-svn/lcl/units/arm-linux/qt/ -Fu/software/lazarus-svn/packager/units/arm-linux/ -Fu. -dFPC_ARMEL -XLAc= -XR/cdrom/output/target /home/siddhiq/noy1.lpr Free Pascal Compiler version 2.5.1 [2010/03/01] for arm Copyright (c) 1993-2009 by Florian Klaempfl Target OS: Linux for ARMEL Compiling /home/siddhiq/noy1.lpr Assembling noy1 Compiling resource /home/siddhiq/noy1.or Linking /home/siddhiq/noy1 /usr/local/lib/fpc/2.5.1/units/arm-linux/rtl/system.o: In function `SYSTEM_SYSTEM_EXIT': system.pp:(.text.n_system_system_exit+0x10): undefined reference to `_haltproc_eabi' noy1.lpr(23) Error: Error while linking noy1.lpr(23) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted Again, have I missed out something? regards Nataraj On 3/1/10, Florian Klaempfl wrote: > Nataraj S Narayan schrieb: >> Florian >> >> Getting this kinda errors when using:- > > No wonder. Read again what I wrote. > >> >> # gmake distclean crosszipinstall CPU_TARGET=arm OS_TARGET=linux >> CROSSOPT='-dFPC-ARMEL ' >> #make distclean crosszipinstall CPU_TARGET=arm CROSSOPT='-CfSOFT -darm -dFPC-ARMEL -gl' >>> As I said multiple times, only OPT=-dFPC_ARMEL is needed. No -CfSOFT, no >>> -darm, especially not in CROSSOPT. > > ___ > fpc-devel maillist - fpc-devel@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-devel > ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on arm-linux-uclibc and OABI
Nataraj S Narayan schrieb: > Florian > > Getting this kinda errors when using:- No wonder. Read again what I wrote. > > # gmake distclean crosszipinstall CPU_TARGET=arm OS_TARGET=linux > CROSSOPT='-dFPC-ARMEL ' > >>> #make distclean crosszipinstall CPU_TARGET=arm CROSSOPT='-CfSOFT -darm >>> -dFPC-ARMEL -gl' >> As I said multiple times, only OPT=-dFPC_ARMEL is needed. No -CfSOFT, no >> -darm, especially not in CROSSOPT. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on arm-linux-uclibc and OABI
Hi Same problem with "arm-none-linux-gnueabi-" toolachain from Codesourcery also, which i presume is not uclibc based. Using this toolchain for kernel compilation, regards Nataraj On Mon, Mar 1, 2010 at 12:18 PM, Nataraj S Narayan wrote: > Florian > > Getting this kinda errors when using:- > > # gmake distclean crosszipinstall CPU_TARGET=arm OS_TARGET=linux > CROSSOPT='-dFPC-ARMEL ' > > without -CfSoft -darm. I am on "arm-linux-uclibcgnueabi-" symlinked to > arm-linux- toolchain. > > regards > > Nataraj > > /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:43638: > Error: selected processor does not support `stfd f0, > [r13,#4]' > /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:43639: > Error: selected processor does not support `ldfd f0, > [r13,#4]' > /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:45253: > Error: selected processor does not support `fltd f1, > r0' > /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:45256: > Error: selected processor does not support `ldfltd f > 0,[r0]' > /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:45257: > Error: selected processor does not support `adfltd f > 1,f0,f1' > /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:45259: > Error: selected processor does not support `ldfd f0, > [r0]' > /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:45260: > Error: selected processor does not support `mufd f1, > f1,f0' > /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:45261: > Error: selected processor does not support `mvfd f0, > f1' > /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:55571: > Error: selected processor does not support `sfm f4,1 > ,[r11,#-316]' > /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:55576: > Error: selected processor does not support `stfd f0, > [r11,#-304]' > /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:55577: > Error: selected processor does not support `ldfd f4, > [r11,#-304]' > /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:55597: > Error: selected processor does not support `mvfd f0, > f4' > /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:55607: > Error: selected processor does not support `lfm f4,1 > ,[r11,#-316]' > /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:57015: > Error: selected processor does not support `stfd f0, > [r5]' > system.pp(380) Error: Error while assembling exitcode 1 > system.pp(380) Fatal: There were 2 errors compiling module, stopping > Fatal: Compilation aborted > gmake[5]: *** [system.ppu] Error 1 > gmake[5]: Leaving directory `/usr/home/nataraj/software/fpc/rtl/linux' > gmake[4]: *** [fpc_smart] Error 2 > gmake[4]: Leaving directory `/usr/home/nataraj/software/fpc/rtl/linux' > gmake[3]: *** [linux_smart] Error 2 > gmake[3]: Leaving directory `/usr/home/nataraj/software/fpc/rtl' > gmake[2]: *** [rtl_smart] Error 2 > gmake[2]: Leaving directory `/usr/home/nataraj/software/fpc' > gmake[1]: *** [build-stamp.arm-linux] Error 2 > gmake[1]: Leaving directory `/usr/home/nataraj/software/fpc' > gmake: *** [crosszipinstall] Error 2 > > > > On Sat, Feb 27, 2010 at 10:03 PM, Florian Klämpfl > wrote: >> >> On Sat, 27 Feb 2010 19:17:48 +0530, Nataraj S Narayan >> wrote: >>> Jonas >>> >>> >>> #make distclean crosszipinstall CPU_TARGET=arm CROSSOPT='-CfSOFT -darm >>> -dFPC-ARMEL -gl' >> >> As I said multiple times, only OPT=-dFPC_ARMEL is needed. No -CfSOFT, no >> -darm, especially not in CROSSOPT. >> ___ >> fpc-devel maillist - fpc-devel@lists.freepascal.org >> http://lists.freepascal.org/mailman/listinfo/fpc-devel >> > ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on arm-linux-uclibc and OABI
Florian Getting this kinda errors when using:- # gmake distclean crosszipinstall CPU_TARGET=arm OS_TARGET=linux CROSSOPT='-dFPC-ARMEL ' without -CfSoft -darm. I am on "arm-linux-uclibcgnueabi-" symlinked to arm-linux- toolchain. regards Nataraj /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:43638: Error: selected processor does not support `stfd f0, [r13,#4]' /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:43639: Error: selected processor does not support `ldfd f0, [r13,#4]' /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:45253: Error: selected processor does not support `fltd f1, r0' /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:45256: Error: selected processor does not support `ldfltd f 0,[r0]' /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:45257: Error: selected processor does not support `adfltd f 1,f0,f1' /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:45259: Error: selected processor does not support `ldfd f0, [r0]' /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:45260: Error: selected processor does not support `mufd f1, f1,f0' /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:45261: Error: selected processor does not support `mvfd f0, f1' /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:55571: Error: selected processor does not support `sfm f4,1 ,[r11,#-316]' /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:55576: Error: selected processor does not support `stfd f0, [r11,#-304]' /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:55577: Error: selected processor does not support `ldfd f4, [r11,#-304]' /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:55597: Error: selected processor does not support `mvfd f0, f4' /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:55607: Error: selected processor does not support `lfm f4,1 ,[r11,#-316]' /usr/home/nataraj/software/fpc/rtl/units/arm-linux/system.s:57015: Error: selected processor does not support `stfd f0, [r5]' system.pp(380) Error: Error while assembling exitcode 1 system.pp(380) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted gmake[5]: *** [system.ppu] Error 1 gmake[5]: Leaving directory `/usr/home/nataraj/software/fpc/rtl/linux' gmake[4]: *** [fpc_smart] Error 2 gmake[4]: Leaving directory `/usr/home/nataraj/software/fpc/rtl/linux' gmake[3]: *** [linux_smart] Error 2 gmake[3]: Leaving directory `/usr/home/nataraj/software/fpc/rtl' gmake[2]: *** [rtl_smart] Error 2 gmake[2]: Leaving directory `/usr/home/nataraj/software/fpc' gmake[1]: *** [build-stamp.arm-linux] Error 2 gmake[1]: Leaving directory `/usr/home/nataraj/software/fpc' gmake: *** [crosszipinstall] Error 2 On Sat, Feb 27, 2010 at 10:03 PM, Florian Klämpfl wrote: > > On Sat, 27 Feb 2010 19:17:48 +0530, Nataraj S Narayan > wrote: >> Jonas >> >> >> #make distclean crosszipinstall CPU_TARGET=arm CROSSOPT='-CfSOFT -darm >> -dFPC-ARMEL -gl' > > As I said multiple times, only OPT=-dFPC_ARMEL is needed. No -CfSOFT, no > -darm, especially not in CROSSOPT. > ___ > fpc-devel maillist - fpc-devel@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-devel > ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on arm-linux-uclibc and OABI
On Sat, 27 Feb 2010 19:17:48 +0530, Nataraj S Narayan wrote: > Jonas > > > #make distclean crosszipinstall CPU_TARGET=arm CROSSOPT='-CfSOFT -darm > -dFPC-ARMEL -gl' As I said multiple times, only OPT=-dFPC_ARMEL is needed. No -CfSOFT, no -darm, especially not in CROSSOPT. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on arm-linux-uclibc and OABI
I untar the units/arm-linux to /usr/local/lib/fpc/2.5.1/units/arm-linux/. compiled using -vu; log shows (FPIMAGE) PPU Name: /usr/local/lib/fpc/2.5.1/units/arm-linux/fcl-image/fpimage.ppu (FPIMAGE) PPU Time: 2010/02/08 12:27:24 . . . . My ~/.fpc.cfs has :- -XParm-linux- -Xd -CfSOFT -Fl/cdrom/output/build/staging_dir/usr/bin -Fl/cdrom/output/build/staging_dir/usr/arm-linux-uclibcgnueabi/lib -Fl/cdrom/output/build/staging_dir/lib -FD/cdrom/output/build/staging_dir/usr/bin -FL/cdrom/output/build/staging_dir/lib/ld-uClibc.so.0 -FL/usr/local/lib/libqt4intf.so -Fu/usr/local/lib/fpc/2.5.1/units/arm-linux/fcl-db/ -Fu/usr/local/lib/fpc/2.5.1/units/arm-linux/fcl-xml -Fu/usr/local/lib/fpc/2.5.1/units/arm-linux -Fu/usr/local/lib/fpc/2.5.1/units/arm-linux/fcl -Fu/usr/local/lib/fpc/2.5.1/units/arm-linux/rtl -Fu/software/lazarus-svn/lcl/units/arm-linux -Fu/usr/local/lib/fpc/2.5.1/units/arm-linux/fcl-base -Fu/usr/local/lib/fpc/2.5.1/units/arm-linux/fcl-image -Fu/usr/local/lib/fpc/2.5.1/units/arm-linux/paszlib -Fu/usr/local/lib/fpc/2.5.1/units/arm-linux/hash -Fu/usr/local/lib/fpc/2.5.1/units/arm-linux/pasjpeg -Fu/usr/local/lib/fpc/2.5.1/units/arm-linux/fcl-process -Fu/usr/local/lib/fpc/2.5.1/units/arm-linux/x11 -Fu/software/lazarus-svn/lcl/widgetset/ -Fu/software/lazarus-svn/lcl/ -Fi/software/lazarus-svn/lcl/include/ #IFDEF armlclqt -Fu/software/lazarus-svn/lcl/units/arm-linux/qt -Fu/software/lazarus-svn/lcl/interfaces/qt #ENDIF #ENDIF regards Nataraj On Sat, Feb 27, 2010 at 7:29 PM, Jonas Maebe wrote: > > On 27 Feb 2010, at 14:47, Nataraj S Narayan wrote: > >> #make distclean crosszipinstall CPU_TARGET=arm CROSSOPT='-CfSOFT -darm >> -dFPC-ARMEL -gl' > > zipinstall creates a tar file. Did you also unpack its contents afterwards > and point the compiler to those unpacked units? > >> I am following the procedures listed in >> http://www.klc.net.nz/linux/?page_id=13 > > The gdb error proves that you are using an RTL that has been compiled for > OABI. Use the -vu parameter to figure out where the compiler is getting its > units from while compiling your program, and verify that this is indeed where > you installed them. > > > Jonas___ > fpc-devel maillist - fpc-devel@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-devel > ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on arm-linux-uclibc and OABI
On 27 Feb 2010, at 14:47, Nataraj S Narayan wrote: > #make distclean crosszipinstall CPU_TARGET=arm CROSSOPT='-CfSOFT -darm > -dFPC-ARMEL -gl' zipinstall creates a tar file. Did you also unpack its contents afterwards and point the compiler to those unpacked units? > I am following the procedures listed in > http://www.klc.net.nz/linux/?page_id=13 The gdb error proves that you are using an RTL that has been compiled for OABI. Use the -vu parameter to figure out where the compiler is getting its units from while compiling your program, and verify that this is indeed where you installed them. Jonas___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on arm-linux-uclibc and OABI
Jonas #make distclean crosszipinstall CPU_TARGET=arm CROSSOPT='-CfSOFT -darm -dFPC-ARMEL -gl' I am following the procedures listed in http://www.klc.net.nz/linux/?page_id=13 regards Nataraj On Sat, Feb 27, 2010 at 5:43 PM, Jonas Maebe wrote: > > On 27 Feb 2010, at 09:23, Nataraj S Narayan wrote: > >> I am using fpc/lazarus +qt-embedded-opensource-4.5.2 on >> arm-linux-uclibc based SBC >> >> The code works only it the kernel is compiled with >> CONFIG_OABI_COMPAT=y >> >> Does it mean that isnt fully EABI ? > > Based on the extra information that you provided in your bug report at > http://bugs.freepascal.org/view.php?id=15860, it is clear that you are using > an RTL that is compiled for OABI. The reason is that gdb stops at > rtl/linux/arm/syscall.inc:187, and line 187 lies in the {$else} part of an > {$ifdef FPC_ABI_EABI}. > > How did you compiled FPC? > > > Jonas___ > fpc-devel maillist - fpc-devel@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-devel > ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on arm-linux-uclibc and OABI
On 27 Feb 2010, at 09:23, Nataraj S Narayan wrote: > I am using fpc/lazarus +qt-embedded-opensource-4.5.2 on > arm-linux-uclibc based SBC > > The code works only it the kernel is compiled with > CONFIG_OABI_COMPAT=y > > Does it mean that isnt fully EABI ? Based on the extra information that you provided in your bug report at http://bugs.freepascal.org/view.php?id=15860, it is clear that you are using an RTL that is compiled for OABI. The reason is that gdb stops at rtl/linux/arm/syscall.inc:187, and line 187 lies in the {$else} part of an {$ifdef FPC_ABI_EABI}. How did you compiled FPC? Jonas___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] fpc on arm-linux-uclibc and OABI
Hi I am using fpc/lazarus +qt-embedded-opensource-4.5.2 on arm-linux-uclibc based SBC The code works only it the kernel is compiled with CONFIG_OABI_COMPAT=y Does it mean that isnt fully EABI ? Am I missing something? I use the following to cross compile:- #ppcrossarm-2.5.1 -MObjFPC -Sgi -CX -TLinux -Parm -gl -XX -l -Fi/home/siddhiq/:/software/lazarus-svn/lcl/units/arm-linux/include/ -Fl/cdrom/output/build/staging_dir/usr/lib/ -Fl/cdrom/output/build/staging_dir/lib/ -Fu/software/lazarus-svn/lcl/units/arm-linux/ -Fu/software/lazarus-svn/lcl/units/arm-linux/qt/ -Fu/software/lazarus-svn/packager/units/arm-linux/ -Fu. -CfSOFT -darmLCLqt noy1.lpr -XLAc= -XR/cdrom/output/target regards Nataraj ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC on ARM
> As You see this device has not any display, > I'm not interesting any IDE, only webbased or without any human > interface (device to control other equipment) . AN IDE (Integrated Development Environment) does not need a display on the target device, it just offers improved comfort when editing, compiling, debugging the project. Lazarus and MSE consist both of an IDE and a component library that (among other stuff, that even might be useful for your goals, like "TNoGUIApplication" with MSE) offers components for creating a GUI on the target device (which of course is of no use for you). The IDE (both Lazarus and MSE) should offer remote debugging through GDB and thus could help a lot with embedded development like you (and I) are intending to do. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC on ARM
Michael Schnell pisze: Dariusz Mazur wrote: My application small part of my web based ERP application; From compiler side use: uclibc,... So I suppose this is on Linux, not WinCE ? beautiful !!! Great ! Thanks for letting us know. Did you try to use an IDE such as Lazarus or MSE ? As You see this device has not any display, I'm not interesting any IDE, only webbased or without any human interface (device to control other equipment) . -- Darek ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC on ARM
Dariusz Mazur wrote: > My application small part of my web based ERP application; > From compiler side use: uclibc,... So I suppose this is on Linux, not WinCE ? > beautiful !!! > Great ! Thanks for letting us know. Did you try to use an IDE such as Lazarus or MSE ? -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] FPC on ARM
Hi Now I finished porting my small app to this arm board: http://www.sklep.propox.com/show.php?g=2118&szr=800&wys=599&p=05ce82c249a24e23bb597b9f80a258da25478 this consist: ARM926-EJ AT91SAM9260 (AT91SAM9G20) 64MB SDRAM 4GB i NAND Flash Ethernet PHY 10/100Mbit My application small part of my web based ERP application; From compiler side use: uclibc, pthreads, Synapse, resource management solved problems dynpthreads should be disable minor changes on uclibc.as rest code is the same like on i386 linux and win32 and all works beautiful !!! -- Darek ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC on ARM, Debian "Lenny"
Florian Klaempfl wrote: florian's done some more work on arm eabi and afaik it works if you compile without optimisations (-O-). this is using fpc trunk. Yes. I uploaded a starting eabi compiler to http://www.florianklaempfl.de/ppcarm Lovely. I've got to give up the disc in this machine which will knock me back a couple of days but I'll get back onto it as soon as I am able. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC on ARM, Debian "Lenny"
Henry Vermaak schrieb: > 2008/12/14 Mark Morgan Lloyd : >> Luca Olivetti wrote: >> >>> There was a thread on fpc-pascal last june, I didn't succeed, maybe things >>> have changed now >>> >>> http://thread.gmane.org/gmane.comp.compilers.free-pascal.general/11546/ >> Thanks, I saw some of that last night before I posted but there's more on >> gmane than in my local archive. I'll get back onto this later. > > florian's done some more work on arm eabi and afaik it works if you > compile without optimisations (-O-). this is using fpc trunk. > Yes. I uploaded a starting eabi compiler to http://www.florianklaempfl.de/ppcarm Please use only with -O- ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC on ARM, Debian "Lenny"
2008/12/14 Mark Morgan Lloyd : > Luca Olivetti wrote: > >> There was a thread on fpc-pascal last june, I didn't succeed, maybe things >> have changed now >> >> http://thread.gmane.org/gmane.comp.compilers.free-pascal.general/11546/ > > Thanks, I saw some of that last night before I posted but there's more on > gmane than in my local archive. I'll get back onto this later. florian's done some more work on arm eabi and afaik it works if you compile without optimisations (-O-). this is using fpc trunk. henry ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC on ARM, Debian "Lenny"
Luca Olivetti wrote: There was a thread on fpc-pascal last june, I didn't succeed, maybe things have changed now http://thread.gmane.org/gmane.comp.compilers.free-pascal.general/11546/ Thanks, I saw some of that last night before I posted but there's more on gmane than in my local archive. I'll get back onto this later. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC on ARM, Debian "Lenny"
Marco van de Voort wrote: It sounded like you try to compile (actually: link) a new program for a armel 4 abi with a precompiled RTL for a armel 0 abi. Yes, I think that's what's happening. My suggestion would have been to try to recompile the RTL first with the binutils that come with the armel 4 abi system. OK, I think I'm with that. Any pointers to documentation would be appreciated, I'm still at the stage of finding my way around. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC on ARM, Debian "Lenny"
peter green wrote: Debian "Lenny" has switched to armel rather than arm. Lenny is availible for both arm and armel. Thanks, Peter, I'll see if I can follow it up. I suspect that the problem is that the build tailored for the specific hardware I'm using is now armel-only and I've not got time to start working my way up the learning curve of repackaging the distro. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC on ARM, Debian "Lenny"
In our previous episode, Mark Morgan Lloyd said: [ Charset ISO-8859-1 unsupported, converting... ] > Marco van de Voort wrote: > > In our previous episode, Mark Morgan Lloyd said: > >> I think this is a fairly succinct indication of why I wasn't able to get > >> FPC to compile itself prior to compiling Lazarus for Lenny. > > > > Well, actually no, did you try to bootstrap FPC itself? Then the program > > generated only contains files generated with the new binutils set. > > Sorry, I'm not with you. I installed the same 2.2.2 binary that I'd > previously used then tried to use that to compile the 2.2.2 sources. It > didn't work, at which point I went back and did some more basic tests. It sounded like you try to compile (actually: link) a new program for a armel 4 abi with a precompiled RTL for a armel 0 abi. My suggestion would have been to try to recompile the RTL first with the binutils that come with the armel 4 abi system. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC on ARM, Debian "Lenny"
En/na peter green ha escrit: Debian "Lenny" has switched to armel rather than arm. Lenny is availible for both arm and armel. But the interesting stuff (nokia tablets, pandora) is armel Bye -- Luca ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC on ARM, Debian "Lenny"
En/na Mark Morgan Lloyd ha escrit: Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: I think this is a fairly succinct indication of why I wasn't able to get FPC to compile itself prior to compiling Lazarus for Lenny. Well, actually no, did you try to bootstrap FPC itself? Then the program generated only contains files generated with the new binutils set. Sorry, I'm not with you. I installed the same 2.2.2 binary that I'd previously used then tried to use that to compile the 2.2.2 sources. It didn't work, at which point I went back and did some more basic tests. There was a thread on fpc-pascal last june, I didn't succeed, maybe things have changed now http://thread.gmane.org/gmane.comp.compilers.free-pascal.general/11546/ Bye -- Luca ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC on ARM, Debian "Lenny"
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: I think this is a fairly succinct indication of why I wasn't able to get FPC to compile itself prior to compiling Lazarus for Lenny. Well, actually no, did you try to bootstrap FPC itself? Then the program generated only contains files generated with the new binutils set. Sorry, I'm not with you. I installed the same 2.2.2 binary that I'd previously used then tried to use that to compile the 2.2.2 sources. It didn't work, at which point I went back and did some more basic tests. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC on ARM, Debian "Lenny"
Debian "Lenny" has switched to armel rather than arm. Lenny is availible for both arm and armel. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC on ARM, Debian "Lenny"
In our previous episode, Mark Morgan Lloyd said: > I think this is a fairly succinct indication of why I wasn't able to get > FPC to compile itself prior to compiling Lazarus for Lenny. Well, actually no, did you try to bootstrap FPC itself? Then the program generated only contains files generated with the new binutils set. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] FPC on ARM, Debian "Lenny"
Using Debian "Etch", which is arm rather than armel, I was able to compile FPC 2.2.2 running natively on an ARM system. I was subsequently able to use this to compile Lazarus 0.9.27, hence generate X applications natively. I can't remember whether I did any debugging. Debian "Lenny" has switched to armel rather than arm. FPC 2.2.2 installs without error but trying to compile the canonical test.pas I get: /usr/bin/ld: ERROR: Source object /usr/local/lib/fpc/2.2.2/units/arm-linux/rtl/system.o has EABI version 0, but target test has EABI version 4 I think this is a fairly succinct indication of why I wasn't able to get FPC to compile itself prior to compiling Lazarus for Lenny. Looking at the Debian "Lenny" repository, there is an fpc metapackage but the components- fp-compiler etc.- are not available. From recent discussion I presume that to progress this I have to cross-compile, either on Debian "Etch" or on a non-ARM system. Can somebody point me at the information I need, and tell me explicitly what target I should be using? Is there any way I can help by packaging an armel build for download, ditto for v2.2.3 for SPARC? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on ARM without OS
Florian Klaempfl wrote: Bernd Mueller schrieb: Hello, I am trying hard to avoid C on an ARM7TDMI/ARMv4T Controller (AT91SAM7Sx) ;-) What about simply supporting the interrupt keyword on arm? Point me to some description and I'll implement it. I searched the web for some details: http://www.state-machine.com/arm/Building_bare-metal_ARM_with_GNU.pdf shows the complete interrupt mess on Page 6-1ff regarding gcc. http://www.inf.ethz.ch/personal/wirth/Articles/Oberon/Interrupts.pdf Page 1 and 2. http://www.mikrocontroller.net/topic/71979 Last post from Martin Thomas. and did not look further. I really think it is not worth your effort to implement this in fpc now. ARM interrupt handling is so complex, because of the different ARM modes and the different exception types (IRQ/Fast IRQ/SWI etc. which need different return address alignment). Another point are the vendor specific vector controller implementations. I think this would be very hard to implement, hard to debug and maybe error prone. I could live with a performance penalty and think my second approach (going via the wrapper in the startup code) is perhaps the better start with fpc. This would have had the advantage too, that this should work with other controller vendors (ATMEL, ST, NXP, Samsung) without changing the compiler. Only the linker script and the startup code had to be adapted. Regards, Bernd. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on ARM without OS
Florian Klaempfl wrote: Bernd Mueller schrieb: Hello, I am trying hard to avoid C on an ARM7TDMI/ARMv4T Controller (AT91SAM7Sx) ;-) What about simply supporting the interrupt keyword on arm? Point me to some description and I'll implement it. That would be great. I have got the information out of books (one is Steve Furber, ARM system-on-chip architecture). I am looking for a good description regarding ARM interrupts (especially concerning the interrupt entry/exit code) in the web and post the link here. Thanks, Bernd. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc on ARM without OS
Bernd Mueller schrieb: > Hello, > > I am trying hard to avoid C on an ARM7TDMI/ARMv4T Controller > (AT91SAM7Sx) ;-) What about simply supporting the interrupt keyword on arm? Point me to some description and I'll implement it. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel