Bug 230628

Summary: math/R-cran-MCMCpack: fails to build with Clang 7
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Walter Schwarzenfeld <w.schwarzenfeld>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: w.schwarzenfeld
Priority: --- Keywords: needs-patch
Version: LatestFlags: bugzilla: maintainer-feedback? (tota)
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 230355    

Description Jan Beich freebsd_committer freebsd_triage 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 freebsd_triage 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.