[fpc-devel] unicodertl fails to compile on darwin
Michael Van Canneyt
michael at freepascal.org
Sun Sep 8 11:02:41 CEST 2024
On Sun, 8 Sep 2024, Mattias Gaertner via fpc-devel wrote:
> Hi,
>
> Following the instructions on the wiki compiling the subtarget unicodertl
> fails.
>
> Wiki:
>
> https://wiki.freepascal.org/FPC_Unicode_RTL#Compiling_the_namespaced_unicode_RTL
>
> Compiling rtl works, but compiling packages fails:
>
> make -C rtl clean all SUB_TARGET=unicodertl FPC_DOTTEDUNITS=1
> PP=/path/to/fpc/3.3.1/ppcx64
> make -C packages clean all SUB_TARGET=unicodertl FPC_DOTTEDUNITS=1
> PP=/path/to/fpc/3.3.1/ppcx64
>
> with:
>
> system.regularexpressionscore.pp(40,96) Fatal: Can't find unit Api.PCRE2_16
> used by System.RegularExpressionsCore
On darwin, only Api.Api.PCRE2_8 is available.
That is why I had to introduce an extra define specially for this case :/
I'm surprised, I tested compilation for darwin.
> Fatal: Compilation aborted
>
> Same with passing
>
> OPT=-dUSEWIDESTRING
>
> Btw, is this -dUseWideString needed or not?
>
> This is on macos darwin.
On darwin, it must absolutely not be specified. On linux/windows, it must be.
Suggestions for improvement are welcome.
Michael.
More information about the fpc-devel
mailing list