Sign in Join

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

Mailing lists / lazarus / 2008-11

PPC: SynEditFoldedView giving "parameter syntax error"

11 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

EarMaster - Bent Olsen

Hi all,

I have updated Lazarus to latest revision (17246) on Win32 and Mac i386/PPC, and downloaded latest FPC 2.2.2 (20081106 on Win32, 20081104 on Mac i386/PPC).

Lazarus are build nicely and with no errors on Win32 and Mac i386, but on PPC it is throwing:

[...]
Assembling syneditfoldedview
Syneditfoldedview.pp:3191:Parameter syntax error (parameter 2) Syneditfoldedview.pp:3202:Parameter syntax error (parameter 2) [...]/lazarus/components/synedit/syneditfoldedview.pp(81,75) Error: Error while assembling exitcode 1
[...]/lazarus/components/synedit/syneditfoldedview.pp(81,75) Fatal: There were 2 errors compiling module, stopping

Except for the compiler path, the environment settings, versions, and installations on Mac i386 and PPC are identical, so I have no clue as to why SynEdit will not compile.

These are on Mac OS X version 10.4.11.

Any clue as to what I might have missed out?

Thanks, and best regards,
Normann

Reply by email

Brad Campbell
to EarMaster - Bent Olsen
EarMaster - Bent Olsen wrote 27 lines
Hi all, I have updated Lazarus to latest revision (17246) on Win32 and Mac i386/PPC, and downloaded latest FPC 2.2.2 (20081106 on Win32, 20081104 on Mac i386/PPC). Lazarus are build nicely and with no errors on Win32 and Mac i386, but on PPC it is throwing: [...] Assembling syneditfoldedview Syneditfoldedview.pp:3191:Parameter syntax error (parameter 2) Syneditfoldedview.pp:3202:Parameter syntax error (parameter 2) [...]/lazarus/components/synedit/syneditfoldedview.pp(81,75) Error: Error while assembling exitcode 1 [...]/lazarus/components/synedit/syneditfoldedview.pp(81,75) Fatal: There were 2 errors compiling module, stopping Except for the compiler path, the environment settings, versions, and installations on Mac i386 and PPC are identical, so I have no clue as to why SynEdit will not compile. These are on Mac OS X version 10.4.11. Any clue as to what I might have missed out?

Uncomment the {$INLINE OFF} in /lazarus/components/synedit/syneditfoldedview.pp There is a bug on powerpc at the moment. That will work around it.

Dolphins are so intelligent that within a few weeks they can train Americans to stand at the edge of the pool and throw them fish.

Reply by email

Martin Friebe
to EarMaster - Bent Olsen: I have updated Lazarus to latest revision (17246) on Win32 and Mac i386/PPC, and…

As a temporary fix, enable the {$INLINE OFF} on top off the file, I will look into this later.

Is this error with the fpc build in assembler? (or is fpc always using an external assembler on power pc?)

I know this error may happen when cross-compiling with an external assembler. I am not sure if it is an fpc issue, or an issue with the assembler?

Regards
Martin

EarMaster - Bent Olsen wrote 36 lines
Hi all, I have updated Lazarus to latest revision (17246) on Win32 and Mac i386/PPC, and downloaded latest FPC 2.2.2 (20081106 on Win32, 20081104 on Mac i386/PPC). Lazarus are build nicely and with no errors on Win32 and Mac i386, but on PPC it is throwing: [...] Assembling syneditfoldedview Syneditfoldedview.pp:3191:Parameter syntax error (parameter 2) Syneditfoldedview.pp:3202:Parameter syntax error (parameter 2) [...]/lazarus/components/synedit/syneditfoldedview.pp(81,75) Error: Error while assembling exitcode 1 [...]/lazarus/components/synedit/syneditfoldedview.pp(81,75) Fatal: There were 2 errors compiling module, stopping Except for the compiler path, the environment settings, versions, and installations on Mac i386 and PPC are identical, so I have no clue as to why SynEdit will not compile. These are on Mac OS X version 10.4.11. Any clue as to what I might have missed out? Thanks, and best regards, Normann _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Martin Friebe
to Brad Campbell: Uncomment the {$INLINE OFF} in /lazarus/components/synedit/syneditfoldedview.pp There is…
Brad Campbell wrote 9 lines
EarMaster - Bent Olsen wrote: > Hi all, > > I have updated Lazarus to latest revision (17246) on Win32 and Mac i386/PPC, > and downloaded latest FPC 2.2.2 (20081106 on Win32, 20081104 on Mac > i386/PPC) Uncomment the {$INLINE OFF} in /lazarus/components/synedit/syneditfoldedview.pp There is a bug on powerpc at the moment. That will work around it

I am trying to find the right IFDEF, to make sure it compiles for powerpc. I believe it would be

{$IFDEF CPUM68K} {$INLINE OFF} {$ENDIF}

Brad, could you see, if that works for you?

Reply by email

Brad Campbell
to Henry Vermaak: 2008/11/6 Martin Friebe : see http://www.freepascal.org/docs-html/prog/progap7.html for…
Henry Vermaak wrote 13 lines
2008/11/6 Martin Friebe : > I am trying to find the right IFDEF, to make sure it compiles for powerpc. > I believe it would be > > {$IFDEF CPUM68K} {$INLINE OFF} {$ENDIF} > > Brad, could you see, if that works for you? see http://www.freepascal.org/docs-html/prog/progap7.html for list of pre-defines. should that not be {$ifdef cpupowerpc} ?

Absolutely right.
Here is the patch I'm using.

Brad

Dolphins are so intelligent that within a few weeks they can train Americans to stand at the edge of the pool and throw them fish. -------------- next part -------------- A non-text attachment was scrubbed... Name: laz-synfold-build.patch Type: text/x-diff Size: 324 bytes Desc: not available Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081106/974aeadd/attachment.bin

Reply by email

Martin Friebe
to Henry Vermaak: 2008/11/6 Martin Friebe : see http://www.freepascal.org/docs-html/prog/progap7.html for…
Henry Vermaak wrote 12 lines
2008/11/6 Martin Friebe : > I am trying to find the right IFDEF, to make sure it compiles for powerpc. > I believe it would be > > {$IFDEF CPUM68K} {$INLINE OFF} {$ENDIF} > see http://www.freepascal.org/docs-html/prog/progap7.html for list of pre-defines. should that not be {$ifdef cpupowerpc} ?

Indeed it should. Thanks for the link.

Brad, can you try, please?

Reply by email

Vincent Snijders
to Brad Campbell: Absolutely right. Here is the patch I'm using. Brad Dolphins are so intelligent that…
Brad Campbell wrote 19 lines
Henry Vermaak wrote: > 2008/11/6 Martin Friebe : >> I am trying to find the right IFDEF, to make sure it compiles for >> powerpc. >> I believe it would be >> >> {$IFDEF CPUM68K} {$INLINE OFF} {$ENDIF} >> >> Brad, could you see, if that works for you? > > see http://www.freepascal.org/docs-html/prog/progap7.html for list of > pre-defines. > > should that not be {$ifdef cpupowerpc} ? > Absolutely right. Here is the patch I'm using.

If it is going to be committed, please add the bug number in the comments, so we know which fpc bug it was, that needs to be fixed before we can remove that workaround.

Vincent

Reply by email

Martin Friebe
to Vincent Snijders: If it is going to be committed, please add the bug number in the comments, so we know…
Vincent Snijders wrote 23 lines
Brad Campbell schreef: > Henry Vermaak wrote: > >> 2008/11/6 Martin Friebe : >> >>> I am trying to find the right IFDEF, to make sure it compiles for >>> powerpc. >>> I believe it would be >>> >>> {$IFDEF CPUM68K} {$INLINE OFF} {$ENDIF} >>> >>> Brad, could you see, if that works for you? >>> > Absolutely right. > Here is the patch I'm using. > > If it is going to be committed, please add the bug number in the comments, so we know which fpc bug it was, that needs to be fixed before we can remove that workaround.

Will do.

It would also be interesting to know which Versions of FPC are affected. How far back should lazarus support?

One FPC fixed it, there may be a need for some {$IFDEF VER2_* } ?

Martin

Reply by email