[fpc-devel] Illegal character
Michael Van Canneyt
michael at freepascal.org
Thu Mar 5 15:49:43 CET 2026
On Thu, 5 Mar 2026, Adriaan van Os via fpc-devel wrote:
> 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 editor at system.s, 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.
More information about the fpc-devel
mailing list