From 93b2b675adc5a3b6d05f3eac1ec6e072236c2f95 Mon Sep 17 00:00:00 2001 From: "Kirill A. Korinsky" Date: Fri, 5 May 2023 23:30:32 +0200 Subject: [PATCH] gcc10-bootstrap: mark unsupported Xcode / CLT --- lang/gcc10-bootstrap/Portfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lang/gcc10-bootstrap/Portfile b/lang/gcc10-bootstrap/Portfile index f26c5bac554a5..9a9ee1ea87ada 100644 --- a/lang/gcc10-bootstrap/Portfile +++ b/lang/gcc10-bootstrap/Portfile @@ -65,6 +65,17 @@ checksums ${distname}${extract.suffix} \ sha256 fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0 \ size 2261594 +# GCC can't be build by clang from Xcode / CLT 14.0.x +# See: https://github.com/iains/gcc-12-branch/issues/6 +if {([vercmp ${xcodeversion} >= 14.0] && [vercmp ${xcodeversion} < 14.1]) || \ + ([vercmp ${xcodecltversion} >= 14.0] && [vercmp ${xcodecltversion} < 14.1])} { + known_fail yes + pre-fetch { + ui_error "GCC build is known to fail on Xcode / CLT 14.0.x" + return -code error "incompatible Xcode / CLT version" + } +} + extract { foreach f ${distfiles} { set f [lindex [split ${f} :] 0]