Re: [fpc-pascal] Free Pascal 3.0.4-rc1 released!

2017-09-06 Thread Graeme Geldenhuys

On 2017-09-06 09:19, Graeme Geldenhuys wrote:

For example:


** Compiled with FPC 3.0.2 or FPC 3.0.4 - no line info



The complete sample application is here:


===[ project1.pas ]
program project1;

{$mode objfpc}{$H+}
{$interfaces COM}

type
   IHook = interface
 ['{4BCAEDD8-92D8-11E7-88D3-C86000E37EB0}']
 procedure DoIt;
   end;

type
   THook = class(TInterfacedObject, IHook)
   private
 procedure DoIt;
   end;

   procedure THook.DoIt;
   begin
 writeln(ClassName + ' did it');
   end;

type
   TBaseClass = class(TInterfacedObject, IHook)
   private
 FHook: IHook;
 property Hook: IHook read FHook implements IHook;
   public
 constructor Create;
 destructor Destroy; override;
   end;

   constructor TBaseClass.Create;
   begin
 FHook := THook.Create;  // FPC 2.6.4 reports a memory leak here
   end;

   destructor TBaseClass.Destroy;
   begin
 // nothing to do here
   end;


var
   base: IHook;

begin
   base := TBaseClass.Create;
   base.DoIt;
   base := nil; // just to see if it helped with the memory leak - it
doesn't

end.
==[ end ]==


Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Free Pascal 3.0.4-rc1 released!

2017-09-06 Thread Graeme Geldenhuys

On 2017-07-18 09:44, Marco van de Voort wrote:

You can help improve the upcoming 3.0.4 release by downloading and
testing this release.


I've been using FPC 3.0.4 for a while now under 64-bit FreeBSD. I've 
noticed that a tracelog with line info generated by the applications are 
not working as they did in FPC 2.6.4. I then tested with FPC 3.0.2, and 
it seems broken there too (I've never really used FPC 3.0.x for 
production code yet). The problem - there is no line information.


For example:


** Compiled with FPC 3.0.2 or FPC 3.0.4 - no line info

[t1]$ ./project1
THook did it
Heap dump by heaptrc unit
4 memory blocks allocated : 115/120
2 memory blocks freed : 67/72
2 unfreed memory blocks : 48
True heap size : 1146880 (32 used in System startup)
True free heap : 1146496
Should be : 1146544
Call trace for block $0008007390C0 size 32
Call trace for block $0008007310C0 size 16



** Compiled with FPC 2.6.4 - not the line info pointing to
** the originating point of a memory leak

[t1]$ ./project1
THook did it
Heap dump by heaptrc unit
4 memory blocks allocated : 99/104
2 memory blocks freed : 51/56
2 unfreed memory blocks : 48
True heap size : 1146880 (32 used in System startup)
True free heap : 1146496
Should be : 1146544
Call trace for block $0008007370C0 size 32
  $00400379 line 35 of project1.lpr
Call trace for block $00080072F0C0 size 16


Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Free Pascal 3.0.4-rc1 released!

2017-08-14 Thread Graeme Geldenhuys

On 2017-07-18 09:44, Marco van de Voort wrote:

We have placed the first release candidate of the Free Pascal Compiler
version 3.0.4 on our ftp servers.



Many thanks Marco and the rest of the FPC team. I did some testing today 
for a couple of hours with the 64-bit FreeBSD 10.x release candidate and 
so far it seems to be working without a hitch. I'll continue using it 
and report any issues that might crop up.


Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Free Pascal 3.0.4-rc1 released!

2017-08-08 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said:
> 
> >[...]
> > Downloads are available at the main FTP server and
> > 
> > ftp://freepascal.stack.nl/pub/mirrors/fpc/beta/3.0.4-rc1/
> 
> Where is the Mac OS X version?

Not uploaded. 
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Free Pascal 3.0.4-rc1 released!

2017-08-08 Thread Mattias Gaertner
On Tue, 18 Jul 2017 10:44:55 +0200 (CEST)
mar...@stack.nl (Marco van de Voort) wrote:

>[...]
> Downloads are available at the main FTP server and
> 
> ftp://freepascal.stack.nl/pub/mirrors/fpc/beta/3.0.4-rc1/

Where is the Mac OS X version?

Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Free Pascal 3.0.4-rc1 released!

2017-08-07 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said:
> >[...]
> > ftp://freepascal.stack.nl/pub/mirrors/fpc/beta/3.0.4-rc1/
> 
> The fpc-3.0.4-0.rc1.x86_64.rpm does not work on Fedora 21 x86_64:
> 
> Free Pascal Compiler version 3.0.4rc1 [2017/07/02] for x86_64
> Copyright (c) 1993-2017 by Florian Klaempfl and others
> Target OS: Linux for x86-64
> Compiling test.pas
> Linking test
> /usr/bin/ld: warning: link.res contains output sections; did you forget -T?
> /usr/bin/ld: /usr/lib64/fpc/3.0.4/units/x86_64-linux/rtl/prt0.o: unrecognized 
> relocation (0x2a) in section `.text'
> /usr/bin/ld: final link failed: Bad value
> test.pas(3,1) Error: Error while linking
> test.pas(3,1) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
> Error: /usr/bin/ppcx64 returned an error exitcode
> 
> Should I create a bug report?

Yes, but make sure it is RPM/fedora in the title, so the fedora maintainer
sees it.

A linker version would also be nice.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Free Pascal 3.0.4-rc1 released!

2017-08-07 Thread Mattias Gaertner
On Tue, 18 Jul 2017 10:44:55 +0200 (CEST)
mar...@stack.nl (Marco van de Voort) wrote:

>[...]
> ftp://freepascal.stack.nl/pub/mirrors/fpc/beta/3.0.4-rc1/

The fpc-3.0.4-0.rc1.x86_64.rpm does not work on Fedora 21 x86_64:

Free Pascal Compiler version 3.0.4rc1 [2017/07/02] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling test.pas
Linking test
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: /usr/lib64/fpc/3.0.4/units/x86_64-linux/rtl/prt0.o: unrecognized 
relocation (0x2a) in section `.text'
/usr/bin/ld: final link failed: Bad value
test.pas(3,1) Error: Error while linking
test.pas(3,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode

Should I create a bug report?

Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal