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 QListQAction*::~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 henry.verm...@gmail.com wrote: On 2 March 2010 12:51, Nataraj S Narayan natara...@gmail.com 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
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 dar...@emadar.com: /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
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
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 flor...@freepascal.org 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
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
/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
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 flor...@freepascal.org wrote: On Sat, 27 Feb 2010 19:17:48 +0530, Nataraj S Narayan natara...@gmail.com 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
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 natara...@gmail.com 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 flor...@freepascal.org wrote: On Sat, 27 Feb 2010 19:17:48 +0530, Nataraj S Narayan natara...@gmail.com 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
[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-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
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 jonas.ma...@elis.ugent.be 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 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
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 jonas.ma...@elis.ugent.be 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 Sat, 27 Feb 2010 19:17:48 +0530, Nataraj S Narayan natara...@gmail.com 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