[fpc-devel] Recent changes break distclean for utils

Michael Van Canneyt michael at freepascal.org
Fri Aug 18 15:29:40 CEST 2023



On Fri, 18 Aug 2023, Mattias Gaertner via fpc-devel wrote:

>
>
> On 18.08.23 09:36, Michael Van Canneyt via fpc-devel wrote:
>> [...]
>
> After doing "make disctlean" I still have many ppu files left:
>
> ./compiler/x86_64/units/x86_64-linux/cutils.ppu
> ...
> ./compiler/x86_64/lazbuild/nobj.ppu
> ...
> ./rtl/units/x86_64-linux/cp8859_1.ppu
> ...
> ./utils/pas2js/lib/x86_64-linux/pas2jsjsresources.ppu
>
> That's why I get on "make all OPT='-gw2'":
>
> make[5]: Entering directory '/home/mattias/pascal/fpc/3.3.1/compiler'
> /usr/bin/ppcx64 -Ur -Xs -O2 -n -Fux86_64 -Fusystems 
> -Fu/home/mattias/pascal/fpc/3.3.1/rtl/units/x86_64-linux -Fix86_64 
> -FEx86_64/bin/x86_64-linux -FUx86_64/units/x86_64-linux -Cg 
> -Fl/usr/lib/gcc/x86_64-linux-gnu/11 -dRELEASE -gw2 -dx86_64 -dGDB -Fux86 
> -Fix86 -o/home/mattias/pascal/fpc/3.3.1/compiler/ppc1 pp.pas
> PPU Loading /home/mattias/pascal/fpc/3.3.1/rtl/units/x86_64-linux/system.ppu
> PPU Invalid Version 208
> Fatal: Can't find unit system used by pp

Where do you do this "make all" ?

1. The error is that it cannot find the system unit. 
To my knowledge, that cannot be caused by stray leftover units.

2. At the top level, You must call "make all " with a release compiler.
    I do not see you specifying this option.

Michael.


More information about the fpc-devel mailing list