[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#984041: duma: ftbfs with GCC-11



Package: src:duma
Version: 2.5.15-2
Severity: normal
Tags: sid bookworm
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-11

[This bug is not targeted to the upcoming bullseye release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/duma_2.5.15-2_unstable_gcc11.log
The last lines of the build log are at the end of this report.

To build with GCC 11, either set CC=gcc-11 CXX=g++-11 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
createconf.c:169:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  169 |         *( (unsigned long long int *) addr ) = 0L;
      |            ^
createconf.c:179:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  179 |       TYPE addr = (TYPE)(buffer) + offset;
      |                   ^
createconf.c:182:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  182 |         *( (unsigned char *)     addr ) = 0;
      |            ^
createconf.c:183:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  183 |         *( (unsigned short int*) addr ) = 0;
      |            ^
createconf.c:184:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  184 |         *( (unsigned int *)      addr ) = 0;
      |            ^
createconf.c:185:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  185 |         *( (unsigned long int *) addr ) = 0L;
      |            ^
createconf.c:186:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  186 |         *( (float *)             addr ) = 0.0F;
      |            ^
createconf.c:187:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  187 |         *( (double *)            addr ) = 0.0;
      |            ^
createconf.c:188:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  188 |         *( (long double *)       addr ) = 0.0;
      |            ^
createconf.c:193:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  193 |         *( (unsigned long long int *) addr ) = 0L;
      |            ^
rm -f createconf
gcc -g -O0 -Wall -Wextra -DDUMA_SO_NO_LEAKDETECTION createconf.o -o createconf
./createconf
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
g++ -g -O0 -Wall -Wextra -c dumapp.cpp -o dumapp.o
In file included from dumapp.cpp:39:
dumapp.h:88:49: error: ISO C++17 does not allow dynamic exception specifications
   88 |     void * DUMA_CDECL operator new(DUMA_SIZE_T) throw(std::bad_alloc);
      |                                                 ^~~~~
dumapp.h:98:51: error: ISO C++17 does not allow dynamic exception specifications
   98 |     void * DUMA_CDECL operator new[](DUMA_SIZE_T) throw(std::bad_alloc);
      |                                                   ^~~~~
dumapp.h:110:70: error: ISO C++17 does not allow dynamic exception specifications
  110 |       void * DUMA_CDECL operator new(DUMA_SIZE_T, const char *, int) throw(std::bad_alloc);
      |                                                                      ^~~~~
dumapp.h:120:72: error: ISO C++17 does not allow dynamic exception specifications
  120 |       void * DUMA_CDECL operator new[](DUMA_SIZE_T, const char *, int) throw(std::bad_alloc);
      |                                                                        ^~~~~
dumapp.cpp: In function ‘void* duma_new_operator(std::size_t, _DUMA_Allocator, bool, const char*, int)’:
dumapp.cpp:167:21: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=]
  167 |         catch (std::bad_alloc)        // error occured in new_handler
      |                     ^~~~~~~~~
dumapp.cpp: At global scope:
dumapp.cpp:328:1: error: ISO C++17 does not allow dynamic exception specifications
  328 | throw( std::bad_alloc )
      | ^~~~~
dumapp.cpp:381:1: error: ISO C++17 does not allow dynamic exception specifications
  381 | throw( std::bad_alloc )
      | ^~~~~
dumapp.cpp:218:17: warning: the program should also define ‘void operator delete(void*, std::size_t)’ [-Wsized-deallocation]
  218 | void DUMA_CDECL operator delete( void *ptr )
      |                 ^~~~~~~~
dumapp.cpp:284:19: warning: the program should also define ‘void operator delete [](void*, std::size_t)’ [-Wsized-deallocation]
  284 | void   DUMA_CDECL operator delete[]( void * ptr )
      |                   ^~~~~~~~
make[1]: *** [GNUmakefile:566: dumapp.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:4: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: