Show quoted text 20 lines
Actually, the patch is not sufficient to fix the issue. When building the 3.2.2 version on macOS 13 arm with the command line tools from Xcode 15 it breaks with:
… many, many ld warnings about pointer alignment similar to the next 3 ld: warning: pointer not aligned at _THREADVARLIST_$CHARSET+0xC from /opt/local/var/macports/build/_Users_michael_Developer_macports-ports_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/units/x86_64-darwin/charset.o ld: warning: pointer not aligned at _THREADVARLIST_$CHARSET+0x24 from /opt/local/var/macports/build/_Users_michael_Developer_macports-ports_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/units/x86_64-darwin/charset.o ld: warning: pointer not aligned at _THREADVARLIST_$FPWIDESTRING+0xC from /opt/local/var/macports/build/_Users_michael_Developer_macports-ports_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/units/x86_64-darwin/fpwidestring.o ld: pointer not 4-byte aligned at __DATA_CONST+0x9A6, fix alignment or disable chained fixups An error occurred while linking pp.pas(252,36) Error: Error while linking pp.pas(252,36) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
make[3]: *** [ppc] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_Users_michael_Developer_macports-ports_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/compiler' make[2]: *** [cycle] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_Users_michael_Developer_macports-ports_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/compiler' make[1]: *** [compiler_cycle] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_Users_michael_Developer_macports-ports_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc' make: *** [build-stamp.aarch64-darwin] Error 2
With the command line tools of Xcode 14 it runs through without any warning nor error. Would a patch from this commit (https://gitlab.com/freepascal.org/fpc/source/-/blob/82dd70e72f3ab33b1b8737f743e1cdd009d9c8a1/compiler/x86_64/cpupara.pas) help?
Michael.
