Fwd: [99297] trunk/dports/science/mpich2/Portfile
Jeremy Huddleston Sequoia
jeremyhu at apple.com
Sun Dec 16 09:21:27 PST 2012
What's the radar number for this clang bug?
Begin forwarded message:
> From: eborisch at macports.org
> Subject: [99297] trunk/dports/science/mpich2/Portfile
> Date: October 31, 2012 9:28:19 AM PDT
> To: macports-changes at lists.macosforge.org
> Reply-To: macports-dev at lists.macosforge.org, eborisch at macports.org
>
> Revision: 99297
> http://trac.macports.org//changeset/99297
> Author: eborisch at macports.org
> Date: 2012-10-31 09:28:19 -0700 (Wed, 31 Oct 2012)
> Log Message:
> -----------
> mpich2: blacklist clang for Xcode 4.5.1 and above. Fixes #36654.
>
> Modified Paths:
> --------------
> trunk/dports/science/mpich2/Portfile
>
> Modified: trunk/dports/science/mpich2/Portfile
> ===================================================================
> --- trunk/dports/science/mpich2/Portfile 2012-10-31 13:56:01 UTC (rev 99296)
> +++ trunk/dports/science/mpich2/Portfile 2012-10-31 16:28:19 UTC (rev 99297)
> @@ -134,15 +134,30 @@
> }
>
> variant llvm description {
> - Use llvm-gcc
> + Use Apple-supplied llvm-gcc
> } conflicts gcc43 gcc44 gcc45 gcc46 gcc47 clang clang31 {
> configure.compiler llvm-gcc-4.2
> }
>
> -variant clang description {
> - Use clang
> -} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 llvm clang31 {
> - configure.compiler clang
> +# Apple clang version 4.1 currently segfaults (Xcode 4.5.1)
> +# See https://trac.macports.org/ticket/36654#comment:9
> +if {[vercmp ${xcodeversion} 4.5.1] >= 0} {
> + compiler.blacklist clang
> + # Keeping variant so all the conflict lines don't balk and so upgrades
> + # of +clang are not moved to llvm without warning.
> + variant clang description {
> + !!THIS CLANG VERSION BREAKS. UNUSABLE VARIANT HERE AS PLACEHOLDER ONLY!!
> + } conflicts gcc43 gcc44 gcc45 gcc46 gcc47 llvm clang31 {
> + ui_error \
> + "This version of clang segfaults. Please select a different compiler."
> + return -code error "Unsupported clang version. Try +clang31 or +llvm ?"
> + }
> +} else {
> + variant clang description {
> + Use Apple-supplied clang
> + } conflicts gcc43 gcc44 gcc45 gcc46 gcc47 llvm clang31 {
> + configure.compiler clang
> + }
> }
>
> variant clang31 description {
> _______________________________________________
> macports-changes mailing list
> macports-changes at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-changes
More information about the macports-dev
mailing list