[MacPorts] #53525: valgrind: doesn't build with an old clang

MacPorts noreply at macports.org
Fri Feb 10 11:08:38 UTC 2017


#53525: valgrind: doesn't build with an old clang
-----------------------+--------------------
  Reporter:  mojca     |      Owner:  raimue
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  lion
      Port:  valgrind  |
-----------------------+--------------------

Comment (by raimue):

 This is probably the same issue as described in #32994 and #49161, which I
 assumed was fixed. The configure script wants to exclude gcc < 3.0, but
 the `--version` output (and also the version numbering!) of Apple clang is
 different from mainline clang. Therefore the script does not recognize
 this is actually clang and assumes it must be an old gcc.

 This issue was supposed to be fixed with this commit:
 {{{
 $ svn log -c14624 svn://svn.valgrind.org/valgrind
 ------------------------------------------------------------------------
 r14624 | sewardj | 2014-10-13 15:03:50 +0200 (Mon, 13 Oct 2014) | 6 lines

 Modify the compiler detection test so as to accept "Apple LLVM version
 5.1" (etc) and identify it as a Clang variant.  Without that, it gets
 misidentified as a gcc variant, which causes problems with Makefile.am's
 that use the derived COMPILER_IS_CLANG conditional.


 ------------------------------------------------------------------------
 }}}

 I can only guess that one of the `$CC --version | $SED ...` expressions
 does not match as expected (maybe some syntax issue with `/usr/bin/sed`
 vs. `gsed`, although it looks portable?). Could you please run configure
 with the following change and attach the resulting main.log?

 {{{
 #!diff
 $ git diff
 diff --git a/devel/valgrind/Portfile b/devel/valgrind/Portfile
 index 40a028d40d..9506df0686 100644
 --- a/devel/valgrind/Portfile
 +++ b/devel/valgrind/Portfile
 @@ -27,6 +27,7 @@ depends_build       bin:perl:perl5
  # Ignore trace reports about boost, Qt and OpenMP
  # as they are only used for tests

 +configure.cmd       sh -x ./configure
  configure.args      --without-mpicc

  if {${build_arch} eq "i386"} {
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53525#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list