Sign in Join

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

Mailing lists / fpc-pascal / 2020-04

Error format question

11 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Ryan Joseph

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

Michael Van Canneyt
to Ryan Joseph
Ryan Joseph wrote 21 lines
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.

Ryan Joseph
to Michael Van Canneyt
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

Michael Van Canneyt
to Ryan Joseph
Ryan Joseph wrote 8 lines
> 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.

Sven Barth
to Ryan Joseph: Sorry to ask this yet again but I keep forgetting or remembering wrong. I thought this…
Ryan Joseph wrote 21 lines
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

Florian Klämpfl
to Ryan Joseph: Sorry to ask this yet again but I keep forgetting or remembering wrong. I thought this…
Ryan Joseph wrote 21 lines
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.

Ryan Joseph
to Florian Klämpfl
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

Ryan Joseph
to Ryan Joseph
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

Ryan Joseph
to Ryan Joseph
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

Sven Barth
to Ryan Joseph

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

Show quoted text 17 lines
> 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

Sven Barth
to Sven Barth
Sven Barth wrote 26 lines
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...

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

Regards,
Sven