GNAT toolchain now broken after OS upgrade to MacOS 15.7.1 (Sequoia), x86

macOs minor update and now:

ld: library not found for -lSystem
ld: library not found for -lSystem
ld: library not found for -lSystem
ld: library not found for -lSystem
ld: library not found for -lSystem
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
   link of hp41cx_tools-unicode_to_px41.adb failed
   failed command was: /users/martin/.local/share/alire/toolchains/gnat_native_15.2.1_fffe07e8/bin/gcc hp41cx_tools-unicode_to_px41.o b__hp41cx_tools-unicode_to_px41.o /Users/Shared/Work/Projects/Calculator-Scripts/Tools/hp41cx_tools/obj/validation/hp41cx_tools.o /Users/Shared/Work/Projects/Calculator-Scripts/Tools/hp41cx_tools/obj/validation/hp41cx_tools-filter.o /Users/martin/.local/share/alire/builds/adacl_sar_7.0.0_c9259a75/3cf86e203b7342c0f3de14d6ce65a08951c38e857721a5290f4d4337f7351aaa/lib/libAdaCL_SAR.a /Users/martin/.local/share/alire/builds/adacl_regexp_7.0.0_3418a3cc/25e76d52403933d221659ef635f0613345753ec533087326d8212a3188fa4e35/lib/libAdaCL_RegExp.a /Users/Shared/Work/Projects/AdaCL/adacl/lib/libAdaCL.a -L/Users/Shared/Work/Projects/Calculator-Scripts/Tools/hp41cx_tools/obj/validation/ -L/Users/Shared/Work/Projects/Calculator-Scripts/Tools/hp41cx_tools/obj/validation/ -L/Users/Shared/Work/Projects/AdaCL/adacl/lib/ -L/Users/martin/.local/share/alire/builds/adacl_regexp_7.0.0_3418a3cc/25e76d52403933d221659ef635f0613345753ec533087326d8212a3188fa4e35/lib/ -L/Users/martin/.local/share/alire/builds/adacl_sar_7.0.0_c9259a75/3cf86e203b7342c0f3de14d6ce65a08951c38e857721a5290f4d4337f7351aaa/lib/ -L/users/martin/.local/share/alire/toolchains/gnat_native_15.2.1_fffe07e8/lib/gcc/x86_64-apple-darwin22.6.0/15.2.0/adalib/ -static-libgcc /users/martin/.local/share/alire/toolchains/gnat_native_15.2.1_fffe07e8/lib/gcc/x86_64-apple-darwin22.6.0/15.2.0/adalib/libgnarl.a /users/martin/.local/share/alire/toolchains/gnat_native_15.2.1_fffe07e8/lib/gcc/x86_64-apple-darwin22.6.0/15.2.0/adalib/libgnat.a -Wl,-rpath,@executable_path/..//obj/validation -Wl,-rpath,@executable_path/../../../..//AdaCL/adacl/lib -Wl,-rpath,@executable_path/../../../../../../..//martin/.local/share/alire/builds/adacl_regexp_7.0.0_3418a3cc/25e76d52403933d221659ef635f0613345753ec533087326d8212a3188fa4e35/lib -Wl,-rpath,@executable_path/../../../../../../..//martin/.local/share/alire/builds/adacl_sar_7.0.0_c9259a75/3cf86e203b7342c0f3de14d6ce65a08951c38e857721a5290f4d4337f7351aaa/lib -Wl,-rpath,@executable_path/../../../../../../..//martin/.local/share/alire/toolchains/gnat_native_15.2.1_fffe07e8/lib/gcc/x86_64-apple-darwin22.6.0/15.2.0/adalib -o /Users/Shared/Work/Projects/Calculator-Scripts/Tools/hp41cx_tools/bin//hp41cx_tools-unicode_to_px41 

Can Apple just not break things with every update? This was only supposed to be a minor security fix.

i did:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license accept

XCode is new:

Force-Update XCode and the Command Line Tools for Xcode as well adding this to the setup worked:

typeset -x -g -U -T LD_LIBRARY_PATH	ld_library_path	    ":"
typeset -x -g -U -T LDFLAGS			ldflags			    " "
typeset -x -g -U -T LIBRARY_PATH	library_path		":"
typeset -x -g	    SDKROOT="$(xcrun --show-sdk-path)"

ld_library_path=(${SDKROOT}/usr/lib ${ld_library_path})
ldflags=(-L${SDKROOT}/usr/lib ${ldflags})
library_path=(${SDKROOT}/usr/lib ${library_path})

Don’t know what Apple did this times as normally the tools update themselves after the final reboot into the new operating system. The settings is probably overkill but I’m to lazy to find out which is the needed one.