Re: [fpc-pascal] error compiling lazarus

2011-01-09 Thread Benedikt Schindler
On 01/09/11 00:45, Jonas Maebe wrote: > > On 09 Jan 2011, at 00:32, Benedikt Schindler wrote: > >> I think this is a problem with the 64Bit compiler. >> In 32Bit this problem doesn't exist. > > What did you do to fix the linking of 32 bit programs on your s

Re: [fpc-pascal] error compiling lazarus

2011-01-08 Thread Benedikt Schindler
Hello, here is a upate on my problems with the actual svn version of fpc and lazarus. In 64Bit my fpc has still the problem to compile svn2revisioninc. It rais an exception on the following line: Application := TSvn2RevisionApplication.Create(nil); I think this is a problem with the 64Bit compi

Re: [fpc-pascal] error compiling lazarus

2011-01-03 Thread Benedikt Schindler
stopping Fatal: Compilation aborted has someone an idea what i could do to try if the 32bit version would work on my computer? best regards Benedikt On 01/03/11 12:45, Benedikt Schindler wrote: > On 01/02/11 22:45, Benedikt Schindler wrote: >> On 01/02/11 20:17, Mark Morgan Lloyd wr

Re: [fpc-pascal] error compiling lazarus

2011-01-03 Thread Benedikt Schindler
On 01/02/11 22:45, Benedikt Schindler wrote: > On 01/02/11 20:17, Mark Morgan Lloyd wrote: >> Mark Morgan Lloyd wrote: >> >>>> i compiled it with the svn version of fpc and of lazarus. >>>> still the same error. >>> >>> I've been having

Re: [fpc-pascal] error compiling lazarus

2011-01-02 Thread Benedikt Schindler
On 01/02/11 20:17, Mark Morgan Lloyd wrote: > Mark Morgan Lloyd wrote: > >>> i compiled it with the svn version of fpc and of lazarus. >>> still the same error. >> >> I've been having problems on one particular machine over the last few >> days which I suspect are down to inadequate RAM+swap- I th

Re: [fpc-pascal] error compiling lazarus

2011-01-02 Thread Benedikt Schindler
On 01/02/11 17:09, Paul Ishenin wrote: > 02.01.2011 22:57, Benedikt Schindler wrote: >> hello, >> >> when i try to compile lazarus i get following error: >> [compiler crash] >> >> has anyone an idea what this could be? > If the compiler version is from o

[fpc-pascal] error compiling lazarus

2011-01-02 Thread Benedikt Schindler
hello, when i try to compile lazarus i get following error: Free Pascal Compiler version 2.5.1 [2011/01/02] for x86_64 Copyright (c) 1993-2010 by Florian Klaempfl Note: Switching assembler to default source writing assembler Target OS: Linux for x86-64 Compiling lazcontrols.pas Compiling dividerb

Re: [fpc-pascal] Can variables be declared within a block?

2010-10-18 Thread Benedikt Schindler
> > I just want to create shorter variables like > si := StringList.NameOfIndex(TableName.FieldByName('').AsString); > ae := xxx; > so:= yyy > > to express complicated logic with them. > > When I put them all at the top of the procedure, they are extra > noise,

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-16 Thread Benedikt Schindler
> >> - FreeOnTerminate should be gone, (meaning no way to actively call >> TThread.Destroy from another thread, a thread gets destroyed >> automatically when it leaves its execute method) >> (IIRC FreeOnTerminate was even set to False by the default >> constructor, so you had the choice of e

Re: [fpc-pascal] Events doesn't work in .lpr ?

2009-12-11 Thread Benedikt Schindler
I mean it is declared 4 lines earlier. where is the difference to the procedure DoRun ? The problem is that you are using Delphi/TP-style procvar syntax in source code compiled {$mode objfpc}. Either add @ in front of DoOnReciveCommand when assigning it to DoRun, or change {$mode objfpc}

[fpc-pascal] Events doesn't work in .lpr ?

2009-12-11 Thread Benedikt Schindler
Hi, i wrote a short test programm, to find out how to use the lnet unit. And now i got some strange compiler messages. (FPC 2.2.2 for i386.) The source Code is very short. So i just atached the hole cource code. i got 2 compiler messsages and i think they are directly connected. Here they are:

[fpc-pascal] wiki server - dead?

2009-12-09 Thread Benedikt Schindler
Is it just me, or is the wiki.freepascal.org server down? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] now i have a very strange behaviour of my arm compiler

2009-04-29 Thread Benedikt Schindler
THX ! Now all my problems just walked away. What a bugfix for the compiler could do :) My first test programm is now running without problems on the Openmoko Freerunner device. @all: thx for the helping in the last 3 weeks. Beni Benedikt Schindler schrieb: my last svn update was 13 days

Re: [fpc-pascal] now i have a very strange behaviour of my arm compiler

2009-04-28 Thread Benedikt Schindler
my last svn update was 13 days ago. I update my sources and recompile everything. (That will need some time) i give you a status update later. Beni Jonas Maebe schrieb: On 28 Apr 2009, at 13:48, Benedikt Schindler wrote: [...] All of your workarounds have one thing in common: they cause an

[fpc-pascal] now i have a very strange behaviour of my arm compiler

2009-04-28 Thread Benedikt Schindler
Hi, i still try to get a gtk applicatoins running on my device. And now i have found a work around for one error message. But in reality it's not a work around. It's a: "i didn't realy change anything, but it works now" If i delete the changes again, the error raises again. So maybe someone of

Re: [fpc-pascal] could not compile lazarus "make[2]: *** [lazarus] Killed"

2009-04-17 Thread Benedikt Schindler
i now use this destructor: -- destructor TGtk2WidgetSet.Destroy; begin if assigned(im_context) then g_object_unref(im_context); im_context:=nil; im_context_widget:=nil; inherited Destroy; end; -- now there is

Re: [fpc-pascal] could not compile lazarus "make[2]: *** [lazarus] Killed"

2009-04-17 Thread Benedikt Schindler
i recompiled the hole fpc with the option "-gl" and the patch Paul Ishenin mentioned. there is still a problem with programms, that wonna use windows. console prorgamms just work fine. if i try to run a lazarus programm i get this backtrace. --- (gd

Re: [fpc-pascal] Difference between initialization and begin in a unit

2009-04-16 Thread Benedikt Schindler
Unit B should just work if it is named "Programm B" In a Unit there didn't just exist a begin. (as far as i know my programms :) ) The initialization section is called when the unit is linked the first time into the programm by a "uses" class. so it is called before everithing else is going o

Re: [fpc-pascal] could not compile lazarus "make[2]: *** [lazarus] Killed"

2009-04-15 Thread Benedikt Schindler
Backtrace of a programm with just an empty window. programm was compiled with "-O- -dFPC_ARMEL -dFPC_ABI_EABI -gl" Program received signal SIGILL, Illegal instruction. 0x0002057c in SYSTEM_FPC_CPUCODEINIT () (gdb) bt #0 0x0002057c in SYST

Re: [fpc-pascal] could not compile lazarus "make[2]: *** [lazarus] Killed"

2009-04-15 Thread Benedikt Schindler
i got 128MB of RAM and i have a swap file of 250MB. compiling the projects manually works fine. no error from the compiler. That would be all i need, but still the compiled programm don't run. I will now try the patch Paul Ishenin told me. Beni Henry Vermaak schrieb: 2009/4/15 Ben

Re: [fpc-pascal] could not compile lazarus "make[2]: *** [lazarus] Killed"

2009-04-15 Thread Benedikt Schindler
Violation Exception=Access violation Stack trace: $4052D860 $00158AAC $00039178 $000388B4 $00031A1C $00019A8C TApplication.HandleException Access violation Stack trace: $4052D860 $00158AAC $00039178 $000388B4 $00031A1C $00019A8C [FORMS.PP] ExceptionOccurred Benedikt Schindler schrieb: H

[fpc-pascal] could not compile lazarus "make[2]: *** [lazarus] Killed"

2009-04-15 Thread Benedikt Schindler
Hi, i try to compile lazarus and i get a "make[2]: *** [lazarus] Killed". there is no more information about what error raised. In dmesg i just get : [495850.88] select 1 (init), adj 0, size 61, to kill [495850.88] select 8544 (dropbear), adj 0, size 109, to kill [495850.88] select 9

[fpc-pascal] compiling lazarus : custombitmap.inc(293, 49) Error: absolute can only be associated with a var or const

2009-04-09 Thread Benedikt Schindler
Hi, when i try to compile lazarus i get a error message "absolute can only be associated with a var or const" did someone have an idea why this happens? do i have to be in a special Pascal language mode, to compile lazarus? # Pascal language mode # -Mfpc free pascal dialect (defaul

[fpc-pascal] Re: FPC is now runing on the Freerunner

2009-04-09 Thread Benedikt Schindler
configuration steps. and here we are, we could compile our heloworld.pas that means, if you confirm that it also works by you Beni ik schrieb: Great ! How exactly did you build FPC ? Is the exactly like the last instruction that you made, or you have changed something (or changed so

FPC is now runing on the Freerunner (was: Re: [fpc-pascal] EABI problems with FPC)

2009-04-09 Thread Benedikt Schindler
hi, i don't know if you still wonna install a full fpc on your freerunner. but if it is so, you could download a working version from this place : http://www.my-distribution.org/files/fpc-2.3.x-arm-20090319.tar.gz (all files in a subdirectory called "fpc-2.3.x-arm" ) http://www.my-distribut

Re: [fpc-pascal] EABI problems with FPC

2009-04-09 Thread Benedikt Schindler
Hi, i am comming back to the beginning of this thread and back to the real problem :) i now found out, that if i use my crosscompiled version of FPC i get also this EABI version error. if i use my FPC that i have compiled direct on the device, i have no error messages. so i think there is a

Re: fpc-2.3.x abbort compiling at gtk2.pas (was : [fpc-pascal] EABI problems with FPC )

2009-04-07 Thread Benedikt Schindler
Jonas Maebe schrieb: [...] Maybe it runs out of memory? The gtk2 unit is quite big. Jonas your right. i freed some memory and then it compiled without problems. thx to all. Beni ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://li

Re: fpc-2.3.x abbort compiling at gtk2.pas (was : [fpc-pascal] EABI problems with FPC )

2009-04-07 Thread Benedikt Schindler
Henry Vermaak schrieb: 2009/4/7 Benedikt Schindler : [...] any reason why you are trying to build fpc natively? this wastes a lot of time. you can just use the openmoko toolchain and cross compile everything. henry ___ fpc-pascal maillist

fpc-2.3.x abbort compiling at gtk2.pas (was : [fpc-pascal] EABI problems with FPC )

2009-04-07 Thread Benedikt Schindler
Hi, i managed to crosscompile a ppcarm for the openmoko device. then i tried to compile the fpc direct on the device. After a long time where everything looks fine he abborted compiling with an error (see below) any ideas? i also don't know, if it is a problem that my distribution has no "/e

Re: [fpc-pascal] EABI problems with FPC

2009-04-07 Thread Benedikt Schindler
he freerunner. cu Beni P.S.: did you have a "/etc/ld.so.conf" on your device? ik schrieb: It seems to display the help. How did you do that ? Ido On Tue, Apr 7, 2009 at 12:34 PM, Benedikt Schindler mailto:benischind...@gmx.de>> wrote: im using a FSO5 image for test

Re: [fpc-pascal] EABI problems with FPC (fyi)

2009-04-07 Thread Benedikt Schindler
thx. yes it was a plain copy. it also worked with the crosscompiled data2inc programm. Beni Jonas Maebe schrieb: On 07 Apr 2009, at 10:23, Benedikt Schindler wrote: it stopped with errors the data2inc programm seems to be build not early enough. It should simply not be necessary

Re: [fpc-pascal] EABI problems with FPC (fyi)

2009-04-07 Thread Benedikt Schindler
ycle] Error 2 make[2]: Leaving directory `/media/mmcblk0p3/fpcbuild-2.3.x/fpcsrc' make[1]: *** [build-stamp.arm-linux] Error 2 make[1]: Leaving directory `/media/mmcblk0p3/fpcbuild-2.3.x/fpcsrc' make: *** [fpcsrc/build-stamp.arm-linux] Error 2 r...@om-gta02:/media/mmcblk0p3/fpcbuild-2.3.x

Re: [fpc-pascal] EABI problems with FPC

2009-04-06 Thread Benedikt Schindler
Hi, i also try to get free pascal running on my freerunner. i needed many tries to get a running ppcarm for my device. (In reality i didn't know why it worked in the last run ... but it did, and so i don't ask :) ) now i let the freerunner recompile the hole fpcbuild. But that could take some

Re: [fpc-pascal] using fpc on a arm4t system failed - trying to cross compile

2009-03-25 Thread Benedikt Schindler
Hi, the file from Florian didn't work. But i looked around in the mailing lists and now i try to crosscompile a new version for the openmoko device. I crosscompiled binutils for "arm4tl-unknown-linux". and then i tried to cross compile the FPC (2.3.x) with this command: make all OS_TARGET=li

Re: [fpc-pascal] using fpc on a arm4t system failed

2009-03-23 Thread Benedikt Schindler
rogramming. please give me a hint where to start. because i really would like to programm in freepascal for the openmoko freerunner device. best regards benedikt Benedikt Schindler schrieb: same problem with this test. just the output "Illegal instruction". nothing in dmesg. ---

Re: [fpc-pascal] using fpc on a arm4t system failed

2009-03-19 Thread Benedikt Schindler
same problem with this test. just the output "Illegal instruction". nothing in dmesg. --- r...@om-gta02:/opt/test# tar -xvzf HelloWorld-fpc-2.2.2.arm-linux.tar.gz copying copying.fpc hello.pas ppcarm prt0.o system.o system.ppu TurboControlDistributionReadMe.txt r...@om-gta02:/

[fpc-pascal] using fpc on a arm4t system failed

2009-03-19 Thread Benedikt Schindler
Hi, i installed fpc-2.2.2 with the arm-linux-binaries from the main page. the installation finished with no problems. but when i try to use on of the installed programms (e.g. ppcarm, fpc or fpcmake) i get a "Illegal instruction" error. What ARM CPUs are supported by FPC? My cpu info : r...@