[fpc-devel] Getting error building fpc for clang 16

Jonas Maebe jonas at freepascal.org
Sun Dec 10 11:23:17 CET 2023


On 09/12/2023 17:03, Martin Frb via fpc-devel wrote:
> Anyway, I changed the make
>       make install INSTALL_PREFIX=/home/m/fpc/$INSTPATH/gw3  OPT=" 
> -Clv16.0 " LLVM=1
> 
> Then next it fails, with the same error on
>      make clean
> 
> Yes, it tries to compile a file while doing "make clean"
> 
> Interestingly, "make clean" refuses to start, unless it has a compiler 
> in path (ok, even if it should not need it, as it should not compile 
> anything...)

As Tomas mentioned, this is required to know which target to clean.

You can try specifying FPC=$PWD/compiler/ppcx64 when doing the "make 
install" to ensure it has the same default target as the one that was 
just built.

If all else fails, you can try remake to see why it is recompiling 
things: https://github.com/rocky/remake/


Jonas


More information about the fpc-devel mailing list