Bug#914635: woo FTBFS with boost 1.67

Adrian Bunk bunk at debian.org
Sun Nov 25 20:11:16 GMT 2018


Source: woo
Version: 1.0+dfsg1-3
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/package.php?p=woo

...
In file included from build-src-tree/woo/lib/base/openmp-accu.hpp:5,
                 from build-src-tree/woo/core/EnergyTracker.hpp:3,
                 from build-src-tree/../core/EnergyTracker.cpp:1,
                 from build-src-tree/src/chunk-91-EnergyTracker.cpp:1:
build-src-tree/woo/lib/base/Math.hpp:71:37: error: expected identifier before '!' token
  #define likely(x) __builtin_expect(!!(x),1)
                                     ^
build-src-tree/woo/lib/base/Math.hpp:71:37: error: expected ',' or '...' before '!' token
In file included from /usr/include/boost/date_time/format_date_parser.hpp:17,
                 from /usr/include/boost/date_time/date_generator_parser.hpp:20,
                 from /usr/include/boost/date_time/date_facet.hpp:25,
                 from /usr/include/boost/date_time/gregorian/gregorian_io.hpp:16,
                 from /usr/include/boost/date_time/gregorian/gregorian.hpp:31,
                 from /usr/include/boost/date_time/posix_time/time_formatters.hpp:12,
                 from /usr/include/boost/date_time/posix_time/posix_time.hpp:24,
                 from build-src-tree/woo/core/Master.hpp:3,
                 from build-src-tree/../core/EnergyTracker.cpp:2,
                 from build-src-tree/src/chunk-91-EnergyTracker.cpp:1:
/usr/include/boost/date_time/special_values_parser.hpp: In static member function 'static bool boost::date_time::special_values_parser<date_type, charT>::__builtin_expect(int)':
/usr/include/boost/date_time/special_values_parser.hpp:107:18: error: overloaded function with no contextual type information
         if (!str.empty()) {
                  ^~~~~
/usr/include/boost/date_time/special_values_parser.hpp:108:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
             switch (str[0]) {
                          ^
In file included from build-src-tree/woo/lib/base/openmp-accu.hpp:5,
                 from build-src-tree/woo/core/EnergyTracker.hpp:3,
                 from build-src-tree/../core/EnergyTracker.cpp:1,
                 from build-src-tree/src/chunk-91-EnergyTracker.cpp:1:
/usr/include/boost/date_time/time_parsing.hpp: In function 'time_type boost::date_time::parse_iso_time(const string&, char)':
build-src-tree/woo/lib/base/Math.hpp:71:38: error: no match for 'operator!' (operand type is 'const string' {aka 'const std::__cxx11::basic_string<char>'})
  #define likely(x) __builtin_expect(!!(x),1)
                                      ^~~~
build-src-tree/woo/lib/base/Math.hpp:71:38: note: candidate: 'operator!(bool)' <built-in>
build-src-tree/woo/lib/base/Math.hpp:71:38: note:   no known conversion for argument 1 from 'const string' {aka 'const std::__cxx11::basic_string<char>'} to 'bool'
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
E: pybuild pybuild:338: build: plugin distutils failed with: exit code=1: /usr/bin/python setup.py build 
dh_auto_build: pybuild --build -i python{version} -p 2.7 returned exit code 13
make: *** [debian/rules:7: build-arch] Error 25


The Ubuntu diff seems to contain a fix.



More information about the debian-science-maintainers mailing list