Processed: Re: [Debichem-devel] Bug#822501: bagel: FTBFS: error: 'inner_product' is not a member of 'std'

2016-05-03 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> tags 822501 +pending
Bug #822501 [bagel] bagel: FTBFS: error: 'inner_product' is not a member of 
'std'
Added tag(s) pending.
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
822501: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=822501
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#822501: [Debichem-devel] Bug#822501: bagel: FTBFS: error: 'inner_product' is not a member of 'std'

2016-05-03 Thread Michael Banck
tags 822501 +pending
thanks

On Sun, Apr 24, 2016 at 06:16:10PM -0700, Martin Michlmayr wrote:
> This package fails to build in unstable:
> 
> > sbuild (Debian sbuild) 0.68.0 (15 Jan 2016) on dl580gen9-02.hlinux
> ...
> > libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -g -O2 
> > -DNDEBUG -std=c++11 -c distzmatrix.cc -o distzmatrix.o
> > In file included from algo.cc:27:0:
> > ../../../src/util/math/algo.h: In function 'decltype (((* p) * (* q))) 
> > bagel::blas::{anonymous}::dot_product(T, size_t, U)':
> > ../../../src/util/math/algo.h:151:12: error: 'inner_product' is not a 
> > member of 'std'
> >  return std::inner_product(p, p+n, q, static_cast(0.0), 
> > std::plus(), [](decltype(*p) i, decltype(*q) j) { return 
> > detail::conj(i)*j; });
> > ^

Thanks, I've cherry-picked a fix from upstream to subversion which fixes
this.  Will upload when I've verified the rest of the package still
builds as well.


Michael



Bug#822501: bagel: FTBFS: error: 'inner_product' is not a member of 'std'

2016-04-24 Thread Martin Michlmayr
Package: bagel
Version: 0.0~git20150902-1
Severity: serious

This package fails to build in unstable:

> sbuild (Debian sbuild) 0.68.0 (15 Jan 2016) on dl580gen9-02.hlinux
...
> libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -g -O2 
> -DNDEBUG -std=c++11 -c distzmatrix.cc -o distzmatrix.o
> In file included from algo.cc:27:0:
> ../../../src/util/math/algo.h: In function 'decltype (((* p) * (* q))) 
> bagel::blas::{anonymous}::dot_product(T, size_t, U)':
> ../../../src/util/math/algo.h:151:12: error: 'inner_product' is not a member 
> of 'std'
>  return std::inner_product(p, p+n, q, static_cast(0.0), 
> std::plus(), [](decltype(*p) i, decltype(*q) j) { return 
> detail::conj(i)*j; });
> ^
> ../../../src/util/math/algo.h: In function 'decltype (((* p) * (* q))) 
> bagel::blas::{anonymous}::dot_product_noconj(T, size_t, U)':
> ../../../src/util/math/algo.h:168:12: error: 'inner_product' is not a member 
> of 'std'
>  return std::inner_product(p, p+n, q, static_cast(0.0), 
> std::plus(), [](decltype(*p) i, decltype(*q) j) { return i*j; });
> ^
> In file included from ztranspose.cc:26:0:
> ../../../src/util/math/algo.h: In function 'decltype (((* p) * (* q))) 
> bagel::blas::{anonymous}::dot_product(T, size_t, U)':
> ../../../src/util/math/algo.h:151:12: error: 'inner_product' is not a member 
> of 'std'
>  return std::inner_product(p, p+n, q, static_cast(0.0), 
> std::plus(), [](decltype(*p) i, decltype(*q) j) { return 
> detail::conj(i)*j; });
> ^
> ../../../src/util/math/algo.h: At global scope:
> ../../../src/util/math/algo.h:196:48: error: 'accumulate' is not a member of 
> 'std'
>auto average(const T& container) -> 
> decltype(std::accumulate(container.begin(), container.end(), 
> 0.0)/container.size()) {
> ^
> ../../../src/util/math/algo.h:196:48: error: 'accumulate' is not a member of 
> 'std'
> ../../../src/util/math/algo.h: In function 'decltype (( / 
> container.size())) bagel::blas::{anonymous}::average(const T&)':
> ../../../src/util/math/algo.h:197:12: error: 'accumulate' is not a member of 
> 'std'
>  return std::accumulate(container.begin(), container.end(), 0.0) / 
> container.size();
> ^
> ../../../src/util/math/algo.h: In function 'decltype (((* p) * (* q))) 
> bagel::blas::{anonymous}::dot_product_noconj(T, size_t, U)':
> ../../../src/util/math/algo.h:168:12: error: 'inner_product' is not a member 
> of 'std'
>  return std::inner_product(p, p+n, q, static_cast(0.0), 
> std::plus(), [](decltype(*p) i, decltype(*q) j) { return i*j; });
> ^
> ../../../src/util/math/algo.h: At global scope:
> ../../../src/util/math/algo.h:196:48: error: 'accumulate' is not a member of 
> 'std'
>auto average(const T& container) -> 
> decltype(std::accumulate(container.begin(), container.end(), 
> 0.0)/container.size()) {
> ^
> ../../../src/util/math/algo.h:196:48: error: 'accumulate' is not a member of 
> 'std'
> ../../../src/util/math/algo.h: In function 'decltype (( / 
> container.size())) bagel::blas::{anonymous}::average(const T&)':
> ../../../src/util/math/algo.h:197:12: error: 'accumulate' is not a member of 
> 'std'
>  return std::accumulate(container.begin(), container.end(), 0.0) / 
> container.size();
> ^
> Makefile:461: recipe for target 'algo.lo' failed

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise