<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>366138</bug_id>
          
          <creation_ts>2016-07-26 16:39:06 +0000</creation_ts>
          <short_desc>configure errors out when using Xcode 8 (clang 8.0.0)</short_desc>
          <delta_ts>2016-09-11 13:56:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Developer tools</classification>
          <product>valgrind</product>
          <component>general</component>
          <version>3.12 SVN</version>
          <rep_platform>MacPorts</rep_platform>
          <op_sys>macOS</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>365327</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>jeremyhu</reporter>
          <assigned_to name="Rhys Kidd">rhyskidd</assigned_to>
          <cc>douglas.pearless</cc>
    
    <cc>rhyskidd</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1610665</commentid>
    <comment_count>0</comment_count>
    <who name="">jeremyhu</who>
    <bug_when>2016-07-26 16:39:06 +0000</bug_when>
    <thetext>Using current trunk (valgrind r15915, vex r3232), valgrind is failing to configure when using Xcode 8.

configure:5397: checking for a supported version of gcc
configure:5481: result: no (8.0.0)
configure:5483: error: please use gcc &gt;= 3.0 or clang &gt;= 2.9 or icc &gt;= 13.0

The problem is with:

applellvm-5.1|applellvm-6.*|applellvm-7.*)

and also note that is_clang is not included in the error message.



Reproducible: Always

Steps to Reproduce:
1. Use Xcode 8 to build valgrind


Actual Results:  
configure should have succeeded

Expected Results:  
configure failed

--- configure.ac.orig	2016-07-26 09:30:11.000000000 -0700
+++ configure.ac	2016-07-26 09:30:27.000000000 -0700
@@ -154,7 +154,7 @@ AM_CONDITIONAL(COMPILER_IS_ICC, test $is
 # Note: m4 arguments are quoted with [ and ] so square brackets in shell
 # statements have to be quoted.
 case &quot;${is_clang}-${gcc_version}&quot; in
-     applellvm-5.1|applellvm-6.*|applellvm-7.*)
+     applellvm-5.1|applellvm-[[6-9]].*|applellvm-[[1-9]][[0-9]].*)
 	AC_MSG_RESULT([ok (Apple LLVM version ${gcc_version})])
 	;;
      icc-1[[3-9]].*)
@@ -167,7 +167,7 @@ case &quot;${is_clang}-${gcc_version}&quot; in
 	AC_MSG_RESULT([ok (clang-${gcc_version})])
 	;;
      *)
-	AC_MSG_RESULT([no (${gcc_version})])
+	AC_MSG_RESULT([no (${is_clang}-${gcc_version})])
 	AC_MSG_ERROR([please use gcc &gt;= 3.0 or clang &gt;= 2.9 or icc &gt;= 13.0])
 	;;
 esac</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1610667</commentid>
    <comment_count>1</comment_count>
      <attachid>100314</attachid>
    <who name="">jeremyhu</who>
    <bug_when>2016-07-26 16:45:40 +0000</bug_when>
    <thetext>Created attachment 100314
configure.ac patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613035</commentid>
    <comment_count>2</comment_count>
    <who name="Rhys Kidd">rhyskidd</who>
    <bug_when>2016-08-10 06:48:13 +0000</bug_when>
    <thetext>Thanks, I&apos;ll take a look.

As Xcode 8 remains in pre-release this isn&apos;t an urgent fix, although I aim to land this ahead of the next valgrind release. Such a release will hopefully also include initial support of macOS 10.12.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1620812</commentid>
    <comment_count>3</comment_count>
    <who name="Douglas Pearless">douglas.pearless</who>
    <bug_when>2016-09-11 01:35:56 +0000</bug_when>
    <thetext>i fixed my config script by changing:
applellvm-5.1|applellvm-6.*|applellvm-7.*)
to
applellvm-5.1|applellvm-6.*|applellvm-7.*|applellvm-8.*)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1620964</commentid>
    <comment_count>4</comment_count>
    <who name="Rhys Kidd">rhyskidd</who>
    <bug_when>2016-09-11 13:45:17 +0000</bug_when>
    <thetext>Jeremy,
I&apos;ve split the fix into two. Your patch for an improved configure output message upon compiler version error landed in r15948. Thanks!
Support for Xcode 8&apos;s clang compiler will land separately.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1620987</commentid>
    <comment_count>5</comment_count>
    <who name="Rhys Kidd">rhyskidd</who>
    <bug_when>2016-09-11 13:56:21 +0000</bug_when>
    <thetext>Xcode 8 support landed in r15949. Xcode 8 has a GM available to download.

This applies to both OS X 10.11 and macOS 10.12; although the later requires further patches to land before Valgrind supports that xnu kernel.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>100314</attachid>
            <date>2016-07-26 16:45:40 +0000</date>
            <delta_ts>2016-07-26 16:45:40 +0000</delta_ts>
            <desc>configure.ac patch</desc>
            <filename>patch-configure.ac.diff</filename>
            <type>text/plain</type>
            <size>852</size>
            <attacher>jeremyhu</attacher>
            
              <data encoding="base64">aHR0cHM6Ly9idWdzLmtkZS5vcmcvc2hvd19idWcuY2dpP2lkPTM2NjEzOAoKLS0tIGNvbmZpZ3Vy
ZS5hYy5vcmlnCTIwMTYtMDctMjYgMDk6MzA6MTEuMDAwMDAwMDAwIC0wNzAwCisrKyBjb25maWd1
cmUuYWMJMjAxNi0wNy0yNiAwOTozMDoyNy4wMDAwMDAwMDAgLTA3MDAKQEAgLTE1NCw3ICsxNTQs
NyBAQCBBTV9DT05ESVRJT05BTChDT01QSUxFUl9JU19JQ0MsIHRlc3QgJGlzCiAjIE5vdGU6IG00
IGFyZ3VtZW50cyBhcmUgcXVvdGVkIHdpdGggWyBhbmQgXSBzbyBzcXVhcmUgYnJhY2tldHMgaW4g
c2hlbGwKICMgc3RhdGVtZW50cyBoYXZlIHRvIGJlIHF1b3RlZC4KIGNhc2UgIiR7aXNfY2xhbmd9
LSR7Z2NjX3ZlcnNpb259IiBpbgotICAgICBhcHBsZWxsdm0tNS4xfGFwcGxlbGx2bS02Lip8YXBw
bGVsbHZtLTcuKikKKyAgICAgYXBwbGVsbHZtLTUuMXxhcHBsZWxsdm0tW1s2LTldXS4qfGFwcGxl
bGx2bS1bWzEtOV1dW1swLTldXS4qKQogCUFDX01TR19SRVNVTFQoW29rIChBcHBsZSBMTFZNIHZl
cnNpb24gJHtnY2NfdmVyc2lvbn0pXSkKIAk7OwogICAgICBpY2MtMVtbMy05XV0uKikKQEAgLTE2
Nyw3ICsxNjcsNyBAQCBjYXNlICIke2lzX2NsYW5nfS0ke2djY192ZXJzaW9ufSIgaW4KIAlBQ19N
U0dfUkVTVUxUKFtvayAoY2xhbmctJHtnY2NfdmVyc2lvbn0pXSkKIAk7OwogICAgICAqKQotCUFD
X01TR19SRVNVTFQoW25vICgke2djY192ZXJzaW9ufSldKQorCUFDX01TR19SRVNVTFQoW25vICgk
e2lzX2NsYW5nfS0ke2djY192ZXJzaW9ufSldKQogCUFDX01TR19FUlJPUihbcGxlYXNlIHVzZSBn
Y2MgPj0gMy4wIG9yIGNsYW5nID49IDIuOSBvciBpY2MgPj0gMTMuMF0pCiAJOzsKIGVzYWMK
</data>

          </attachment>
      

    </bug>

</bugzilla>