I have two different Macs, one of which compiles gcc10 and one of which does not. �Both are using current pkgsrc.
The successful one is:
MacOS 11.1Darwin�20.2.0�Xcode 12.4SDK 11.1
The unsuccessful one is:
MacOS 11.4Darwin�20.5.0Xcode�12.5SDK 11.3
The latter also will not compile gcc8 or gcc9. �Note that I added�OSX_SDK_MAP.11.4=11.3 to mk/platform/Darwin.mk because of the version slew.
All of these gcc package fail when the stage 2 and stage 3 files are compared; otherwise the builds seem to progress fine.
I am not seeing any relevant bulk builds to indicate whether this is a known problem.
I would greatly appreciate any suggestions on how to make this work.
Thank you very much.
Cheers,Brook
Coincidentally, I was just working on this issue, which also
affects bootstrap and other packages that require cwrappers.
The SDK version has fallen behind the OS version (again).� My
existing trees and new bootstraps started failing after the last
routine MacOS updates.� The solution appears to be mapping 11.4 to
11.3 in Darwin.mk:
#
# Apple do not always keep the SDK version in step with the OS
version.� When
# that happens add a mapping below, but only within the same OS
release major.
#
OSX_SDK_MAP.11.2=������ 11.1
+OSX_SDK_MAP.11.4=������ 11.3
#
OSX_SDK_PATH!=� /usr/bin/xcrun \
������������������� --sdk
macosx${OSX_SDK_MAP.${OSX_VERSION}:U${OSX_VERSION}} \
������������������� --show-sdk-path 2>/dev/null || echo
/nonexistent
I just completed a successful bootstrap with this patch.� Any
concerns about committing it?