[fpc-pascal] Error format changes between compilers

Florian Klämpfl florian at freepascal.org
Mon Dec 30 18:24:04 CET 2019


Am 30.12.2019 um 17:08 schrieb Ryan Joseph via fpc-pascal:
> 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.

> 
> 
> 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  -  fpc-pascal at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> 



More information about the fpc-pascal mailing list