I was trying to build an fpc for clang 16 (same commands worked on a
diff machine for clang 11)
I changed the version in the make line:
make all OPT=" " OPTNEW=" -Clv16.0 " FPCMAKEOPT=" -Clv16.0 " LLVM=1
I also tried version 16.0.6
fpc 49cb7b256476409924c581145a760b863b9e755d
(I had tried earlier with an older fpc on that machine. I don't know if
the error was the same)
clang --version
clang version 16.0.6 (Fedora 16.0.6-3.fc38)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
But I am getting
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 -dx86_64 -dRELEASE -Us -Sg system.pp
/home/m/fpc/rel_3.3.1/source/rtl/units/x86_64-linux/system.ll:9713: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 {
^
1 error generated.
system.pp(747,1) Error: Error while assembling exitcode 1
system.pp(747,1) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
make[7]: *** [Makefile:2870: system.ppu] Error 1
make[7]: Leaving directory '/home/m/fpc/rel_3.3.1/source/rtl/linux'
make[6]: *** [Makefile:2367: linux_all] Error 2
make[6]: Leaving directory '/home/m/fpc/rel_3.3.1/source/rtl'
make[5]: *** [Makefile:5486: rtl] Error 2
make[5]: Leaving directory '/home/m/fpc/rel_3.3.1/source/compiler'
make[4]: *** [Makefile:5319: next] Error 2
make[4]: Leaving directory '/home/m/fpc/rel_3.3.1/source/compiler'
make[3]: *** [Makefile:5327: ppc2] Error 2
make[3]: Leaving directory '/home/m/fpc/rel_3.3.1/source/compiler'
make[2]: *** [Makefile:5337: cycle] Error 2
make[2]: Leaving directory '/home/m/fpc/rel_3.3.1/source/compiler'
make[1]: *** [Makefile:3256: compiler_cycle] Error 2
make[1]: Leaving directory '/home/m/fpc/rel_3.3.1/source'
make: *** [Makefile:3288: build-stamp.x86_64-linux] Error 2
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel