Re: [fpc-pascal] Problem compiling

2012-08-06 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: Free Pascal Compiler version 2.7.1 [2012/05/22] for i386 Anyone have an idea what could be wrong? Building development versions of FPC always has been and always will be guaranteed to work only if you start with the latest *release*

Re: [fpc-pascal] Problem compiling

2012-08-06 Thread Nico Erfurth
On 05.08.12 23:46, dhkblas...@zeelandnet.nl wrote: I get: text.inc(199,34) Error: Illegal type conversion: Text to TextRec after updating the compiler sources from SVN. Free Pascal Compiler version 2.7.1 [2012/05/22] for i386 Anyone have an idea what could be wrong? You have to use

Re: [fpc-pascal] Problem compiling DLL for 64Bit Windows - complete example attached

2009-12-18 Thread Lukas Gradl
rMonitor=packed record ... end; rMonitorEx=packed record dwMonitorSize:DWORD; Monitor:rMonitor; end; Are you sure the C record is packed too ? This would mean that all function pointers in rMonitor are not aligned. I'm not shure about that as I'm not that good at C. The

Re: [fpc-pascal] Problem compiling DLL for 64Bit Windows - complete example attached

2009-12-18 Thread Jonas Maebe
On 18 Dec 2009, at 13:39, Lukas Gradl wrote: rMonitor=packed record ... end; rMonitorEx=packed record dwMonitorSize:DWORD; Monitor:rMonitor; end; Are you sure the C record is packed too ? This would mean that all function pointers in rMonitor are not aligned. I'm not shure

Re: [fpc-pascal] Problem compiling DLL for 64Bit Windows - complete example attached

2009-12-18 Thread Lukas Gradl
Jonas Maebe schrieb: You must never use a packed record for a C record, unless it is declared in C using __attribute__((__packed__)). The fact that it worked in 32 bit was pure coincidence. You also have to add {$packrecords c} to your source file to tell the compiler to lay out records the

Re: [fpc-pascal] Problem compiling DLL for 64Bit Windows - complete example attached

2009-12-18 Thread Reimar Grabowski
On Fri, 18 Dec 2009 13:39:45 +0100 Lukas Gradl f...@ssn.at wrote: I'm not shure about that as I'm not that good at C. The packed record works at 32bit -so I thought that should be correct. If it works on 32bit it should be correct. Is there a difference between 64Bit and 32Bit? Yes. Some

Re: [fpc-pascal] Problem compiling DLL for 64Bit Windows - complete example attached

2009-12-18 Thread Reimar Grabowski
On Fri, 18 Dec 2009 14:58:10 +0100 Reimar Grabowski reimg...@web.de wrote: On Fri, 18 Dec 2009 13:39:45 +0100 Lukas Gradl f...@ssn.at wrote: I'm not shure about that as I'm not that good at C. The packed record works at 32bit -so I thought that should be correct. If it works on 32bit it

[fpc-pascal] Problem compiling DLL for 64Bit Windows - complete example attached

2009-12-17 Thread Lukas Gradl
Hi! I'm having serious troubles compiling a DLL for 64bit Windows. I'm using FPC svn 1 (Ver 2.5.1) on all machines. I tried on WinXP 32bit (works), Vista 64bit (doesn't work), Win7 32Bit (works) and Win7 64bit (doesn't work). The DLL works as a print-monitor, providing a virtual printer

Re: [fpc-pascal] Problem compiling DLL for 64Bit Windows - complete example attached

2009-12-17 Thread Marc Weustink
Lukas Gradl wrote: Hi! I'm having serious troubles compiling a DLL for 64bit Windows. I'm using FPC svn 1 (Ver 2.5.1) on all machines. I tried on WinXP 32bit (works), Vista 64bit (doesn't work), Win7 32Bit (works) and Win7 64bit (doesn't work). rMonitor=packed record ... end;

[fpc-pascal] Problem compiling an X client

2008-02-03 Thread Anton Tichawa
Hello list! I have problems compiling an X client. The compiler says: Free Pascal Compiler version 2.2.0 [2007/08/31] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: Linux for i386 Compiling pas/xdemo.pas PPU Loading /usr/local/lib/fpc/2.2.0/units/i386-linux/x11/x.ppu Recompiling

Re: [fpc-pascal] problem compiling svn-fpc for arm-linux

2006-04-02 Thread Koenraad Lelong
Koenraad Lelong schreef: Jonas Maebe schreef: ... /home/koenraad/fpc-devel/fpc/compiler/ppcrossarm -Ur -XParm-linux- -Xc -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE. -FU/home/koenraad/fpc-devel/fpc/rtl/units/arm-linux -darm -dRELEASE ../objpas/sysconst.pp

Re: [fpc-pascal] problem compiling svn-fpc for arm-linux

2006-04-02 Thread Florian Klaempfl
Koenraad Lelong wrote: Koenraad Lelong schreef: Jonas Maebe schreef: ... /home/koenraad/fpc-devel/fpc/compiler/ppcrossarm -Ur -XParm-linux- -Xc -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE. -FU/home/koenraad/fpc-devel/fpc/rtl/units/arm-linux -darm -dRELEASE

Re: [fpc-pascal] problem compiling svn-fpc for arm-linux

2006-03-19 Thread Jonas Maebe
On 19 Mar 2006, at 10:07, Koenraad Lelong wrote: This program is buggy - '@' is used as the comment character for ARM, so everything after that is ignored. The assembler therefore sees: .type operatingsystem_result, which is garbage. The GNU assembler targetted for ARM accepts

Re: [fpc-pascal] problem compiling svn-fpc for arm-linux

2006-03-19 Thread Koenraad Lelong
Jonas Maebe schreef: On 19 Mar 2006, at 10:07, Koenraad Lelong wrote: This program is buggy - '@' is used as the comment character for ARM, so everything after that is ignored. The assembler therefore sees: .type operatingsystem_result, which is garbage. The GNU assembler targetted

Re: [fpc-pascal] problem compiling svn-fpc for arm-linux

2006-03-15 Thread Koenraad Lelong
Peter Vreman schreef: More specific, the error-lines point to the @object construct. Is there any way I can avoid these errors ? I used revision 2898 of fpc. My arm-linux-as is version 2.14. Use the latest binutils 2.16.1 I downloaded and compiled them from http://www.gnuarm.com, then

[fpc-pascal] problem compiling svn-fpc for arm-linux

2006-03-13 Thread Koenraad Lelong
Hi, Since a while I'm experiencing problems compiling fpc from svn for arm-linux. When make CPU_TARGET=arm OS_TARGET=linux all arrives at assembling system.pp for arm it gives following errors : /home/koenraad/fpc-devel/fpc/compiler/ppcrossarm -Ur -XParm-linux- -Xc -Xr -Ur -Xs -n -Fi../inc

Re: [fpc-pascal] problem compiling svn-fpc for arm-linux

2006-03-13 Thread Peter Vreman
More specific, the error-lines point to the @object construct. Is there any way I can avoid these errors ? I used revision 2898 of fpc. My arm-linux-as is version 2.14. Use the latest binutils 2.16.1 ___ fpc-pascal maillist -

Re: [fpc-pascal] Problem compiling new compiler

2005-09-30 Thread Koenraad Lelong
Marco van de Voort wrote: I downloaded both the 2.1 and the 2.0 daily snapshots. When I try to compile either one I get an error : ... I think the error is the linker complaining about cannot find -lc, but I can't find out what is actually wrong. Any pointers ? It can't find libc. Since

Re: [fpc-pascal] Problem compiling new compiler

2005-09-30 Thread Marco van de Voort
Marco van de Voort wrote: /home/koenraad/fpc/fpc/libgdb/linux/i386/libgdb.a(maint.o) is smaller than 16 in /home/koenraad/fpc/fpc/packages/base/gdbint/units/i386-linux/gdbint.o /home/koenraad/fpc/fpc/libgdb/linux/i386/libgdb.a(maint.o)(.text+0xeb3): In function

Re: [fpc-pascal] Problem compiling new compiler

2005-09-28 Thread Marco van de Voort
I downloaded both the 2.1 and the 2.0 daily snapshots. When I try to compile either one I get an error : make[5]: Leaving directory `/home/koenraad/fpc/fpc/packages/base/netdb' make[4]: Leaving directory `/home/koenraad/fpc/fpc/packages/base/netdb' make -C md5 smart make[4]: Entering

[fpc-pascal] Problem compiling new compiler

2005-09-27 Thread Koenraad Lelong
Hi, I downloaded both the 2.1 and the 2.0 daily snapshots. When I try to compile either one I get an error : make[5]: Leaving directory `/home/koenraad/fpc/fpc/packages/base/netdb' make[4]: Leaving directory `/home/koenraad/fpc/fpc/packages/base/netdb' make -C md5 smart make[4]: Entering