Sign in Join

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

Mailing lists / fpc-devel / 2026-01

Unit libpcre2_16 not found

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Adriaan van Os

Trying to build fpc (git) trunk on macOS 14 for SUB_TARGET=unicodertl

[M2:~/fpc-svn/source/packages] administrator% make all FPC=/usr/local/lib/fpc/3.3.1/ppca64 SUB_TARGET=unicodertl OPT=-dUSEWIDESTRING

which works for the rtl but fails for packages as follows

Compiling ./vcl-compat/src/system.diagnostics.pp
...
Compiling ./vcl-compat/src/system.regularexpressions.pp Compiling ./vcl-compat/src/system.regularexpressionscore.pp system.regularexpressionscore.pp(57,7) Fatal: Can't find unit libpcre2_16 used by System.RegularExpressionsCore
Fatal: Compilation aborted

The installer encountered the following error:
Compilation of "units/aarch64-darwin-unicodertl/BuildUnit_vcl_compat.pp" failed $0000000104D6C76C
$0000000104D772A0
$0000000104D762C4
$0000000104D775CC
$0000000104D7A908
$0000000104D6B01C
$0000000104D6B760
$0000000104CB188C
$0000000104CD9BEC
$0000000104C30780
$0000000104CB1838
$0000000188937154
make: *** [all] Error 1

Any clues ?

Regards,

Adriaan van Os

Reply by email

Michael Van Canneyt
to Adriaan van Os
Adriaan van Os wrote 34 lines
Trying to build fpc (git) trunk on macOS 14 for SUB_TARGET=unicodertl [M2:~/fpc-svn/source/packages] administrator% make all FPC=/usr/local/lib/fpc/3.3.1/ppca64 SUB_TARGET=unicodertl OPT=-dUSEWIDESTRING which works for the rtl but fails for packages as follows Compiling ./vcl-compat/src/system.diagnostics.pp ... Compiling ./vcl-compat/src/system.regularexpressions.pp Compiling ./vcl-compat/src/system.regularexpressionscore.pp system.regularexpressionscore.pp(57,7) Fatal: Can't find unit libpcre2_16 used by System.RegularExpressionsCore Fatal: Compilation aborted The installer encountered the following error: Compilation of "units/aarch64-darwin-unicodertl/BuildUnit_vcl_compat.pp" failed $0000000104D6C76C $0000000104D772A0 $0000000104D762C4 $0000000104D775CC $0000000104D7A908 $0000000104D6B01C $0000000104D6B760 $0000000104CB188C $0000000104CD9BEC $0000000104C30780 $0000000104CB1838 $0000000188937154 make: *** [all] Error 1 Any clues ?

Yes, there is no libpcre2_16 on mac. On mac, libpcre2_8 must be used. I never got around to correcting the sources for unicodertl.

Please report a bug.

Michael.

Reply by email

Adriaan van Os
to Michael Van Canneyt: Yes, there is no libpcre2_16 on mac. On mac, libpcre2_8 must be used. I never got around…
Michael Van Canneyt wrote
> Any clues ? Yes, there is no libpcre2_16 on mac. On mac, libpcre2_8 must be used. I never got around to correcting the sources for unicodertl.

Can I help ? What needs to be done ? Undefine USEWIDESTRING if DARWIN is defined in packages/vcl-compat/src/system.regularexpressionscore.pp ? And possibly in other places in the code ?

Regards,

Adriaan van Os

Reply by email

Michael Van Canneyt
to Adriaan van Os
Adriaan van Os wrote 10 lines
Michael Van Canneyt wrote: >> Any clues ? > > Yes, there is no libpcre2_16 on mac. On mac, libpcre2_8 must be used. I > never got around to correcting the sources for unicodertl. Can I help ? What needs to be done ? Undefine USEWIDESTRING if DARWIN is defined in packages/vcl-compat/src/system.regularexpressionscore.pp ? And possibly in other places in the code ?

That, plus you'll need to convert the UTF16 strings to UTF8 and vice versa when calling the libpcre functions.

Michael.

Reply by email