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

Martin Frb lazarus at mfriebe.de
Thu Dec 7 14:02:36 CET 2023


On 07/12/2023 13:52, Martin Frb via fpc-devel wrote:
> On 07/12/2023 12:19, Jonas Maebe via fpc-devel wrote:
>>
>>
>> On 2023-12-07 01:09, Martin Frb via fpc-devel wrote:
>>> 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
>>
>> The -Clv parameter is missing here for some reason, so the compiler 
>> is generating code for LLVM 7.0 rather than 16.0.
>
> It seems to happen during "make install". Strange, why does it compile 
> during installation?

Starting compiler is 3.2.2

I should mention that the compiler is not installed to /usr/.... , nor 
anywhere in a global available place. (As I have several versions on 
that machine, I made sure non of them has anything in a place where it 
could be found by others.  (that includes no /etc/fpc.cfg, nor fpc.cfg 
in my home dir. / each fpc has an fpc.cfg inside its install dir)

But before the make is called the PATH is set to include the 3.2.2 fpc.

I use identical setup on several Linux boxes, including the one that 
successfully build with clang 11


More information about the fpc-devel mailing list