after updating the Xcode command line tools from 14 to 15, I get linker errors in addition to the warnings, which prevent building fpc with macports. I have tried various changes to build options or even patches to source files but without success. Passing -k-w to the linker suppresses the annoying warning and makes life a bit easier. As to expect, -k-w does not resolve the error ;-)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_fpc/fpc/work/ppcx64 -Ur -Xs -O2 -n -Fux86_64 -Fusystems -Fu/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/units/x86_64-darwin -Fix86_64 -FE. -FUx86_64/units/x86_64-darwin -dRELEASE -ap -v0 -XR/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -dx86_64 -dGDB -dBROWSERLOG -Fux86 pp.pas
ld: warning: -multiply_defined is obsolete
-macosx_version_min has been renamed to -macos_version_min
ld: warning: pointer not aligned at _RTTI_$SYSTEM_$$_openchararray+0x16 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_fpc/fpc/work/fpcbuild-3.2.2/fpcsrc/rtl/units/x86_64-darwin/system.o
.
... skipping many alike warnings
.
ld: warning: pointer not aligned at _THREADVARLIST_$FPWIDESTRING+0xC from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_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
This is building ppca64 on an M1 Macbook with macOS 13, Xcode command line tools 15 starting with ppcx64 as bootstrap compiler at the cycling stage. Any help?