Re: [fpc-pascal] Error format question

2020-04-19 Thread Sven Barth via fpc-pascal

Am 12.04.2020 um 09:40 schrieb Sven Barth:
Ryan Joseph via fpc-pascal > schrieb am So., 12. Apr. 
2020, 08:53:




> On Apr 12, 2020, at 11:16 AM, Ryan Joseph mailto:generic...@gmail.com>> wrote:
>
> I just did svn up and got r44689, rebuilt the compiler but I
still get the same error format.  Was it supposed to be changed?

ok, I think we're confused here. Just actually tested gcc and got
this format:

/Users/ryanjoseph/Developer/Projects/C++/Tests/test:10:6: error:
      expected expression


This means that FPC 3.0.4 is giving the wrong format and I guess
we're stuck with that like it is. That means trunk is and was fine
like it is.


Correct. That's what Florian had fixed. We'll just have to make sure 
that revision is merged to 3.2 as well...


Okay, I merged that change, so the final 3.2 will use the fixed error 
output as well.


Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Error format question

2020-04-12 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal  schrieb am
So., 12. Apr. 2020, 08:53:

>
>
> > On Apr 12, 2020, at 11:16 AM, Ryan Joseph  wrote:
> >
> > I just did svn up and got r44689, rebuilt the compiler but I still get
> the same error format.  Was it supposed to be changed?
>
> ok, I think we're confused here. Just actually tested gcc and got this
> format:
>
> /Users/ryanjoseph/Developer/Projects/C++/Tests/test:10:6: error:
>   expected expression
>
>
> This means that FPC 3.0.4 is giving the wrong format and I guess we're
> stuck with that like it is. That means trunk is and was fine like it is.
>

Correct. That's what Florian had fixed. We'll just have to make sure that
revision is merged to 3.2 as well...

Regards,
Sven

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


Re: [fpc-pascal] Error format question

2020-04-11 Thread Ryan Joseph via fpc-pascal


> On Apr 12, 2020, at 11:16 AM, Ryan Joseph  wrote:
> 
> I just did svn up and got r44689, rebuilt the compiler but I still get the 
> same error format.  Was it supposed to be changed?

ok, I think we're confused here. Just actually tested gcc and got this format:

/Users/ryanjoseph/Developer/Projects/C++/Tests/test:10:6: error: 
  expected expression


This means that FPC 3.0.4 is giving the wrong format and I guess we're stuck 
with that like it is. That means trunk is and was fine like it is.

Regards,
Ryan Joseph

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


Re: [fpc-pascal] Error format question

2020-04-11 Thread Ryan Joseph via fpc-pascal


> On Apr 11, 2020, at 9:50 PM, Ryan Joseph  wrote:
> 
> Thanks, I could swear this was a bug that was already fixed but I'll rebuild 
> the compiler tomorrow and see if it went away.

I just did svn up and got r44689, rebuilt the compiler but I still get the same 
error format.  Was it supposed to be changed?

Ryans-MacBook-Pro-2:fpc ryanjoseph$ /usr/local/lib/fpc/3.3.1/ppcx64 -vbr 
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas
Free Pascal Compiler version 3.3.1 [2020/04/12] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling /Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:6:1: error: 
Identifier not found "f"
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:7:4: error: 
There were 1 errors compiling module, stopping
error: Compilation aborted


Regards,
Ryan Joseph

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


Re: [fpc-pascal] Error format question

2020-04-11 Thread Ryan Joseph via fpc-pascal


> On Apr 11, 2020, at 8:12 PM, Florian Klämpfl  wrote:
> 
> I fixed this for trunk. You can very easily test and see what gcc outputs to 
> verify what's correct.

Thanks, I could swear this was a bug that was already fixed but I'll rebuild 
the compiler tomorrow and see if it went away.

Regards,
Ryan Joseph

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


Re: [fpc-pascal] Error format question

2020-04-11 Thread Florian Klämpfl

Am 11.04.20 um 08:11 schrieb Ryan Joseph via fpc-pascal:

Sorry to ask this yet again but I keep forgetting or remembering wrong. I 
thought this was a one time error that was fixed but I'm still getting 
different error formats with the trunk (as of today) vs 3.0.4.

Can anyone please confirm which it the correct format I should rely on?


Ryans-MacBook-Pro-2:~ ryanjoseph$ fpc -vbr 
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas
Free Pascal Compiler version 3.0.4 [2018/09/30] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling /Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:6: error: 1: Identifier 
not found "f"
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:7: error: 4: 
There were 1 errors compiling module, stopping
error: Compilation aborted
Ryans-MacBook-Pro-2:~ ryanjoseph$ /usr/local/lib/fpc/3.3.1/ppcx64 -vbr 
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas
Free Pascal Compiler version 3.3.1 [2020/04/11] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling /Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:6:1: error: Identifier 
not found "f"
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:7:4: error: 
There were 1 errors compiling module, stopping
error: Compilation aborted


I fixed this for trunk. You can very easily test and see what gcc 
outputs to verify what's correct.

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


Re: [fpc-pascal] Error format question

2020-04-11 Thread Sven Barth via fpc-pascal

Am 11.04.2020 um 08:11 schrieb Ryan Joseph via fpc-pascal:

Sorry to ask this yet again but I keep forgetting or remembering wrong. I 
thought this was a one time error that was fixed but I'm still getting 
different error formats with the trunk (as of today) vs 3.0.4.

Can anyone please confirm which it the correct format I should rely on?


Ryans-MacBook-Pro-2:~ ryanjoseph$ fpc -vbr 
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas
Free Pascal Compiler version 3.0.4 [2018/09/30] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling /Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:6: error: 1: Identifier 
not found "f"
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:7: error: 4: 
There were 1 errors compiling module, stopping
error: Compilation aborted
Ryans-MacBook-Pro-2:~ ryanjoseph$ /usr/local/lib/fpc/3.3.1/ppcx64 -vbr 
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas
Free Pascal Compiler version 3.3.1 [2020/04/11] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling /Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:6:1: error: Identifier 
not found "f"
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:7:4: error: 
There were 1 errors compiling module, stopping
error: Compilation aborted


Found the cause: 
https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=43769


As this is the error output when rhide/GCC compatible error output is 
given (-vr), it probably did not work correctly with tools that rely on 
the order before that change.


Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Error format question

2020-04-10 Thread Michael Van Canneyt



On Sat, 11 Apr 2020, Ryan Joseph via fpc-pascal wrote:





On Apr 11, 2020, at 1:17 PM, Michael Van Canneyt  wrote:

My guess is you have a config file lying around that causes this to look
different (-Fr option?), or you have a custom-made errore.msg file built-in.


Interesting, so I overrode the default format in the trunk somehow. I can't 
find any -Fr options but who knows what file I may have corrupted.


Can it be you changed the compiler itself ?



What's the best way to get back to the default format then? At some point I 
thought the format changed so I altered a bunch of my regex patterns   in 
various areas and it's causing me many headaches.


if -va does not give you a clue, try compiling with -n and specify all paths on 
the command-line, see where
that leads you. if you get the strange behaviour still, it means the compiler
itself was modified.

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


Re: [fpc-pascal] Error format question

2020-04-10 Thread Ryan Joseph via fpc-pascal


> On Apr 11, 2020, at 1:17 PM, Michael Van Canneyt  
> wrote:
> 
> My guess is you have a config file lying around that causes this to look
> different (-Fr option?), or you have a custom-made errore.msg file built-in.

Interesting, so I overrode the default format in the trunk somehow. I can't 
find any -Fr options but who knows what file I may have corrupted. 

What's the best way to get back to the default format then? At some point I 
thought the format changed so I altered a bunch of my regex patterns   in 
various areas and it's causing me many headaches.

Regards,
Ryan Joseph

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


Re: [fpc-pascal] Error format question

2020-04-10 Thread Michael Van Canneyt



On Sat, 11 Apr 2020, Ryan Joseph via fpc-pascal wrote:


Sorry to ask this yet again but I keep forgetting or remembering wrong. I 
thought this was a one time error that was fixed but I'm still getting 
different error formats with the trunk (as of today) vs 3.0.4.

Can anyone please confirm which it the correct format I should rely on?


Ryans-MacBook-Pro-2:~ ryanjoseph$ fpc -vbr /Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas 
Free Pascal Compiler version 3.0.4 [2018/09/30] for x86_64

Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling /Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:6: error: 1: Identifier 
not found "f"
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:7: error: 4: 
There were 1 errors compiling module, stopping
error: Compilation aborted
Ryans-MacBook-Pro-2:~ ryanjoseph$ /usr/local/lib/fpc/3.3.1/ppcx64 -vbr /Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas 
Free Pascal Compiler version 3.3.1 [2020/04/11] for x86_64

Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling /Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:6:1: error: Identifier 
not found "f"
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:7:4: error: 
There were 1 errors compiling module, stopping
error: Compilation aborted


This is what I get:

araminta: ~ >fpc -vbr ti.pp
/Users/michael/ti.pp:8: error: 6: Incompatible type for arg no. 1: Got "ShortInt", 
expected "{Open} Array Of SmallInt"
/Users/michael/ti.pp:9: error: 4: There were 1 errors compiling module, stopping
error: Compilation aborted
Error: /usr/local/bin/ppcx64 returned an error exitcode
araminta: ~ >ppcx64-3.0.4 -vbr ti.pp
/Users/michael/ti.pp:8: error: 6: Incompatible type for arg no. 1: Got "ShortInt", 
expected "{Open} Array Of SmallInt"
/Users/michael/ti.pp:9: error: 4: There were 1 errors compiling module, stopping
error: Compilation aborted

My guess is you have a config file lying around that causes this to look
different (-Fr option?), or you have a custom-made errore.msg file built-in.

Try -var to see why.

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


[fpc-pascal] Error format question

2020-04-10 Thread Ryan Joseph via fpc-pascal
Sorry to ask this yet again but I keep forgetting or remembering wrong. I 
thought this was a one time error that was fixed but I'm still getting 
different error formats with the trunk (as of today) vs 3.0.4.

Can anyone please confirm which it the correct format I should rely on?


Ryans-MacBook-Pro-2:~ ryanjoseph$ fpc -vbr 
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas 
Free Pascal Compiler version 3.0.4 [2018/09/30] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling /Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:6: error: 1: 
Identifier not found "f"
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:7: error: 4: 
There were 1 errors compiling module, stopping
error: Compilation aborted
Ryans-MacBook-Pro-2:~ ryanjoseph$ /usr/local/lib/fpc/3.3.1/ppcx64 -vbr 
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas 
Free Pascal Compiler version 3.3.1 [2020/04/11] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling /Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:6:1: error: 
Identifier not found "f"
/Users/ryanjoseph/Developer/Projects/FPC/Various/stratch_pad.pas:7:4: error: 
There were 1 errors compiling module, stopping
error: Compilation aborted



Regards,
Ryan Joseph

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