Bug#897768: hmat-oss: ftbfs with GCC-8
Matthias Klose
doko at debian.org
Fri May 4 13:21:56 BST 2018
Package: src:hmat-oss
Version: 1.2.0-2
Severity: normal
Tags: sid buster
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-8
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-8/g++-8, but succeeds to build with gcc-7/g++-7. The
severity of this report will be raised before the buster release.
The full build log can be found at:
http://aws-logs.debian.net/2018/05/01/gcc8/hmat-oss_1.2.0-2_unstable_gcc8.log.gz
The last lines of the build log are at the end of this report.
To build with GCC 8, either set CC=gcc-8 CXX=g++-8 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-8/porting_to.html
[...]
/<<PKGBUILDDIR>>/src/full_matrix.cpp:923:16: required from here
/<<PKGBUILDDIR>>/src/full_matrix.cpp:904:11: error: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct std::complex<float>'; use assignment or value-initialization instead [-Werror=class-memaccess]
memset(v, 0, sizeof(T) * rows);
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/data_types.hpp:26,
from /<<PKGBUILDDIR>>/src/full_matrix.hpp:31,
from /<<PKGBUILDDIR>>/src/full_matrix.cpp:35:
/usr/include/c++/8/complex:1072:12: note: 'struct std::complex<float>' declared here
struct complex<float>
^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/full_matrix.cpp: In instantiation of 'void hmat::Vector<T>::clear() [with T = std::complex<double>]':
/<<PKGBUILDDIR>>/src/full_matrix.cpp:924:16: required from here
/<<PKGBUILDDIR>>/src/full_matrix.cpp:899:9: error: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct std::complex<double>'; use assignment or value-initialization instead [-Werror=class-memaccess]
memset(this->v, 0, sizeof(T) * this->rows);
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/data_types.hpp:26,
from /<<PKGBUILDDIR>>/src/full_matrix.hpp:31,
from /<<PKGBUILDDIR>>/src/full_matrix.cpp:35:
/usr/include/c++/8/complex:1221:12: note: 'struct std::complex<double>' declared here
struct complex<double>
^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/full_matrix.cpp: In instantiation of 'void hmat::Vector<T>::scale(T) [with T = std::complex<double>]':
/<<PKGBUILDDIR>>/src/full_matrix.cpp:924:16: required from here
/<<PKGBUILDDIR>>/src/full_matrix.cpp:904:11: error: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct std::complex<double>'; use assignment or value-initialization instead [-Werror=class-memaccess]
memset(v, 0, sizeof(T) * rows);
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/data_types.hpp:26,
from /<<PKGBUILDDIR>>/src/full_matrix.hpp:31,
from /<<PKGBUILDDIR>>/src/full_matrix.cpp:35:
/usr/include/c++/8/complex:1221:12: note: 'struct std::complex<double>' declared here
struct complex<double>
^~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/hmat-oss.dir/build.make:235: CMakeFiles/hmat-oss.dir/src/full_matrix.cpp.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** Waiting for unfinished jobs....
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
/usr/bin/c++ -D_GNU_SOURCE -Dhmat_oss_EXPORTS -I/<<PKGBUILDDIR>>/include -I/usr/include/x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/src -fopenmp -Werror -Wall -Wno-unused-result -Wno-sign-compare -Wno-literal-suffix -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -ffast-math -funsafe-math-optimizations -fopenmp -fPIC -o CMakeFiles/hmat-oss.dir/src/compression.cpp.o -c /<<PKGBUILDDIR>>/src/compression.cpp
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
/usr/bin/c++ -D_GNU_SOURCE -Dhmat_oss_EXPORTS -I/<<PKGBUILDDIR>>/include -I/usr/include/x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/src -fopenmp -Werror -Wall -Wno-unused-result -Wno-sign-compare -Wno-literal-suffix -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -ffast-math -funsafe-math-optimizations -fopenmp -fPIC -o CMakeFiles/hmat-oss.dir/src/rk_matrix.cpp.o -c /<<PKGBUILDDIR>>/src/rk_matrix.cpp
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
/usr/bin/c++ -D_GNU_SOURCE -Dhmat_oss_EXPORTS -I/<<PKGBUILDDIR>>/include -I/usr/include/x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/src -fopenmp -Werror -Wall -Wno-unused-result -Wno-sign-compare -Wno-literal-suffix -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -ffast-math -funsafe-math-optimizations -fopenmp -fPIC -o CMakeFiles/hmat-oss.dir/src/h_matrix.cpp.o -c /<<PKGBUILDDIR>>/src/h_matrix.cpp
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:71: CMakeFiles/hmat-oss.dir/all] Error 2
make[1]: *** [Makefile:133: all] Error 2
dh_auto_build: cd obj-x86_64-linux-gnu && make -j8 -Oline returned exit code 2
make: *** [debian/rules:19: build-arch] Error 25
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2
More information about the debian-science-maintainers
mailing list