Lazarus

Announcements => Lazarus => Topic started by: marcov on January 01, 2012, 10:32:42 pm

Title: FPC 2.6.0 released!
Post by: marcov on January 01, 2012, 10:32:42 pm
Hello,

first, FPC core wants to wish a happy 2012!

To start the new year with a bang, a new major release
of Free Pascal, version 2.6.0, was uploaded to our FTP servers.

Changes that may break backwards compatibility are documented at:
http://wiki.freepascal.org/User_Changes_2.6.0

For Downloads, please use the FTP server at

ftp://freepascal.stack.nl/pub/fpc/dist/2.6.0/

and sourceforge

https://sourceforge.net/projects/freepascal/files/

as much possible.

Enjoy!

The Free Pascal Compiler Team


                            Free Pascal Compiler

                                Version 2.6.0

******************************************************************************
                              What's New in 2.6.0
******************************************************************************

Free Pascal 2.6.0 is a new major version of the Free Pascal compiler.

Please also see http://wiki.freepascal.org/User_Changes_2.6.0 for a list
of changes that may affect the behaviour of previously working code, and
how to cope with these changes.

Some highlights are:

Platforms:
  * iPhoneSimulator target

Compiler:
  * Many new language features:
     * Objective-Pascal dialect, supported on all Mac OS X and iOS targets
     * constref parameter modifier for "const by reference"
     * Pascal boolean types with multiple sizes (boolean16/32/64)
     * ISO 7185 language mode (except for I/O). Features amongst others:
        * nested procedure variables
        * non-local goto's
     * Mac Pascal mode improvements
        * nested procedure variables
        * univ modifier
     * Intrinsics
        * sar (shift arithmetic right)
        * bsf/bsr (bitscan forward/reverse)
     * Delphi compatibility mode improvements
        * Nested types, class variables and class local constants
        * Advanced records syntax (no constructors yet)
        * (for..in) Enumerators in records
        * Class and record helpers
        * Generic records, arrays and procedural types
        * Delphi-compatibility of generics improved
        * Scoped enumerations
        * Custom messages for "deprecated" directive
        * Ability to use "&" for escaping keywords
  * New ARM code generator features
     * ARM VFPv2 and VFPv3 floating point unit support
     * Thumb-2 support

Packages:
  * Many improvements to the rtl
  * Many improvements to the database units (fcl-db)
  * Objective-Pascal interfaces to Foundation, AppKit, CoreData and WebCore
  * OpenGL headers updated to OpenGL 4.0
 
Details about these new features can be found at
http://wiki.freepascal.org/FPC_New_Features_2.6.0

See http://bugs.freepascal.org/changelog_page.php for the list of reported
bugs that have been fixed in this release.
Title: Re: FPC 2.6.0 released!
Post by: IPguy on January 02, 2012, 02:22:03 am
Does anyone have a schedule when the snapshots will include one with 2.6.0?  Hopefully, the 0.9.31 train.
Title: Re: FPC 2.6.0 released!
Post by: bonmario on January 02, 2012, 07:27:01 am
For Downloads, please use the FTP server at

ftp://freepascal.stack.nl/pub/fpc/dist/2.6.0/

and sourceforge

https://sourceforge.net/projects/freepascal/files/

as much possible.


Great !!!
Someone knows where i can found files deb for Ubuntu 64 bit?

Thanks, Mario
Title: Re: FPC 2.6.0 released!
Post by: BigChimp on January 02, 2012, 07:32:35 am
Thanks, Marco & team, for all your effort!
Title: Re: FPC 2.6.0 released!
Post by: miquelmatas on January 02, 2012, 08:34:09 am
Does anyone have a schedule when the snapshots will include one with 2.6.0?  Hopefully, the 0.9.31 train.

Go to ftp://ftp.freepascal.org/pub/lazarus/snapshots/
Title: Re: FPC 2.6.0 released!
Post by: theo on January 02, 2012, 12:18:36 pm
Thank you!
It works great here.
Lazarus 0.9.31 r34537M FPC 2.6.0 x86_64-linux-gtk 2
Title: Re: FPC 2.6.0 released!
Post by: Ocye on January 02, 2012, 01:37:27 pm
Great news for the new year, thanks!
But why is there only a crosscompiler for win64?
Title: Re: FPC 2.6.0 released!
Post by: Leledumbo on January 03, 2012, 02:54:21 am
Quote
But why is there only a crosscompiler for win64?
Perhaps because that's the most common target for win32?
Title: Re: FPC 2.6.0 released!
Post by: ahmetnurideniz on January 03, 2012, 09:32:38 am

thanks for all.
Title: Re: FPC 2.6.0 released!
Post by: Ocye on January 03, 2012, 12:30:04 pm
Perhaps because that's the most common target for win32?
Okay, but I still look for a native win64 compiler (ppcx86.exe). Of course I could compile it from source by myself.
Title: Re: FPC 2.6.0 released!
Post by: Blaazen on January 03, 2012, 01:13:14 pm
Good job, thanks to FPC team.

But what is now recommended compiler for the Lazarus trunk (SVN 0.9.31) ?

I use FPC 2.5.1 r19956 and it works very well (Free Pascal Compiler version 2.5.1 [2011/07/25] for x86_64).
Should I move to 2.6.0, 2.7.1 or stay with 2.5.1 ?

Thanks.



Title: Re: FPC 2.6.0 released!
Post by: theo on January 03, 2012, 01:21:44 pm
But what is now recommended compiler for the Lazarus trunk (SVN 0.9.31) ?

I have Lazarus 0.9.31 r34537M FPC 2.6.0 x86_64-linux-gtk 2 here and it works fine.

However, Lazarus has a problem if you use some of the new features.
For example, it does not like the new class helper syntax.
Title: Re: FPC 2.6.0 released!
Post by: felipemdc on January 03, 2012, 02:02:31 pm
But what is now recommended compiler for the Lazarus trunk (SVN 0.9.31) ?

Lazarus has currently 5 supported FPC versions: 2.4.2, 2.4.4, 2.5.1 (January 19th 2011), 2.6.x, 2.7.1 (only new revisions)
Title: Re: FPC 2.6.0 released!
Post by: Blaazen on January 03, 2012, 02:10:25 pm
@theo & felipemdc

Thanks.
Title: Re: FPC 2.6.0 released!
Post by: bonmario on January 06, 2012, 10:52:44 am

Great !!!
Someone knows where i can found files deb for Ubuntu 64 bit?

Thanks, Mario


Some news?

Thanks, Mario
Title: Re: FPC 2.6.0 released!
Post by: Leledumbo on January 06, 2012, 10:46:06 pm
Quote
Some news?
The debs seem to be built for i386 only. Use the tar archive instead.
Title: Re: FPC 2.6.0 released!
Post by: mica on January 08, 2012, 07:55:30 pm
Thanks for the hard work of the developers.
Title: Re: FPC 2.6.0 released!
Post by: nicke85 on January 08, 2012, 09:52:17 pm
Ok I thinked that I made something wrong but fpc 2.6.0 can't compile LCL 0.9.31.
On ArchLinux X64 and Windows XP 64 and Windows 7 X64 both of all.
2.4.4 and 2.7.1 work great..
Title: Re: FPC 2.6.0 released!
Post by: Zoran on January 11, 2012, 03:18:03 pm
Ok I thinked that I made something wrong but fpc 2.6.0 can't compile LCL 0.9.31.
On ArchLinux X64 and Windows XP 64 and Windows 7 X64 both of all.
2.4.4 and 2.7.1 work great..

For me FPC 2.6.0 works well with both Lazarus 0.9.31 from trunk and 0.9.30.3 fixes branch — in Kubuntu 11.10 and Windows 7.
Title: Re: FPC 2.6.0 released!
Post by: Goodman H__ on January 17, 2012, 09:19:52 am
Sorry for my stepping in but I am confused...
It said fp2.6 support advance record but I found it workable as well in fp2.5.1.At least below code works fine on my system:latest snapshot under windows xp.

Could anybody figure me out was I missing something else?Thanks for your help in advance.

Code: [Select]
type
TStudent:record
public
  procedure sayHi;
  function toString:string;
private
  name:string;
  age:integer;
end;
implementation
procedure TStudent.sayHi;
begin
  showMessage(toString);
end;
function toString:string;
begin
  result:=format('Name is %s and age is %d.',[name,age]);
end;
Title: Re: FPC 2.6.0 released!
Post by: Leledumbo on January 17, 2012, 10:29:48 am
2.5.1 was what would be 2.6.0, probably your snapshot already includes the feature.
Title: Re: FPC 2.6.0 released!
Post by: Shebuka on January 17, 2012, 10:44:57 am
Hi, i can't rebuild Lazarus SVN with 2.6.0 due to some strange Jcf2 related problems:

Code: [Select]
/Developer/lazarus/components/jcf2/ReadWrite/EditorConverter.pas(106,17) Hint: Unit "math" not used in EditorConverter
/Developer/lazarus/components/jcf2/ReadWrite/EditorConverter.pas(108,48) Hint: Unit "JcfMiscFunctions" not used in EditorConverter
"Compiling package jcfidelazarus 2.0" completed
Seems to go Ok, (tested also compiling .lpk via Open Package is working), but next:
Code: [Select]
/Developer/lazarus/debugger/gdbmidebugger.pp(7116,107) Warning: Symbol "GDBDisassemble" is deprecated
PPU Loading /Developer/lazarus/components/jcf2/IdePlugin/lazarus/lib/i386-darwin/ParseTreeNode.ppu
PPU Source: ParseTreeNode.pas not found
PPU Source: JcfGlobal.inc not found
Recompiling ParseTreeNode, checksum changed for tokens
ParseTreeNode.pas(76,12) Fatal: Can't find unit ParseTreeNode used by Converter
i get this error.

As soon as I mark JcfIdeLazarus 2.0 to be Uninstalled, rebuild process goes Ok.
Title: Re: FPC 2.6.0 released!
Post by: marcov on January 17, 2012, 02:28:41 pm
2.5.1 was what would be 2.6.0, probably your snapshot already includes the feature.

If it is a recent 2.5.1  If it is an early 2.5.1, it might not have advanced records at all.

So in short, development versions (odd second or third number) are useless without dates.
Title: Re: FPC 2.6.0 released!
Post by: Goodman H__ on January 18, 2012, 01:35:39 am
2.5.1 was what would be 2.6.0, probably your snapshot already includes the feature.

Thank you!I got the idea.
Title: Re: FPC 2.6.0 released!
Post by: 99Percent on January 24, 2012, 03:35:59 am
I can't seem to compile the latest git (svn) version using FPC 2.6.0-1 (automatically upgraded by Arch Linux Pacman).

Code: [Select]
Compiling lclmemmanager.pas
lclmemmanager.pas(100,37) Error: Cannot access a private field of an object here
lclmemmanager.pas(100,47) Error: Incompatible types: got "Int64" expected "LongInt"
lclmemmanager.pas(100,53) Error: Cannot access a private field of an object here
lclmemmanager.pas(100,64) Error: Illegal symbol for property access
lclmemmanager.pas(98,14) Error: There is no method in an ancestor class to be overridden: "TExtMemoryStream.Realloc(var LongInt):^untyped;"
lclmemmanager.pas(104,1) Fatal: There were 5 errors compiling module, stopping
Fatal: Compilation aborted

Should I downgrade FPC to 2.4.4 or wait?
Title: Re: FPC 2.6.0 released!
Post by: MikeFinch on February 11, 2012, 01:00:43 am
Have installed fpc2.6.0, but makes no difference to my gripe spanning at least 3.5 years.

In linux, comboboxes just will not work as intended. Perfect in Windoze.

Likewise in a ListBox, if columns (in my cae 5) is set all I get STILL is one column (at the left).

When will these problems be solved?

Everything is perfect in Windoze but I cannot use linux for the same application(s). Really FRUSTRATING!!  :(

Could anyone who could help please email me - I almost never look at this site.

mikfinch@bigpond.net.au
Title: Re: FPC 2.6.0 released!
Post by: marcov on February 11, 2012, 02:35:52 pm
Have installed fpc2.6.0, but makes no difference to my gripe spanning at least 3.5 years.

In linux, comboboxes just will not work as intended. Perfect in Windoze.

Likewise in a ListBox, if columns (in my cae 5) is set all I get STILL is one column (at the left).

When will these problems be solved?

Ask that in the bugreport where you first reported it. It makes it easier to keep all correspondance together

Note that listbox as a visual component is part of lazarus, not FPC. This thread is about FPC, the non visual part.

Quote
Could anyone who could help please email me - I almost never look at this site.

mikfinch@bigpond.net.au

Then posting here is not constructive. Use the bugtracker if you don't want to participate in forums.
TinyPortal © 2005-2018