Bug 230628 - math/R-cran-MCMCpack: fails to build with Clang 7
Summary: math/R-cran-MCMCpack: fails to build with Clang 7
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Walter Schwarzenfeld
URL:
Keywords: needs-patch
Depends on:
Blocks: 230355
  Show dependency treegraph
 
Reported: 2018-08-14 20:38 UTC by Jan Beich
Modified: 2019-08-13 05:45 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (tota)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2018-08-14 20:38:33 UTC
$ poudriere jail -cj clang7 -a amd64 -v projects/clang700-import -m svn+https
$ poudriere testport -j clang7 math/R-cran-MCMCpack
[...]
In file included from cHDPHMMnegbin.cc:22:
In file included from ./MCMCrng.h:29:
In file included from ./mersenne.h:76:
./rng.h:1314:28: error: no matching member function for call to 'end_f'
          = alpha.template end_f();
            ~~~~~~~~~~~~~~~^~~~~
cHDPHMMnegbin.cc:465:26: note: in instantiation of function template specialization 'scythe::rng<scythe::mersenne>::rdirich<scythe::Col, scythe::Concrete>' requested here
    gamma_prime = stream.rdirich(gamma_prime_dir);
                         ^
cHDPHMMnegbin.cc:651:28: note: in instantiation of function template specialization 'HDPHMMnegbinReg_impl<scythe::mersenne>' requested here
    MCMCPACK_PASSRNG2MODEL(HDPHMMnegbinReg_impl, 
                           ^
./matrix.h:3580:7: note: candidate template ignored: couldn't infer template argument 'I_ORDER'
      end_f ()
      ^
./matrix.h:3598:7: note: candidate template ignored: couldn't infer template argument 'I_ORDER'
      end_f () const
      ^
In file included from cHDPHMMnegbin.cc:22:
In file included from ./MCMCrng.h:29:
In file included from ./mersenne.h:76:
./rng.h:1314:28: error: no matching member function for call to 'end_f'
          = alpha.template end_f();
            ~~~~~~~~~~~~~~~^~~~~
cHDPHMMnegbin.cc:465:26: note: in instantiation of function template specialization 'scythe::rng<scythe::lecuyer>::rdirich<scythe::Col, scythe::Concrete>' requested here
    gamma_prime = stream.rdirich(gamma_prime_dir);
                         ^
cHDPHMMnegbin.cc:651:28: note: in instantiation of function template specialization 'HDPHMMnegbinReg_impl<scythe::lecuyer>' requested here
    MCMCPACK_PASSRNG2MODEL(HDPHMMnegbinReg_impl, 
                           ^
./matrix.h:3580:7: note: candidate template ignored: couldn't infer template argument 'I_ORDER'
      end_f ()
      ^
./matrix.h:3598:7: note: candidate template ignored: couldn't infer template argument 'I_ORDER'
      end_f () const
      ^
2 errors generated.

http://package18.nyi.freebsd.org/data/headamd64PR230355-default/2018-08-11_19h01m06s/logs/errors/R-cran-MCMCpack-1.4.3.log
Comment 1 Jan Beich freebsd_committer 2018-08-14 20:40:34 UTC
Can be worked around via CXX=clang++60 + BUILD_DEPENDS=devel/llvm60.
Comment 2 Walter Schwarzenfeld freebsd_triage 2019-08-13 05:44:03 UTC
In the meantime build fine with clang70. Close here with overcome.
If there still problems, please reopen.