[Python-modules-team] Bug#829173: swiginac: FTBFS: /usr/include/ginac/ptr.h:37:13: error: expected '; ' at end of member declaration

Emilio Pozuelo Monfort pochu at debian.org
Fri Jul 1 08:17:14 UTC 2016


Source: swiginac
Version: 1.5.1.1-2
Severity: serious

On a rebuild against the new ginac, your package failed to build everywhere:

creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c swiginac_wrap.cpp -o build/temp.linux-x86_64-2.7/swiginac_wrap.o
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /usr/include/ginac/basic.h:27:0,
                 from /usr/include/ginac/ginac.h:28,
                 from swiginac_wrap.cpp:3305:
/usr/include/ginac/ptr.h:37:13: error: expected ';' at end of member declaration
  refcounted() noexcept : refcount(0) {}
             ^
/usr/include/ginac/ptr.h:37:15: error: 'noexcept' does not name a type
  refcounted() noexcept : refcount(0) {}
               ^
/usr/include/ginac/ptr.h:37:15: note: C++11 'noexcept' only available with -std=c++11 or -std=gnu++11
/usr/include/ginac/ptr.h:39:29: error: expected ';' at end of member declaration
  unsigned int add_reference() noexcept { return ++refcount; }
[...]

Apparently ginac requires C++11 now, which you need to manually enable with GCC 5.

Full logs at:

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

Emilio



More information about the Python-modules-team mailing list