[fpc-devel] Unicode RTL for FPC

Michael Van Canneyt michael at freepascal.org
Fri Jan 13 11:36:55 CET 2023



On Fri, 13 Jan 2023, Tomas Hajny via fpc-devel wrote:

> On 2023-01-13 11:22, Mattias Gaertner via fpc-devel wrote:
>> On Sun, 8 Jan 2023 08:46:37 +0100 (CET)
>> Michael Van Canneyt via fpc-devel <fpc-devel at lists.freepascal.org>
>> wrote:
>> 
>>> [...]
>>> Should have been
>>> 
>>> make install SUB_TARGET=unicodertl PP=path/to/the/new/compiler
>> 
>> This does not install the new compiler, so I used the compiler/ppcx64
>> exe directly to compile a program.
>> 
>> I see in the -va output:
>> [0.008] Hint: Start of reading config file /etc/fpc-unicodertl.cfg
>> [0.008] Handling option "-dUNICODERTL"
>> [0.008] Interpreting option "-dUNICODERTL"
>> [0.008] Macro defined: UNICODERTL
>> [0.008] Handling option "-Municodestrings"
>> [0.008] Interpreting option "-Municodestrings"
>> [0.008] Macro defined: FPC_UNICODESTRINGS
>> [0.008] Macro defined: UNICODE
>> [0.008] Hint: End of reading config file /etc/fpc-unicodertl.cfg
>> 
>> But then it uses the wrong unit paths:
>> [0.012] Using unit path: /usr/lib/fpc/3.3.1/units/x86_64-linux/httpd22/
>> 
>> It should be:
>> 
>> [0.012] Using unit path:
>> /usr/lib/fpc/3.3.1/units/x86_64-linux-unicodertl/rtl/
>> 
>> My /etc/fpc.cfg contains:
>> 
>> # searchpath for units and other system dependent things
>> -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
>> -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
>> -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
>
> What does your /etc/fpc-unicodertl.cfg contain? The correct paths should be 
> there...

Nono, there was an error in calculating $fpctarget. It is fixed.

Michael.


More information about the fpc-devel mailing list