Bug#1002167: hmat-oss: FTBFS: memory_instrumentation.cpp:145:39: error: ‘mallinfo mallinfo() ’ is deprecated [-Werror=deprecated-declarations]

Lucas Nussbaum lucas at debian.org
Tue Dec 21 16:02:29 GMT 2021


Source: hmat-oss
Version: 1.2.0-2.1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211220 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> /usr/bin/c++ -D_GNU_SOURCE -Dhmat_oss_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/src -fopenmp -Werror -Wall -Wno-unused-result -Wno-sign-compare -Wno-literal-suffix  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -ffast-math -funsafe-math-optimizations -fopenmp -fPIC -MD -MT CMakeFiles/hmat-oss.dir/src/common/memory_instrumentation.cpp.o -MF CMakeFiles/hmat-oss.dir/src/common/memory_instrumentation.cpp.o.d -o CMakeFiles/hmat-oss.dir/src/common/memory_instrumentation.cpp.o -c /<<PKGBUILDDIR>>/src/common/memory_instrumentation.cpp
> /<<PKGBUILDDIR>>/src/common/memory_instrumentation.cpp: In member function ‘void hmat::MemoryInstrumenter::allocImpl(hmat::MemoryInstrumenter::mem_t, char)’:
> /<<PKGBUILDDIR>>/src/common/memory_instrumentation.cpp:145:39: error: ‘mallinfo mallinfo()’ is deprecated [-Werror=deprecated-declarations]
>   145 |             global_mallinfo = mallinfo();
>       |                               ~~~~~~~~^~
> In file included from /<<PKGBUILDDIR>>/src/common/memory_instrumentation.cpp:32:
> /usr/include/malloc.h:118:24: note: declared here
>   118 | extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED;
>       |                        ^~~~~~~~
> [ 40%] Building CXX object CMakeFiles/hmat-oss.dir/src/compression.cpp.o
> /usr/bin/c++ -D_GNU_SOURCE -Dhmat_oss_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/src -fopenmp -Werror -Wall -Wno-unused-result -Wno-sign-compare -Wno-literal-suffix  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -ffast-math -funsafe-math-optimizations -fopenmp -fPIC -MD -MT CMakeFiles/hmat-oss.dir/src/compression.cpp.o -MF CMakeFiles/hmat-oss.dir/src/compression.cpp.o.d -o CMakeFiles/hmat-oss.dir/src/compression.cpp.o -c /<<PKGBUILDDIR>>/src/compression.cpp
> cc1plus: all warnings being treated as errors
> make[3]: *** [CMakeFiles/hmat-oss.dir/build.make:163: CMakeFiles/hmat-oss.dir/src/common/memory_instrumentation.cpp.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2021/12/20/hmat-oss_1.2.0-2.1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the debian-science-maintainers mailing list