Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-01

event code tool compilation error

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hi!

Some hours ago, I updated my lazarus version via svn. After wait it completes, I tried rebuild Lazarus without success. The error is

...
Compiling eventcodetool.pas
eventcodetool.pas(127,9) Fatal: Syntax error, ")" expected but "," found Fatal: Compilation aborted
make[2]: ** [codetools.ppu] Erro 1
make[2]: Saindo do diret?rio `/home/fabiolg/lazarus/components/codetools' make[1]: ** [codetools_all] Erro 2
make[1]: Saindo do diret?rio `/home/fabiolg/lazarus/components' make: ** [components] Erro 2
fabiolg at darkstar3:~/lazarus$

I see the file and I found this:

const
  MethodKindAsString: array[TMethodKind] of shortstring = (
        'procedure', 'function', 'constructor', 'destructor',
        'class procedure', 'class function'
        {$IFNDEF VER2_4}
        ,'class constructor', 'class destructor'
        {$ENDIF}
        {$IFDEF VER2_5}
        ,'operator overload'
        {$ENDIF}
      );

but I can't see anything wrong...

I searched the wiki and the bugtracker, but I found anything. On google, on some pages is wrote that to solve this, I have to update my FPC (my previous version of FPC is 2.5.1 of november of 2010). I updated it but the error persists.

Some Idea?

Fabio

Reply by email

Mattias Gaertner
to Unknown author
Show quoted text 39 lines
Hi! Some hours ago, I updated my lazarus version via svn. After wait it completes, I tried rebuild Lazarus without success. The error is ... Compiling eventcodetool.pas eventcodetool.pas(127,9) Fatal: Syntax error, ")" expected but "," found Fatal: Compilation aborted make[2]: ** [codetools.ppu] Erro 1 make[2]: Saindo do diret?rio `/home/fabiolg/lazarus/components/codetools' make[1]: ** [codetools_all] Erro 2 make[1]: Saindo do diret?rio `/home/fabiolg/lazarus/components' make: ** [components] Erro 2 fabiolg at darkstar3:~/lazarus$ I see the file and I found this: const MethodKindAsString: array[TMethodKind] of shortstring = ( 'procedure', 'function', 'constructor', 'destructor', 'class procedure', 'class function' {$IFNDEF VER2_4} ,'class constructor', 'class destructor' {$ENDIF} {$IFDEF VER2_5} ,'operator overload' {$ENDIF} ); but I can't see anything wrong... I searched the wiki and the bugtracker, but I found anything. On google, on some pages is wrote that to solve this, I have to update my FPC (my previous version of FPC is 2.5.1 of november of 2010). I updated it but the error persists. Some Idea?

You need a recent 2.5.1 or a released 2.4.2 or a recent 2.4.3.

The 'operator overload' came some weeks ago to 2.5.1.

Mattias

Reply by email

Martin
to Mattias Gaertner
Mattias Gaertner wrote 23 lines
const > MethodKindAsString: array[TMethodKind] of shortstring = ( > 'procedure', 'function', 'constructor', 'destructor', > 'class procedure', 'class function' > {$IFNDEF VER2_4} > ,'class constructor', 'class destructor' > {$ENDIF} > {$IFDEF VER2_5} > ,'operator overload' > {$ENDIF} > ); > > but I can't see anything wrong... > > I searched the wiki and the bugtracker, but I found anything. On > google, on some pages is wrote that to solve this, I have to update my > FPC (my previous version of FPC is 2.5.1 of november of 2010). I > updated it but the error persists. > > Some Idea? You need a recent 2.5.1 or a released 2.4.2 or a recent 2.4.3. The 'operator overload' came some weeks ago to 2.5.1.

Maybe those IFDEF can be made smarter?

{$IF high(TMethodKind)   mkClassFunction}
     ,'class constructor', 'class destructor'
    {$IF high(TMethodKind)   mkClassDestructor}
    ,'operator overload'
    {$ENDIF}
  {$ENDIF}

Reply by email

Mattias Gaertner
to Martin
Show quoted text 32 lines
On 14/01/2011 16:24, Mattias Gaertner wrote: > const >> MethodKindAsString: array[TMethodKind] of shortstring = ( >> 'procedure', 'function', 'constructor', 'destructor', >> 'class procedure', 'class function' >> {$IFNDEF VER2_4} >> ,'class constructor', 'class destructor' >> {$ENDIF} >> {$IFDEF VER2_5} >> ,'operator overload' >> {$ENDIF} >> ); >> >> but I can't see anything wrong... >> >> I searched the wiki and the bugtracker, but I found anything. On >> google, on some pages is wrote that to solve this, I have to update my >> FPC (my previous version of FPC is 2.5.1 of november of 2010). I >> updated it but the error persists. >> >> Some Idea? > You need a recent 2.5.1 or a released 2.4.2 or a recent 2.4.3. > > The 'operator overload' came some weeks ago to 2.5.1. Maybe those IFDEF can be made smarter? {$IF high(TMethodKind) mkClassFunction} ,'class constructor', 'class destructor' {$IF high(TMethodKind) mkClassDestructor} ,'operator overload' {$ENDIF} {$ENDIF}

Applied.
But that does not mean we support older 2.5.1 - we do not.

Mattias

Reply by email

Unknown author
to Mattias Gaertner: On Fri, 14 Jan 2011 14:11:01 -0200 You need a recent 2.5.1 or a released 2.4.2 or a…

Yes, I updated my FPC 2.5.1 today. I downloaded the file fpcbuild.zip from http://www.freepascal.org/develop.var on "Download Daily Source Snapshot of Development Tree (trunk)" section

I'm looking the file typinfo.pp of my "fresh" fpc version, searching the TMethodKind type and it don't have the mkOperatorOverload. I looked the same file via FPC svn and it have this. Maybe I downloaded the wrong file. I'll try download the fpcbuild.zip again and see what's happens.

While I write this message, I checked the date of the downloaded file on ftp, and it dated of 2010-nov-16, and if 'operator overload' came some weeks ago, this is the problem...

After this, I'll update my fpc via svn...

Regards,

Fabio

2011/1/14 Mattias Gaertner :

Show quoted text 55 lines
On Fri, 14 Jan 2011 14:11:01 -0200 "" wrote: > Hi! > > Some hours ago, I updated my lazarus version via svn. After wait it > completes, I tried rebuild Lazarus without success. The error is > > ... > Compiling eventcodetool.pas > eventcodetool.pas(127,9) Fatal: Syntax error, ")" expected but "," found > Fatal: Compilation aborted > make[2]: ** [codetools.ppu] Erro 1 > make[2]: Saindo do diret?rio `/home/fabiolg/lazarus/components/codetools' > make[1]: ** [codetools_all] Erro 2 > make[1]: Saindo do diret?rio `/home/fabiolg/lazarus/components' > make: ** [components] Erro 2 > fabiolg at darkstar3:~/lazarus$ > > > I see the file and I found this: > > const > ? MethodKindAsString: array[TMethodKind] of shortstring = ( > ? ? ? ? 'procedure', 'function', 'constructor', 'destructor', > ? ? ? ? 'class procedure', 'class function' > ? ? ? ? {$IFNDEF VER2_4} > ? ? ? ? ,'class constructor', 'class destructor' > ? ? ? ? {$ENDIF} > ? ? ? ? {$IFDEF VER2_5} > ? ? ? ? ,'operator overload' > ? ? ? ? {$ENDIF} > ? ? ? ); > > but I can't see anything wrong... > > I searched the wiki and the bugtracker, but I found anything. On > google, on some pages is wrote that to solve this, I have to update my > FPC (my previous version of FPC is 2.5.1 of november of 2010). I > updated it but the error persists. > > Some Idea? You need a recent 2.5.1 or a released 2.4.2 or a recent 2.4.3. The 'operator overload' came some weeks ago to 2.5.1. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Maxim Ganetsky
to Mattias Gaertner: On Fri, 14 Jan 2011 16:47:25 +0000 Applied. But that does not mean we support older 2.5.1…

14.01.2011 20:00, Mattias Gaertner ?????:

Show quoted text 38 lines
On Fri, 14 Jan 2011 16:47:25 +0000 Martin wrote: > On 14/01/2011 16:24, Mattias Gaertner wrote: >> const >>> MethodKindAsString: array[TMethodKind] of shortstring = ( >>> 'procedure', 'function', 'constructor', 'destructor', >>> 'class procedure', 'class function' >>> {$IFNDEF VER2_4} >>> ,'class constructor', 'class destructor' >>> {$ENDIF} >>> {$IFDEF VER2_5} >>> ,'operator overload' >>> {$ENDIF} >>> ); >>> >>> but I can't see anything wrong... >>> >>> I searched the wiki and the bugtracker, but I found anything. On >>> google, on some pages is wrote that to solve this, I have to update my >>> FPC (my previous version of FPC is 2.5.1 of november of 2010). I >>> updated it but the error persists. >>> >>> Some Idea? >> You need a recent 2.5.1 or a released 2.4.2 or a recent 2.4.3. >> >> The 'operator overload' came some weeks ago to 2.5.1. > Maybe those IFDEF can be made smarter? > > {$IF high(TMethodKind) mkClassFunction} > ,'class constructor', 'class destructor' > {$IF high(TMethodKind) mkClassDestructor} > ,'operator overload' > {$ENDIF} > {$ENDIF} Applied. But that does not mean we support older 2.5.1 - we do not.

I reverted this change in r29013, because it broke building Lazarus with FPC 2.4.3 (tested with latest 2.4.3 revision to date).

Best regards, Maxim Ganetsky mailto:

Reply by email

Mattias Gaertner
to Maxim Ganetsky
Show quoted text 42 lines
14.01.2011 20:00, Mattias Gaertner ?????: > On Fri, 14 Jan 2011 16:47:25 +0000 > Martin wrote: > >> On 14/01/2011 16:24, Mattias Gaertner wrote: >>> const >>>> MethodKindAsString: array[TMethodKind] of shortstring = ( >>>> 'procedure', 'function', 'constructor', 'destructor', >>>> 'class procedure', 'class function' >>>> {$IFNDEF VER2_4} >>>> ,'class constructor', 'class destructor' >>>> {$ENDIF} >>>> {$IFDEF VER2_5} >>>> ,'operator overload' >>>> {$ENDIF} >>>> ); >>>> >>>> but I can't see anything wrong... >>>> >>>> I searched the wiki and the bugtracker, but I found anything. On >>>> google, on some pages is wrote that to solve this, I have to update my >>>> FPC (my previous version of FPC is 2.5.1 of november of 2010). I >>>> updated it but the error persists. >>>> >>>> Some Idea? >>> You need a recent 2.5.1 or a released 2.4.2 or a recent 2.4.3. >>> >>> The 'operator overload' came some weeks ago to 2.5.1. >> Maybe those IFDEF can be made smarter? >> >> {$IF high(TMethodKind) mkClassFunction} >> ,'class constructor', 'class destructor' >> {$IF high(TMethodKind) mkClassDestructor} >> ,'operator overload' >> {$ENDIF} >> {$ENDIF} > > Applied. > But that does not mean we support older 2.5.1 - we do not. I reverted this change in r29013, because it broke building Lazarus with FPC 2.4.3 (tested with latest 2.4.3 revision to date).

I applied it wrong. Sorry.

Mattias

Reply by email

Unknown author
to Mattias Gaertner

And the fpcbuild.zip snapshot, it will be updated? I downloaded it thinking that is the most recently file, but it's outdated. Or maybe put on the development page the date of the snapshot to alert people as me :)

Regards,

Fabio

2011/1/14 Mattias Gaertner :

Show quoted text 57 lines
On Sat, 15 Jan 2011 01:01:07 +0300 Maxim Ganetsky wrote: > 14.01.2011 20:00, Mattias Gaertner ?????: > > On Fri, 14 Jan 2011 16:47:25 +0000 > > Martin ?wrote: > > > >> On 14/01/2011 16:24, Mattias Gaertner wrote: > >>> const > >>>> ? ? MethodKindAsString: array[TMethodKind] of shortstring = ( > >>>> ? ? ? ? ? 'procedure', 'function', 'constructor', 'destructor', > >>>> ? ? ? ? ? 'class procedure', 'class function' > >>>> ? ? ? ? ? {$IFNDEF VER2_4} > >>>> ? ? ? ? ? ,'class constructor', 'class destructor' > >>>> ? ? ? ? ? {$ENDIF} > >>>> ? ? ? ? ? {$IFDEF VER2_5} > >>>> ? ? ? ? ? ,'operator overload' > >>>> ? ? ? ? ? {$ENDIF} > >>>> ? ? ? ? ); > >>>> > >>>> but I can't see anything wrong... > >>>> > >>>> I searched the wiki and the bugtracker, but I found anything. On > >>>> google, on some pages is wrote that to solve this, I have to update my > >>>> FPC (my previous version of FPC is 2.5.1 of november of 2010). I > >>>> updated it but the error persists. > >>>> > >>>> Some Idea? > >>> You need a recent 2.5.1 or a released 2.4.2 or a recent 2.4.3. > >>> > >>> The 'operator overload' came some weeks ago to 2.5.1. > >> Maybe those IFDEF can be made smarter? > >> > >> {$IF high(TMethodKind) ? mkClassFunction} > >> ? ? ? ,'class constructor', 'class destructor' > >> ? ? ?{$IF high(TMethodKind) ? mkClassDestructor} > >> ? ? ?,'operator overload' > >> ? ? ?{$ENDIF} > >> ? ?{$ENDIF} > > > > Applied. > > But that does not mean we support older 2.5.1 - we do not. > > I reverted this change in r29013, because it broke building Lazarus with > FPC 2.4.3 (tested with latest 2.4.3 revision to date). I applied it wrong. Sorry. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email