Lazarus

Announcements => Free Pascal => Topic started by: marcov on November 26, 2015, 08:19:27 pm

Title: FPC 3.0.0 "Pestering Peacock"
Post by: marcov on November 26, 2015, 08:19:27 pm
Hello,

We are happy to announce the release of the Free Pascal Compiler version
3.0.0 "Pestering Peacock".

This version includes support for, a.o., several new platforms,
codepage-aware strings, and an integrated Pascal source-repository (fppkg).

New features are listed at
http://wiki.freepascal.org/FPC_New_Features_3.0

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

The 3.0.0 docs is available at
http://www.freepascal.org/docs-html/3.0.0/fpctoc.htm

Downloads are available at our website:
http://www.freepascal.org/download.var

Enjoy!

The Free Pascal Compiler Team


                             Free Pascal Compiler

                                Version 3.0.0

****************************************************************************
* Introduction
****************************************************************************

Please also read the platform specific README file, if it exists.

This package contains an advanced freeware 32-bit/64-bit/16-bit pascal
compiler for several platforms. The language and the runtime library are
almost compatible with Turbo Pascal 7.0 and recent Delphi releases. There is
also partial support for the Macintosh pascal dialect.

News and changes related to this release are described in whatsnew.txt.

Free Pascal 3.0.0 is currently available for the following platforms:
- Linux-i386
- Linux-x86_64 (amd64)
- Linux-powerpc
- Linux-sparc
- Linux-ARM
- Win32-i386 (2000/XP, WinNT or later)
- Win64-x86_64 (XP or later)
- Wince-ARM (cross compiled from win32-i386)
- FreeBSD-i386
- FreeBSD-x86_64
- Mac OS X/Darwin for PowerPC (32 and 64 bit)
- Mac OS X/Darwin for Intel (32 and 64 bit)
- iOS (ARM and AArch64/ARM64) and iPhoneSimulator (32 and 64 bit)
- OS/2-i386 (OS/2 Warp v3.0, 4.0, WarpServer for e-Business and eComStation)
- Haiku-i386
- GO32v2-i386
- Nintendo Gameboy Advance-ARM (cross compile from win32-i386)
- Nintendo DS-ARM (cross compile from win32-i386)
- Nintendo Wii-powerpc (cross compile from win32-i386)
- AIX 5.3 and later for PowerPC (32 and 64 bit)
- Java JVM (1.5 and later) and Android Dalvik (Android 4.0 and later)
- Android (ARM, i386, MIPS) via cross-compiling.
- MSDos-i8086 (cross compiled from win32-i386 or Linux)
- Amiga, MorphOS and AROS

There are other platforms (like other BSD variants) which are more or less
working, but there is currently no maintainer for them and thus we cannot
provide adequate support. If you want to change this and create and
maintain versions for other platforms and targets, feel free to contact us,
e-mail addresses are listed below.


****************************************************************************
* Features
****************************************************************************

- high speed compiler
- fully 16, 32 or 64-bit code
   - 32 bit compiler can be used on x86_64 Linux distributions to compile
     32 bit applications
- language features:
   - almost fully compatible with Borland Pascal and Borland Delphi
   - ansi strings
   - wide strings
   - exception support
   - RTTI support
   - procedure overloading
   - generics (experimental)
   - operator overloading
   - COM, CORBA and raw interfaces support
   - dynamic array support
   - variant support
   - inlining
- code optimizer:
   - peephole optimizer (80x86 only)
   - jump optimizer
   - loading of variables into registers
   - assembler level dataflow analyzer (80x86 only)
   - stack frame eliminations
   - sophisticated register allocator
- integrated BASM (built-in assembler) parser
   - supports ATT syntax used by GNU C
   - supports Intel syntax used by Turbo Pascal (x86-only)
- can compile code into assembler source code for these assemblers:
   - GNU Assembler (GAS)
   - Netwide assembler (Nasm)
   - Microsoft Assembler/Turbo Assembler (Masm/Tasm)
   - Watcom assembler (wasm)
- internal assembler for ultra fast object file generation
- can call external C code
   - h2pas utility to convert .h files to Pascal units
- smart linking (also known as dead code stripping)
- support for the GNU debugger
- integrated development environment (disabled by default on Mac OS X)
   - powerful user friendly Wordstar compatible multi file editor
   - context sensitive help supports help files in HTML, Windows HLP and
     Borland TPH format.
   - debugger on most platforms
- can create binaries running natively under both DOS and OS/2 (EMX version)
- no need for Linux distribution specific binaries, programs you write run
   on all distributions
- high quality documentation


****************************************************************************
* Minimum requirements
****************************************************************************

Processor:
   i386, x86_64, PowerPC, ARM, MIPS, i8086, Motorola 68k, Sparc or JVM
   runtime
Win32:
  - MS Windows NT/2000/XP or later (Win95, 98 and ME are not supported
    in FPC officially any longer).
  - 16 MB RAM
OS/2:
  - OS/2 Warp v3.0 with one of late fixpaks - FP 35 should be fine,
    OS/2 Warp v4.0 with FP 5 and above, WSeB, MCP or any eComStation version
    (OS/2 2.0/2.1 currently not supported, not even for compiled programs).
  - Certain features (e.g. Unicode support in the RTL) require proper
support
    only available in later OS/2 versions (at least OS/2 Warp 4.0 FP14),
    otherwise the functionality may be limited (but the binaries still work
    even on the older versions, albeit with some limitations).
Linux:
  - system running a 2.4.x kernel
FreeBSD:
- There are separate releases for FreeBSD 7.x system or 8.x system. The code
     works on 6.x too. Older versions might need specific adaptations.
Mac OS X:
  - Mac OS X 10.4 and higher

Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: timppl on November 27, 2015, 08:34:02 am
Thanks to all the developers.

I now have it installed and one thing I have noticed is that when compiling from a terminal the output seems to scroll faster so I guess V3 is faster than 2.6.4  :D

Regards

Tim
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: taazz on November 27, 2015, 09:14:10 am
Congrats guys. An other excellent release.

Thank you.
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: hnb on November 27, 2015, 09:59:57 am
Significant step forward :). Now we need more detailed optional RTTI, anonymous methods and attributes ^^. Bye bye Delphi.
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: Deepaak on November 27, 2015, 05:24:49 pm
Thank you everybody, who have given their valuable time and knowledge for this excellent release.  :)
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: Graeme on November 27, 2015, 06:59:13 pm
Very impressive list of features. Well done to everybody that was involved.
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: Michl on November 27, 2015, 07:28:11 pm
Thank you so much for all you work!!!
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: Blaazen on November 27, 2015, 07:59:18 pm
Thanks.

BTW: "Pestering Peacock" is some Ubuntu related joke?  :)
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: marcov on November 27, 2015, 08:10:51 pm
Thanks.

BTW: "Pestering Peacock" is some Ubuntu related joke?  :)

Not really. It was about two years ago during a FPC hackathon when it turned out the hotel where we staying had a bunch of peacocks. They were very noisy and annoying.

During that meeting, the plans for 3.0 (and e.g. the unicode implementation of the RTL) were finalized, and sb proposed to call it "Pestering Peacock", and that stuck
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: SnoopyDog on November 27, 2015, 08:13:01 pm
Thanks a lot for the new version :)

I am using Lazarus 1.4.4 with FPC 2.6.4 currently. I tried to compile one of my projects where i use overloaded properties with FPC 3.0.0 and i get the error message that i duplicate the identifiers. Overloaded properties are supported in FPC 2.6.4 and Delphi as well. Is this a bug or a feature in FPC 3.0.0?
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: Bitbeisser on November 28, 2015, 12:22:09 am
Thanks.

BTW: "Pestering Peacock" is some Ubuntu related joke?  :)

Not really. It was about two years ago during a FPC hackathon when it turned out the hotel where we staying had a bunch of peacocks. They were very noisy and annoying.

During that meeting, the plans for 3.0 (and e.g. the unicode implementation of the RTL) were finalized, and sb proposed to call it "Pestering Peacock", and that stuck
And I thought you where referring to a taller two legged peacock, who was ruffling his feathers at that hackathon...  8)
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: boren on November 28, 2015, 05:40:33 am
Great news.

I wait for FPC 3 for long, now it's available thanks to all developers.

Be more famous and famous! Lazarus and Free Pascal!
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: HeavyUser on November 28, 2015, 05:43:55 am
And I thought you where referring to a taller two legged peacock, who was ruffling his feathers at that hackathon...  8)
erm, why there are beacocks with more legs?

Thanks for the release seems one of the most awaited.

It looks wonderful.
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: jwdietrich on November 28, 2015, 08:00:19 am
That is very good news.  :) Thanks for your joint efforts.
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: Thaddy on November 28, 2015, 09:48:49 am
Congrats.
I like this approach: "It's ready when it's ready".
A breath of fresh air compared to some.
The result is a thoroughly modern and stable Pascal environment that duly deserves the 3.0 release number.
Very, very good work! Tnx!

A special mention should go to the excellent documentation which is way ahead of its siblings.
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: gour on November 28, 2015, 10:55:03 am
Significant step forward :). Now we need more detailed optional RTTI, anonymous methods and attributes ^^. Bye bye Delphi.

Recently I bought Object Pascal Handbook (by Marco Canto) and plan to use it exclusively with FPC/Lazarus, so wonder if there are some more features besides the ones listed above which are not (yet) supported in FPC?
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: Luc on November 28, 2015, 11:17:14 am
This is really great news. Many many thanks to all the FPC team for writing such a good compiler !  :)
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: silvestre on November 28, 2015, 12:10:47 pm
Congratulations. Developers, great job !! :)
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: RNBW on November 28, 2015, 12:37:48 pm
Pestering Peacock looks interesting, but when trying to incorporate into Lazarus, there doesn't appear to be a Sources folder and I keep getting an error message.  I have installed fpc 3.0 to C:\fpc
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: marcov on November 28, 2015, 01:31:52 pm
With FPC releases, sources are a separate download.
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: Thaddy on November 28, 2015, 04:01:07 pm
Significant step forward :). Now we need more detailed optional RTTI, anonymous methods and attributes ^^. Bye bye Delphi.

Recently I bought Object Pascal Handbook (by Marco Canto) and plan to use it exclusively with FPC/Lazarus, so wonder if there are some more features besides the ones listed above which are not (yet) supported in FPC?

Not many. Note that there are and always will be some quirks between FPC and Delphi but not anything (as it stands..) that can't be solved both ways by an experienced programmer that is not afraid to read documentation (ok, there's the limiting factor) or sound advice on this forum.

I know these points are being worked on. Check the public SVN source tree.

And now for something completely different but on subject and very opinionated:
- Anonymous methods are great. Would be very cool to have. Some work done, I believe.
- Anything RTTI extra still makes me sick. Use a script language instead, like PHP.
- Attributes are even worse for a compiled language. (If you need it, the language is not expressive enough. That is not the case.)

Let me explain I use both Delphi and FPC for a very very long time professionally. (Yes, Both)
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: gour on November 28, 2015, 05:44:30 pm
Not many. Note that there are and always will be some quirks between FPC and Delphi but not anything (as it stands..) that can't be solved both ways by an experienced programmer that is not afraid to read documentation (ok, there's the limiting factor) or sound advice on this forum.

Good to know. ;)

Quote
And now for something completely different but on subject and very opinionated:
...

Even better. :-)

I did not bother to get a closer look what the above mentioned features stand for in Delphi, so it seems FPC is even better in this regard. :-)

Quote
Let me explain I use both Delphi and FPC for a very very long time professionally. (Yes, Both)

I'm happy to hear it...just curious, what is your development platform for FPC?
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: Thaddy on November 28, 2015, 05:56:53 pm
varies between copy con program.pp program XXX;begin end.crtl-z , fp, Notepad, D7, D2007 XE2 and Lazarus.
Honest. Very Honest. Depends.
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: skalogryz on November 29, 2015, 10:37:15 am
Not really. It was about two years ago during a FPC hackathon when it turned out the hotel where we staying had a bunch of peacocks. They were very noisy and annoying. ... and sb proposed to call it "Pestering Peacock", and that stuck
I envision something like "FPC 3.1.0 'Ice Beer' has been released" :)

Personally, I really liked pascal community (fpc, lazarus, mseide ... and so on) staying away from giving fancy names to their releases.
I don't really understand this new modern trend of giving meaningless names to releases.
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: marcov on November 29, 2015, 11:50:26 am
I envision something like "FPC 3.1.0 'Ice Beer' has been released" :)

Personally, I really liked pascal community (fpc, lazarus, mseide ... and so on) staying away from giving fancy names to their releases.
I don't really understand this new modern trend of giving meaningless names to releases.

I guess it was one of a kind, and we go back to pictures of Cheetahs again.
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: gour on November 29, 2015, 11:52:33 am
varies between copy con program.pp program XXX;begin end.crtl-z , fp, Notepad, D7, D2007 XE2 and Lazarus.
Honest. Very Honest. Depends.

So, Windows is main OS, right?
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: Thaddy on November 29, 2015, 01:40:45 pm
Nope. It's - server side - Debian based linuxes atm. But my development setup is still windows centric and I use cross-compilation a lot. Also, all test suites are written for both platforms and debugging takes place on the platform itself.
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: gour on November 29, 2015, 05:09:42 pm
Nope. It's - server side - Debian based linuxes atm.

That's interesting in a sense you have not jumped to the latest called 'Go lang'. ;)
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: RNBW on November 30, 2015, 09:21:12 pm
Marcov:

Thanks.  I'd not picked up that Sources was a separate download.  All sorted.
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: marcov on November 30, 2015, 09:34:16 pm
That's interesting in a sense you have not jumped to the latest called 'Go lang'. ;)

Maybe he is not writing social networks integrated with search engines :_)
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: georgebou on November 30, 2015, 10:10:30 pm
Good job guys.

Thank you.
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: Thaddy on December 01, 2015, 04:14:56 pm
My only DWIM compilers are pascal based, Marco. Btw what is social? :o
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: marcov on December 01, 2015, 05:21:55 pm
Btw what is social? :o

A word that is nowadays a higher score on buzzword bingo.
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: skalogryz on December 01, 2015, 05:59:35 pm
Btw what is social? :o

A word that is nowadays a higher score on buzzword bingo.
Speaking of social! marcov congratulations on 4000th post!
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: marcov on December 01, 2015, 06:10:38 pm
Speaking of social! marcov congratulations on 4000th post!

Thanks  : ;)
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: x2nie on January 12, 2016, 02:28:03 pm
FPC 3.0.0

****************************************************************************
* Features
****************************************************************************

- can call external C code




Is it new feature of FPC 3.0.0 ?
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: marcov on January 12, 2016, 02:46:25 pm

- can call external C code


Is it new feature of FPC 3.0.0 ?

No, just like Borland Pascal (and Delphi) compatiiblity a few lines higher isn't new either. IOW that is general description of the project, not whatsnew
Title: Re: FPC 3.0.0 "Pestering Peacock"
Post by: x2nie on January 12, 2016, 02:59:24 pm

- can call external C code


Is it new feature of FPC 3.0.0 ?

No, just like Borland Pascal (and Delphi) compatiiblity a few lines higher isn't new either. IOW that is general description of the project, not whatsnew


Oh ! I was wrong, I think it was an implementation of  "future" FPC feature[1], But, it is another one[2].
Quote
Planned for later versions
    • Linking with C++ code

    [1] http://www.freepascal.org/future.var
    [2] ftp://ftp.freepascal.org/fpc/docs-pdf/CinFreePascal.pdf
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: BeniBela on January 27, 2016, 10:55:19 pm
    Now I tried to update

    Quote
    Makefile:2872: *** The only supported starting compiler version is 3.0.0. You are trying to build with 2.6.2..  Stop.

    Awesome

    So you can only can get 3.x, if you already have 3.0  >:D
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: Laksen on January 27, 2016, 11:34:38 pm
    No, trunk can only be built with 3.0.0.
    3.0.0 can be built by 2.6.4.
    2.6.4 can be built by 2.6.2
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: Leledumbo on January 28, 2016, 11:14:22 am
    Now I tried to update

    Quote
    Makefile:2872: *** The only supported starting compiler version is 3.0.0. You are trying to build with 2.6.2..  Stop.

    Awesome

    So you can only can get 3.x, if you already have 3.0  >:D
    The golden rule since a long time ago (but more forced when that Makefile message is introduced) is: previous latest/current stable is the only one supported to build current stable, current stable is the only one supported to build trunk.
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: Thaddy on January 28, 2016, 11:50:39 am
    So you can only can get 3.x, if you already have 3.0  >:D

    Yes. And there are many very good reasons for that, most important is:

    The developers want to make use of the new features in the last major stable release, i.e. 3.0.0 to further develop trunk.

    e.g.: by now the Default() intrinsic is used in the trunk sourcecode. FPC 2.6.4 (or in your case worse:2.6.2) can't handle that intrinsic because it doesn't know what it is... See the point?

    So bootstrapping trunk is and always has been enforced to use the latest stable release.
    Which is as it stands 3.0.0.

    BTW: the latest fpcup builds you an intermediate 3.0.0 compiler from 2.6.2 to bootstrap trunk.
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: marcov on January 28, 2016, 12:54:39 pm

    BTW: the latest fpcup builds you an intermediate 3.0.0 compiler from 2.6.2 to bootstrap trunk.

    Undocumented and unsupported behaviour. The last release before 3.0.0 is 2.6.4 not 2.6.2
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: Thaddy on January 28, 2016, 01:10:47 pm
    Yes. It is.

    But 2.6.4 was a bug fix release and didn't contain new (documented) features.

    I didn't think it was appropriate to ask to back-port the correct behavior to 3.0.0.
    You are of course free to back-port it ;) I can only ask... and did ask and submitted a patch  for trunk that got accepted ;) So, basically it was my fault  O:-)
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: molly on March 01, 2016, 06:09:49 pm
    I ran into something weird.

    I have FPC 3.0.0 installed (windows) from official distributed installer, and it came with examples inside examples directory. All the numlib examples seem to have their code duplicated inside the same file.

    I'm not sure it's something that is amiss with my particular test setup but perhaps someone else could check/verify ?

    As for an example detgpbte.pas:
    Code: [Select]
    program detgpbte;

    {

    1: 260
    2: 64
    3:

    }
    uses
      typ,
      iom,
      det;

    const
      pmin = -10;
      pmax = 100;
    var
      l, i, ind, rw, n, k, term, p, vb, nvb: ArbInt;
      f: ArbFloat;
      a: array[pmin..pmax] of ArbFloat;
    begin
      iom.npos := 1000;        {max. width of output to 1000, since this is piped}
      Assign(input, ParamStr(1));
      reset(input);
      Assign(output, ParamStr(2));
      rewrite(output);
      Write(' program results detgpbte');
      case sizeof(ArbFloat) of
        4: writeln('(single)');
        6: writeln('(real)');
        8: writeln('(double)');
        10: writeln('(extended)');
      end;
      Read(nvb);
      writeln;
      writeln(' number of examples:', nvb: 3);
      for vb := 1 to nvb do
      begin
        writeln;
        writeln('example', vb: 2);
        Read(p, n, l);
        ind := p;
        writeln;
        writeln('  n=', n: 1, '  l=', l: 1);
        for i := 1 to n do
        begin
          if i <= l then
            rw := i
          else
            rw := l + 1;
          iomrev(input, a[ind], rw);
          Inc(ind, rw);
        end;
        detgpb(n, l, a[p], f, k, term);
        ind := p;
        writeln;
        writeln(' A (left-under) =');
        for i := 1 to n do
        begin
          if i <= l then
            rw := i
          else
            rw := l + 1;
          if i > l + 1 then
            Write('': (i - l - 1) * (numdig + 2));
          iomwrv(output, a[ind], rw, numdig);
          Inc(ind, rw);
        end;
        writeln;
        writeln('term=', term: 2);
        writeln;
        if term = 3 then
          writeln(' wrong input')
        else
        if term = 2 then
          writeln(' matrix not pos-def.')
        else
        begin
          Write(' determinant of A =', f: numdig);
          {      if k <> 0 then } Write(' * 8**', k: 3);
          writeln;
        end; {term=1}
        writeln('---------------------------------------------');
      end; {vb}
      Close(input);
      Close(output);
    end.
    program detgpbte;

    {

    1: 260
    2: 64
    3:

    }
    uses
      typ,
      iom,
      det;

    const
      pmin = -10;
      pmax = 100;
    var
      l, i, ind, rw, n, k, term, p, vb, nvb: ArbInt;
      f: ArbFloat;
      a: array[pmin..pmax] of ArbFloat;
    begin
      iom.npos := 1000;        {max. width of output to 1000, since this is piped}
      Assign(input, ParamStr(1));
      reset(input);
      Assign(output, ParamStr(2));
      rewrite(output);
      Write(' program results detgpbte');
      case sizeof(ArbFloat) of
        4: writeln('(single)');
        6: writeln('(real)');
        8: writeln('(double)');
        10: writeln('(extended)');
      end;
      Read(nvb);
      writeln;
      writeln(' number of examples:', nvb: 3);
      for vb := 1 to nvb do
      begin
        writeln;
        writeln('example', vb: 2);
        Read(p, n, l);
        ind := p;
        writeln;
        writeln('  n=', n: 1, '  l=', l: 1);
        for i := 1 to n do
        begin
          if i <= l then
            rw := i
          else
            rw := l + 1;
          iomrev(input, a[ind], rw);
          Inc(ind, rw);
        end;
        detgpb(n, l, a[p], f, k, term);
        ind := p;
        writeln;
        writeln(' A (left-under) =');
        for i := 1 to n do
        begin
          if i <= l then
            rw := i
          else
            rw := l + 1;
          if i > l + 1 then
            Write('': (i - l - 1) * (numdig + 2));
          iomwrv(output, a[ind], rw, numdig);
          Inc(ind, rw);
        end;
        writeln;
        writeln('term=', term: 2);
        writeln;
        if term = 3 then
          writeln(' wrong input')
        else
        if term = 2 then
          writeln(' matrix not pos-def.')
        else
        begin
          Write(' determinant of A =', f: numdig);
          {      if k <> 0 then } Write(' * 8**', k: 3);
          writeln;
        end; {term=1}
        writeln('---------------------------------------------');
      end; {vb}
      Close(input);
      Close(output);
    end.

    Thx in advance.
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: wp on March 01, 2016, 06:18:08 pm
    No fpc3.0 issue, seems to be like this for a long time: my oldest fpc available is 2.0, and it shows the same...
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: molly on March 01, 2016, 06:22:42 pm
    @wp:
    thank you very much for the verification. Sorry for the false report.

    I see (http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/numlib/tests/detgpbte.pas?view=markup). they are wrongly in the svn to begin with :-S
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: Semaphore on March 04, 2016, 11:14:29 am
    Thanks and congrats on the 3.0.0 release of FPC, looking forward to using Pestering Peacock :)

    We use FPC every day and our team would like to move over to 3.0.0, however we are encountering an issue and I would greatly appreciate confirmation that it's not a problem we can work around on our end.

    I am referring to http://mantis.freepascal.org/view.php?id=29547 .

    Any workarounds at all?

    Cheers guys!
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: staratel20 on March 14, 2016, 03:07:56 pm
    Thank for your job and forwarding good doing :)
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: Cyrax on March 14, 2016, 04:45:40 pm
    Thank for your job and forwarding good doing.

    Only want to notice a little disappointment, when download a new FPC version and try to install: even if I choose Minimum installation - installer ask me about the path to Android NDK files. Not good if I'm not in plan to write for Android , at least this time. So I have to download Android NDK - 736MB files, that is not simple with my pure internet connection. Also if connection will broken - I'll try again and again until success. Be good to provide download all needed (especially big) things through torrent if possible. And of cause I would be some more glad if Minimum installation of FPC don't need Android NDK (but think if it is - there was no another way).

    Are you sure you got your FPC installation binary from official source?
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: staratel20 on March 14, 2016, 04:55:27 pm
    Cyrax: finally clean for me that this not the problem of FPC, so I don't want to interfere to a general joy in this branch)). So propose to remove your last post, and then I remove my. And also want to thank you.
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: BeniBela on March 28, 2016, 11:14:47 am
    my oldest fpc available is 2.0, and it shows the same...

    I just found 2.0.4 on my hard drive

    Perhaps now is time to delete that as the hd running out of space
    Title: Re: FPC 3.0.0 "Pestering Peacock" -- AIX support
    Post by: StamleyMarcus on May 19, 2016, 04:40:57 pm
    In this announcement, I see:

    Free Pascal 3.0.0 is currently available for the following platforms:
    ...
    - AIX 5.3 and later for PowerPC (32 and 64 bit)
    ...

    But under "Downloads" I cannot find any downloads for AIX ...

    Can someone please indicate what needs to be done to get this FreePascal compiler to run under AIX?

    Thanks in advance,

    Stan
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: Thaddy on May 19, 2016, 05:46:25 pm
    Normally you would build a cross compiler for AIX from either Linux or Windows or maybe OSX.
    If your AIX system has sufficient resources you may be able to build a native system using the cross compiler to build the system.
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: mischi on May 19, 2016, 09:42:46 pm
    The hardest part for me is to build the cross binutils, in particular if it is not linux or freebsd. Once this is done, the cross-compiler is build fairly easily from the sources.
    Title: Re: FPC 3.0.0 "Pestering Peacock" -- AIX support
    Post by: Paul Breneman on May 19, 2016, 10:02:20 pm
    Can someone please indicate what needs to be done to get this FreePascal compiler to run under AIX?

    I see 7 powerpc-aix files here: http://svn2.freepascal.org/svn/fpcbuild/binaries/i386-win32/ (http://svn2.freepascal.org/svn/fpcbuild/binaries/i386-win32/)

    The easiest way I know to compile FPC for cross-compiling programs for other devices is here: http://wiki.freepascal.org/Small_Virtual_Machines (http://wiki.freepascal.org/Small_Virtual_Machines)
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: mischi on May 20, 2016, 07:58:51 am
    I had a go for the cross-compiler, but it failed with:

    pp.pas(219,36) Warning: Object /lib/crt0.o not found, Linking may fail !
    /usr/local/bin/powerpc-aix-ld: cannot find /lib/crt0.o
    /usr/local/bin/powerpc-aix-ld: cannot find -lm
    /usr/local/bin/powerpc-aix-ld: cannot find -lc
    /usr/local/bin/powerpc-aix-ld: cannot find -lbsd
    An error occurred while linking

    The commands to get here are:

    Building the cross-binutils:
    ./configure --target=powerpc-aix --prefix=/usr/local/lib/powerpc-aix --bindir=/usr/local/bin --program-prefix=powerpc-aix- --disable-werror
    make
    sudo make install

    Building the cross-compiler:
    make all OPT="-ap" CPU_TARGET=powerpc OS_TARGET=aix

    Maybe this helps.
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: deathshadow on July 22, 2016, 01:22:26 am
    Please, for the love of Christmas, drop the goofy Ubuntu style cutsy name.

    Side note, at first I thought it said "Festering Peacock".

    Could be worse though, could be Abner Audubon Peacock....
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: marcov on July 22, 2016, 10:28:08 am
    Please, for the love of Christmas, drop the goofy Ubuntu style cutsy name.

    It is actually a pun on those names. We were discussing if the next major release would be 2.8 or 3.0 at a conference center where was a peacock on grounds making a lot of noise :-)

    Don't worry, as far as I know it is a one time joke. I haven't heard anyone suggesting a new name for 3.0.2.
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: Leledumbo on July 22, 2016, 10:42:29 am
    Please, for the love of Christmas, drop the goofy Ubuntu style cutsy name.

    It is actually a pun on those names. We were discussing if the next major release would be 2.8 or 3.0 at a conference center where was a peacock on grounds making a lot of noise :-)

    Don't worry, as far as I know it is a one time joke. I haven't heard anyone suggesting a new name for 3.0.2.
    No problem with Ubuntu style name for me. Continue with 3.0.2, please :P
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: Thaddy on July 22, 2016, 10:52:09 am
    No problem with Ubuntu style name for me. Continue with 3.0.2, please :P

    I smell a contest.....

    Submission: "Wandering Willow"
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: marcov on July 22, 2016, 11:22:02 am
    I smell a contest.....

    Submission: "Wandering Willow"

    Sure, no problem. If next conference a willow walks by we will  O:-)
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: Thaddy on July 22, 2016, 12:19:36 pm
    That can be arranged (Halloween costume rental).
    Or play sims ;)
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: marcov on July 22, 2016, 02:48:03 pm
    A fake willow gets you a fake release, IOW then we will call rc1 that way.
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: Thaddy on August 06, 2016, 10:23:05 am
    I see a 3.0.2 RC1 in svn. Is that already the official RC1?
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: marcov on August 06, 2016, 09:17:08 pm
    I see a 3.0.2 RC1 in svn. Is that already the official RC1?

    Probably yes, since sources are already uploaded. Unfortunately, the documentation tools needed some fixes to parse the TArray and advanced records TRect declarations. We are waiting for that (afaik Michael and Mattias are working on that)
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: kazalex on August 06, 2016, 09:53:41 pm
    I only hope new version will not be released with such (http://bugs.freepascal.org/view.php?id=27349) bug.
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: tom.chris on August 11, 2016, 12:16:01 pm
    ImageSize isn't implemented yet in FPC 3.0.0
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: BeniBela on August 11, 2016, 01:52:42 pm
    I only hope new version will not be released with such (http://bugs.freepascal.org/view.php?id=27349) bug.

    Just do not use nested types

    Even if fpc would work, gdb won't and then you cannot debug them.
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: kazalex on August 24, 2016, 09:37:54 am
    Quote
    Just do not use nested types
    Bug of nested types - just do not use it.
    Bug of generics - just do not use it.
    Bug of anything - just do not use it.

    It's fine. I like it. Hello, Delphi 7!
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: Leledumbo on August 24, 2016, 10:24:41 am
    Quote
    Just do not use nested types
    Bug of nested types - just do not use it.
    Bug of generics - just do not use it.
    Bug of anything - just do not use it.

    It's fine. I like it. Hello, Delphi 7!
    Just do not use whatever incomplete features you can't bear of its drawback for now. Feel free to use nested types & generics, despite they choke codetools and the debugger. I use generics, seldomly nested type as well because they still make my code simpler, while I still can use old style debugging when needed.
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: SnoopyDog on October 11, 2016, 01:25:18 pm
    Unfortunately, FPC 3.0 does not support overloaded properties anymore.

    Code: [Select]
    type cTestClass = class
      function GetValue (Idx : integer) : string; overload; virtual; abstract;
      function GetValue (Key : string) : string; overload; virtual; abstract;
      property Value [Idx : integer] : string read GetValue; {$IFNDEF FPC }default;{$ENDIF}
      property Value [Key : string] : string read GetValue; {$IFNDEF FPC }default;{$ENDIF}
    end;

    This code compiles and works in Delphi 2007, Rad Studio 10.1 and FPC 2.6.4. But not in FPC 3.0 anymore.

    I wrote it already here: http://forum.lazarus.freepascal.org/index.php/topic,32083.0.html
    but maybe in this thread it is better (?)
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: marcov on October 11, 2016, 01:45:12 pm
    No this is not the correct place. For bugs please use the bugtracker. Bugs needs to be fixed in trunk first before we even can talk about the release branch.
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: SnoopyDog on October 11, 2016, 02:34:00 pm
    Ok thank you! So i need to register at the bugtracker.
    Title: Re: FPC 3.0.0 "Pestering Peacock"
    Post by: Thaddy on November 12, 2016, 08:10:17 pm
    http://bugs.freepascal.org/view.php?id=29056
    http://bugs.freepascal.org/view.php?id=30088

    Known issue.
    TinyPortal © 2005-2018