Sign in Join

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

Mailing lists / fpc-pascal / 2019-12

Error format changes between compilers

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Ryan Joseph

Notice how the format of the error changes between ppcrossx64 (built for iPhone simulator) and ppcx64. Is this a bug? It broke my regex for capturing errors and that's why I'm asking btw.

Ryans-MacBook-Pro-2:fpc-git ryanjoseph$ /usr/local/lib/fpc/3.3.1/ppcrossx64 -Tiphonesim -vbr /Users/ryanjoseph/Developer/Projects/FPC/CocoaTouchExamples/test.pas Free Pascal Compiler version 3.3.1 [2019/12/28] for x86_64 Copyright (c) 1993-2019 by Florian Klaempfl and others Target OS: Darwin/iPhoneSim for x86_64
Compiling /Users/ryanjoseph/Developer/Projects/FPC/CocoaTouchExamples/test.pas /Users/ryanjoseph/Developer/Projects/FPC/CocoaTouchExamples/test.pas:4:2: error: Syntax error, "BEGIN" expected but "identifier F" found error: Compilation aborted

Ryans-MacBook-Pro-2:output ryanjoseph$ /usr/local/lib/fpc/3.3.1/ppcx64 -vbr /Users/ryanjoseph/Developer/Projects/FPC/CocoaTouchExamples/test.pas Free Pascal Compiler version 3.3.1 [2019/11/26] for x86_64 Copyright (c) 1993-2019 by Florian Klaempfl and others Target OS: Darwin for x86_64
Compiling /Users/ryanjoseph/Developer/Projects/FPC/CocoaTouchExamples/test.pas /Users/ryanjoseph/Developer/Projects/FPC/CocoaTouchExamples/test.pas:4: error: 2: Syntax error, "BEGIN" expected but "identifier F" found error: Compilation aborted
Ryans-MacBook-Pro-2:output ryanjoseph$

Regards,
Ryan Joseph

Reply by email

Florian Klämpfl
to Ryan Joseph
Ryan Joseph wrote
Notice how the format of the error changes between ppcrossx64 (built for iPhone simulator) and ppcx64. Is this a bug? It broke my regex for capturing errors and that's why I'm asking btw.

The old syntax was wrong, some days ago I fixed it, see also the different dates of your compilers.

Show quoted text 27 lines
Ryans-MacBook-Pro-2:fpc-git ryanjoseph$ /usr/local/lib/fpc/3.3.1/ppcrossx64 -Tiphonesim -vbr /Users/ryanjoseph/Developer/Projects/FPC/CocoaTouchExamples/test.pas Free Pascal Compiler version 3.3.1 [2019/12/28] for x86_64 Copyright (c) 1993-2019 by Florian Klaempfl and others Target OS: Darwin/iPhoneSim for x86_64 Compiling /Users/ryanjoseph/Developer/Projects/FPC/CocoaTouchExamples/test.pas /Users/ryanjoseph/Developer/Projects/FPC/CocoaTouchExamples/test.pas:4:2: error: Syntax error, "BEGIN" expected but "identifier F" found error: Compilation aborted Ryans-MacBook-Pro-2:output ryanjoseph$ /usr/local/lib/fpc/3.3.1/ppcx64 -vbr /Users/ryanjoseph/Developer/Projects/FPC/CocoaTouchExamples/test.pas Free Pascal Compiler version 3.3.1 [2019/11/26] for x86_64 Copyright (c) 1993-2019 by Florian Klaempfl and others Target OS: Darwin for x86_64 Compiling /Users/ryanjoseph/Developer/Projects/FPC/CocoaTouchExamples/test.pas /Users/ryanjoseph/Developer/Projects/FPC/CocoaTouchExamples/test.pas:4: error: 2: Syntax error, "BEGIN" expected but "identifier F" found error: Compilation aborted Ryans-MacBook-Pro-2:output ryanjoseph$ Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply by email