tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lang/gcc12 + Darwin testers needed



The lang/gcc12 package is currently broken on at least some Darwin systems.  In part, the cause is the need for conflicting platform-specific patches.  I suspect the problem is exacerbated by an incorrect conditional in Makefile.common.  However, I do not have a range of systems to check this, and would appreciate help.

Currently, a homebrew patchset is applied only for Darwin/aarch64.  Darwin/x86_64 is expected to work without additional patches, but at least for Darwin/x86_64 24.1.0 (Sequoia, MacOS 15) it does not; I suspect the same for earlier Darwin/x86_64 releases.

The homebrew patchset is supposed to work for both aarch64 and x86_64 up through Darwin 23.*.* (Sonoma, MacOS 14); see 

	https://formulae.brew.sh/formula/gcc@12

Consequently, it should be OK to relax the conditional in Makefile.common to apply it for Darwin versions less than 15.0.0.  

A different patchset is needed for Darwin/x86_64 24.1.0; perhaps it will also work for Darwin/aarch64 24.*.*.  I have uploaded this patchset to ftp.netbsd.org so that it can be tested independently of the homebrew patchset.

The attached patch implements both a change in the Makefile.common conditional and sourcing the three necessary platform-specific patchsets.  Note that I have uploaded the original pkgsrc patch for libgcc/config.host, as it conflicts with both of the other patchsets and therefore must be downloaded separately for non-Darwin platforms.

I would greatly appreciate those with other Darwin versions testing this.  I am especially interested in (i) whether the homebrew patchset works on Darwin/x86_64 23.*.* (or earlier), and (ii) whether the new patchset works on Darwin/aarch64 24.*.*; although tests with other combinations are of course welcome.  Please report (i) the platform (e.g., uname -a), (ii) the xcode version (xcodebuild -version; just in case it matters), (iii) the patchset actually used, and (iv) whether the build succeeds.

Thanks a lot for your help.  Perhaps with a better understanding of what exactly each platform needs, we can unify these patches.

Cheers,
Brook


Attachment: gcc12.patch
Description: Binary data




Home | Main Index | Thread Index | Old Index