Sign in Join

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

Mailing lists / fpc-devel / 2026-03

Illegal character

2 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

Running into another problem, building the 3.3.1 unicode rtl on macOS 14.

cd rtl
make all FPC=/usr/local/lib/fpc/3.3.1/ppca64 CPU_TARGET=aarch64 OPT="-aln -dUSEWIDESTRING" SUB_TARGET=unicodertl

../../rtl/units/aarch64-darwin-unicodertl/system.s:67340:10: error: unexpected token in argument list bl _stat
^
system.pp(412) Error: Error while assembling exitcode 1 system.pp(412) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted
make[1]: *** [system.ppu] Error 1
make: *** [darwin_all] Error 2

When I look with a hex , there is a $01 character between the "_stat" and the $0A newline. I checked that the $01 character is not in the source code in any place with an

external name 'stat'.

So, this reman a mystery (but does block building the Unicode rtl).

Regards,

Adriaan van Os

Reply by email

Michael Van Canneyt
to Adriaan van Os
Adriaan van Os wrote 25 lines
Running into another problem, building the 3.3.1 unicode rtl on macOS 14. cd rtl make all FPC=/usr/local/lib/fpc/3.3.1/ppca64 CPU_TARGET=aarch64 OPT="-aln -dUSEWIDESTRING" SUB_TARGET=unicodertl ../../rtl/units/aarch64-darwin-unicodertl/system.s:67340:10: error: unexpected token in argument list bl _stat ^ system.pp(412) Error: Error while assembling exitcode 1 system.pp(412) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted make[1]: *** [system.ppu] Error 1 make: *** [darwin_all] Error 2 When I look with a hex , there is a $01 character between the "_stat" and the $0A newline. I checked that the $01 character is not in the source code in any place with an external name 'stat'. So, this reman a mystery (but does block building the Unicode rtl).

The main branch compiler is currently somewhat unstable. We suspect memory corruption, so it may be that you're experiencing a side-effect of that...

Michael.

Reply by email