Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2024-09

unicodertl fails to compile on darwin

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

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 Fatal: Compilation aborted

Same with passing

OPT=-dUSEWIDESTRING

Btw, is this -dUseWideString needed or not?

This is on macos darwin.

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 20 lines
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.

Show quoted text 9 lines
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.

Reply by email