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

Bug#984247: mstflint: ftbfs with GCC-11



Package: src:mstflint
Version: 4.16.0+1-3
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/mstflint_4.16.0+1-3_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.

[...]
      |            ^~~~~~
mlxlink_cables_commander.cpp:386:41: note: returned from ‘void* malloc(size_t)’
  386 |     u_int8_t *page0L = (u_int8_t*)malloc(sizeof(u_int8_t) * CABLE_PAGE_SIZE);
      |                                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mlxlink_cables_commander.cpp: In member function ‘void MlxlinkCablesCommander::readCableDDMInfo()’:
mlxlink_cables_commander.cpp:638:12: error: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
  638 |     delete thresholdPage;
      |            ^~~~~~~~~~~~~
mlxlink_cables_commander.cpp:611:48: note: returned from ‘void* malloc(size_t)’
  611 |     u_int8_t *thresholdPage = (u_int8_t*)malloc(sizeof(u_int8_t) * CABLE_PAGE_SIZE);
      |                                          ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I../.. -I../../mtcr_ul -I -I../../mft_utils -I../../mlxreg -I../../mlxlink -I../../include/mtcr_ul -I/usr/include/jsoncpp  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -W -g -MP -MD -pipe -Werror  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -isystem /usr/local/include -DHAVE_TERMIOS_H -DMST_UL -c -o mlxlink_eye_opener.lo mlxlink_eye_opener.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I../.. -I../../mtcr_ul -I -I../../mft_utils -I../../mlxreg -I../../mlxlink -I../../include/mtcr_ul -I/usr/include/jsoncpp -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -W -g -MP -MD -pipe -Werror -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -isystem /usr/local/include -DHAVE_TERMIOS_H -DMST_UL -c mlxlink_eye_opener.cpp  -fPIC -DPIC -o .libs/mlxlink_eye_opener.o
mlxlink_cables_commander.cpp: In member function ‘void MlxlinkCablesCommander::initValidPages()’:
mlxlink_cables_commander.cpp:868:16: error: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
  868 |         delete page0H;
      |                ^~~~~~
mlxlink_cables_commander.cpp:864:46: note: returned from ‘void* malloc(size_t)’
  864 |         u_int8_t *page0H =  (u_int8_t*)malloc(sizeof(u_int8_t) * CABLE_PAGE_SIZE);
      |                                        ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mlxlink_cables_commander.cpp:898:16: error: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
  898 |         delete page0L;
      |                ^~~~~~
mlxlink_cables_commander.cpp:895:45: note: returned from ‘void* malloc(size_t)’
  895 |         u_int8_t *page0L = (u_int8_t*)malloc(sizeof(u_int8_t) * CABLE_PAGE_SIZE);
      |                                       ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mlxlink_cables_commander.cpp:952:24: error: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
  952 |                 delete page1H;
      |                        ^~~~~~
mlxlink_cables_commander.cpp:922:53: note: returned from ‘void* malloc(size_t)’
  922 |                 u_int8_t *page1H = (u_int8_t*)malloc(sizeof(u_int8_t) * CABLE_PAGE_SIZE);
      |                                               ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mlxlink_cables_commander.cpp: In member function ‘std::vector<MlxlinkCmdPrint> MlxlinkCablesCommander::getPagesToDump()’:
mlxlink_cables_commander.cpp:966:16: error: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
  966 |         delete pageP;
      |                ^~~~~
mlxlink_cables_commander.cpp:963:44: note: returned from ‘void* malloc(size_t)’
  963 |         u_int8_t *pageP = (u_int8_t*)malloc(sizeof(u_int8_t) * CABLE_PAGE_SIZE);
      |                                      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mlxlink_cables_commander.cpp: In member function ‘MlxlinkCmdPrint MlxlinkCablesCommander::readFromEEPRM(u_int16_t, u_int16_t, u_int16_t)’:
mlxlink_cables_commander.cpp:1087:12: error: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
 1087 |     delete pageL;
      |            ^~~~~
mlxlink_cables_commander.cpp:1052:41: note: returned from ‘void* malloc(size_t)’
 1052 |     u_int8_t *pageL = (u_int8_t*) malloc(sizeof(u_int8_t) * CABLE_PAGE_SIZE);
      |                                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mlxlink_cables_commander.cpp: In member function ‘void MlxlinkCablesCommander::writeToEEPROM(u_int16_t, u_int16_t, std::vector<unsigned char>&)’:
mlxlink_cables_commander.cpp:991:12: error: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
  991 |     delete data;
      |            ^~~~
mlxlink_cables_commander.cpp:984:40: note: returned from ‘void* malloc(size_t)’
  984 |     u_int8_t *data = (u_int8_t*) malloc(sizeof(u_int8_t) * bytesToWrite.size());
      |                                  ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[5]: *** [Makefile:606: mlxlink_cables_commander.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I../.. -I../../mtcr_ul -I -I../../mft_utils -I../../mlxreg -I../../mlxlink -I../../include/mtcr_ul -I/usr/include/jsoncpp -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -W -g -MP -MD -pipe -Werror -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -isystem /usr/local/include -DHAVE_TERMIOS_H -DMST_UL -c mlxlink_eye_opener.cpp -o mlxlink_eye_opener.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I../.. -I../../mtcr_ul -I -I../../mft_utils -I../../mlxreg -I../../mlxlink -I../../include/mtcr_ul -I/usr/include/jsoncpp -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -W -g -MP -MD -pipe -Werror -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -isystem /usr/local/include -DHAVE_TERMIOS_H -DMST_UL -c mlxlink_commander.cpp -o mlxlink_commander.o >/dev/null 2>&1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/mlxlink/modules'
make[4]: *** [Makefile:621: all-recursive] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/mlxlink/modules'
make[3]: *** [Makefile:590: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/mlxlink'
make[2]: *** [Makefile:551: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:438: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: