Bug#831200: 3depict: FTBFS with GCC 6: common/stringFuncs.cpp:232:9: error: cannot convert 'std::ifstream {aka std::basic_ifstream<char>}' to 'bool' in return

Lucas Nussbaum lucas at debian.org
Thu Jul 14 06:49:22 UTC 2016


Source: 3depict
Version: 0.0.18-2
Severity: serious
Tags: stretch sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20160713 qa-ftbfs
Justification: FTBFS with GCC 6 on amd64

Hi,

During a rebuild of all packages in sid using the gcc-defaults package
available in experimental to make GCC default to version 6, your package failed
to build on amd64. For more information about GCC 6 and Stretch, see:
- https://wiki.debian.org/GCC6
- https://lists.debian.org/debian-devel-announce/2016/06/msg00007.html

Relevant part (hopefully):
> g++ -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/freetype2  -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -I/usr/include  -I/usr/include/libxml2 -L/lib -fopenmp -D_GLIBCXX_PARALLEL  -pipe  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -c -o common/3Depict-stringFuncs.o `test -f 'common/stringFuncs.cpp' || echo './'`common/stringFuncs.cpp
> common/stringFuncs.cpp: In function 'bool genRandomFilename(std::__cxx11::string&, bool)':
> common/stringFuncs.cpp:232:9: error: cannot convert 'std::ifstream {aka std::basic_ifstream<char>}' to 'bool' in return
>   return f;
>          ^
> make[3]: *** [common/3Depict-stringFuncs.o] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2016/07/13/3depict_0.0.18-2_unstable_gcc6.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!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the debian-science-maintainers mailing list