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

Martin Frb lazarus at mfriebe.de
Sat Dec 9 17:03:42 CET 2023


On 09/12/2023 10:50, Jonas Maebe via fpc-devel wrote:
> On 07/12/2023 13:52, Martin Frb via fpc-devel wrote:
>> I also looked for msg2inc. And msg2inc was compiled before
>
> Maybe check the timestamps of compiler/msg*.inc, 
> compiler/utils/msg2inc.pp and compiler/msg/errore.msg. Perhaps some of 
> those have timestamps far in the future?

The seem ok to me. Either checkout date, or build date.

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...), but then it uses  source/compiler/ppc1

make[8]: '/home/m/fpc/rel_3.3.1/source/rtl/units/x86_64-linux' is up to 
date.
make[8]: Leaving directory '/home/m/fpc/rel_3.3.1/source/rtl/linux'
as --64 -o /home/m/fpc/rel_3.3.1/source/rtl/units/x86_64-linux/abitag.o 
x86_64/abitag.as
/home/m/fpc/rel_3.3.1/source/compiler/ppc1 -Ur -Ur -Xs -O2 -n -Fi../inc 
-Fi../x86_64 -Fi../unix -Fix86_64 -FE. 
-FU/home/m/fpc/rel_3.3.1/source/rtl/units/x86_64-linux -Cg 
-Fl/usr/lib/gcc/x86_64-redhat-linux/13 -O-1 -gw3 -dx86_64 -dRELEASE -Us 
-Sg system.pp
/home/m/fpc/rel_3.3.1/source/rtl/units/x86_64-linux/system.ll:9990:76: 
error: expected '('
define void @"\01SYSTEM_$$_STRPAS$PANSICHAR$$SHORTSTRING"([256 x i8]* 
sret noalias nocapture %p.$result, i8* %p.p) inlinehint nobuiltin 
"null-pointer-is-valid"="true" strictfp !dbg !1643 {
^
1 error generated.

--------------
the files with date, after "make all" before "make install" got started:

[m at fedora fpc]$ find rel_3.3.1/source/ -name '*msg2inc*' | xargs ls -la
-rwxr-xr-x. 1 m m 341048 Dec  9 12:12 
rel_3.3.1/source/compiler/utils/msg2inc
-rw-r--r--. 1 m m  20180 Dec  6 23:07 
rel_3.3.1/source/compiler/utils/msg2inc.pp
-rw-r--r--. 1 m m  63416 Dec  9 12:12 
rel_3.3.1/source/compiler/utils/units/x86_64-linux/msg2inc.o

[m at fedora fpc]$ ls -la rel_3.3.1/source/compiler/msg*inc*
-rw-r--r--. 1 m m  47096 Dec  6 23:07 rel_3.3.1/source/compiler/msgidx.inc
-rw-r--r--. 1 m m 112167 Dec  6 23:07 rel_3.3.1/source/compiler/msgtxt.inc

[m at fedora fpc]$ ls -la rel_3.3.1/source/compiler/msg/*
-rw-r--r--. 1 m m 139307 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errorct.msg
-rw-r--r--. 1 m m 244571 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errorda.msg
-rw-r--r--. 1 m m 304534 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errord.msg
-rw-r--r--. 1 m m 305647 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errordu.msg
-rw-r--r--. 1 m m 291024 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errore.msg
-rw-r--r--. 1 m m 246429 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errores.msg
-rw-r--r--. 1 m m 250649 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errorfi.msg
-rw-r--r--. 1 m m 105908 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errorf.msg
-rw-r--r--. 1 m m 151642 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errorhe.msg
-rw-r--r--. 1 m m 258978 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errorheu.msg
-rw-r--r--. 1 m m 248955 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errorid.msg
-rw-r--r--. 1 m m 188895 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/erroriu.msg
-rw-r--r--. 1 m m 241199 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errorn.msg
-rw-r--r--. 1 m m 136463 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errorpli.msg
-rw-r--r--. 1 m m 136451 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errorpl.msg
-rw-r--r--. 1 m m 220070 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errorpt.msg
-rw-r--r--. 1 m m 255864 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errorptu.msg
-rw-r--r--. 1 m m 177521 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errorr.msg
-rw-r--r--. 1 m m 347094 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errorru.msg
-rw-r--r--. 1 m m 246714 Dec  6 23:07 
rel_3.3.1/source/compiler/msg/errorues.msg



More information about the fpc-devel mailing list