[Pkg-phototools-devel] Bug#966904: pfstools: FTBFS: array2d.h:173:9: error: ‘__assert_fail’ was not declared in this scope; did you mean ‘MagickCore::__assert_fail’?

Lucas Nussbaum lucas at debian.org
Mon Aug 3 09:05:19 BST 2020


Source: pfstools
Version: 2.1.0-5
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200802 ftbfs-bullseye

Hi,

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

Relevant part (hopefully):
> /usr/bin/c++  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -rdynamic CMakeFiles/pfsoutrgbe.dir/pfsoutrgbe.cpp.o CMakeFiles/pfsoutrgbe.dir/rgbeio.cpp.o  -o pfsoutrgbe   -L/<<PKGBUILDDIR>>/src/pfs  -Wl,-rpath,/<<PKGBUILDDIR>>/src/pfs:/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/pfs: ../pfs/libpfs.so.2.0.0 
> In file included from /<<PKGBUILDDIR>>/src/pfs/array2d.h:38,
>                  from /<<PKGBUILDDIR>>/src/pfs/pfs.h:45,
>                  from /<<PKGBUILDDIR>>/src/fileformat/pfsoutimgmagick.cpp:37:
> /<<PKGBUILDDIR>>/src/pfs/array2d.h: In member function ‘virtual float& pfs::Array2DImpl::operator()(int, int)’:
> /<<PKGBUILDDIR>>/src/pfs/array2d.h:173:9: error: ‘__assert_fail’ was not declared in this scope; did you mean ‘MagickCore::__assert_fail’?
>   173 |         assert( col >= 0 && col < cols );
>       |         ^~~~~~
> In file included from /usr/include/ImageMagick-6/magick/memory_.h:22,
>                  from /usr/include/ImageMagick-6/magick/MagickCore.h:125,
>                  from /usr/include/ImageMagick-6/Magick++/Include.h:45,
>                  from /usr/include/ImageMagick-6/Magick++.h:10,
>                  from /<<PKGBUILDDIR>>/src/fileformat/pfsoutimgmagick.cpp:32:
> /usr/include/assert.h:69:13: note: ‘MagickCore::__assert_fail’ declared here
>    69 | extern void __assert_fail (const char *__assertion, const char *__file,
>       |             ^~~~~~~~~~~~~
> In file included from /<<PKGBUILDDIR>>/src/pfs/array2d.h:38,
>                  from /<<PKGBUILDDIR>>/src/pfs/pfs.h:45,
>                  from /<<PKGBUILDDIR>>/src/fileformat/pfsoutimgmagick.cpp:37:
> /<<PKGBUILDDIR>>/src/pfs/array2d.h: In member function ‘virtual const float& pfs::Array2DImpl::operator()(int, int) const’:
> /<<PKGBUILDDIR>>/src/pfs/array2d.h:178:9: error: ‘__assert_fail’ was not declared in this scope; did you mean ‘MagickCore::__assert_fail’?
>   178 |         assert( col >= 0 && col < cols );
>       |         ^~~~~~
> In file included from /usr/include/ImageMagick-6/magick/memory_.h:22,
>                  from /usr/include/ImageMagick-6/magick/MagickCore.h:125,
>                  from /usr/include/ImageMagick-6/Magick++/Include.h:45,
>                  from /usr/include/ImageMagick-6/Magick++.h:10,
>                  from /<<PKGBUILDDIR>>/src/fileformat/pfsoutimgmagick.cpp:32:
> /usr/include/assert.h:69:13: note: ‘MagickCore::__assert_fail’ declared here
>    69 | extern void __assert_fail (const char *__assertion, const char *__file,
>       |             ^~~~~~~~~~~~~
> In file included from /<<PKGBUILDDIR>>/src/pfs/array2d.h:38,
>                  from /<<PKGBUILDDIR>>/src/pfs/pfs.h:45,
>                  from /<<PKGBUILDDIR>>/src/fileformat/pfsoutimgmagick.cpp:37:
> /<<PKGBUILDDIR>>/src/pfs/array2d.h: In member function ‘virtual float& pfs::Array2DImpl::operator()(int)’:
> /<<PKGBUILDDIR>>/src/pfs/array2d.h:184:9: error: ‘__assert_fail’ was not declared in this scope; did you mean ‘MagickCore::__assert_fail’?
>   184 |         assert( index >= 0 && index < rows*cols );
>       |         ^~~~~~
> In file included from /usr/include/ImageMagick-6/magick/memory_.h:22,
>                  from /usr/include/ImageMagick-6/magick/MagickCore.h:125,
>                  from /usr/include/ImageMagick-6/Magick++/Include.h:45,
>                  from /usr/include/ImageMagick-6/Magick++.h:10,
>                  from /<<PKGBUILDDIR>>/src/fileformat/pfsoutimgmagick.cpp:32:
> /usr/include/assert.h:69:13: note: ‘MagickCore::__assert_fail’ declared here
>    69 | extern void __assert_fail (const char *__assertion, const char *__file,
>       |             ^~~~~~~~~~~~~
> In file included from /<<PKGBUILDDIR>>/src/pfs/array2d.h:38,
>                  from /<<PKGBUILDDIR>>/src/pfs/pfs.h:45,
>                  from /<<PKGBUILDDIR>>/src/fileformat/pfsoutimgmagick.cpp:37:
> /<<PKGBUILDDIR>>/src/pfs/array2d.h: In member function ‘virtual const float& pfs::Array2DImpl::operator()(int) const’:
> /<<PKGBUILDDIR>>/src/pfs/array2d.h:188:9: error: ‘__assert_fail’ was not declared in this scope; did you mean ‘MagickCore::__assert_fail’?
>   188 |         assert( index >= 0 && index <= rows*cols );
>       |         ^~~~~~
> In file included from /usr/include/ImageMagick-6/magick/memory_.h:22,
>                  from /usr/include/ImageMagick-6/magick/MagickCore.h:125,
>                  from /usr/include/ImageMagick-6/Magick++/Include.h:45,
>                  from /usr/include/ImageMagick-6/Magick++.h:10,
>                  from /<<PKGBUILDDIR>>/src/fileformat/pfsoutimgmagick.cpp:32:
> /usr/include/assert.h:69:13: note: ‘MagickCore::__assert_fail’ declared here
>    69 | extern void __assert_fail (const char *__assertion, const char *__file,
>       |             ^~~~~~~~~~~~~
> In file included from /<<PKGBUILDDIR>>/src/pfs/array2d.h:38,
>                  from /<<PKGBUILDDIR>>/src/pfs/pfs.h:45,
>                  from /<<PKGBUILDDIR>>/src/fileformat/pfsoutimgmagick.cpp:37:
> /<<PKGBUILDDIR>>/src/pfs/array2d.h: In function ‘void pfs::copyArray(const pfs::Array2D*, pfs::Array2D*)’:
> /<<PKGBUILDDIR>>/src/pfs/array2d.h:223:7: error: ‘__assert_fail’ was not declared in this scope; did you mean ‘MagickCore::__assert_fail’?
>   223 |       assert( from->getRows() == to->getRows() );
>       |       ^~~~~~
> In file included from /usr/include/ImageMagick-6/magick/memory_.h:22,
>                  from /usr/include/ImageMagick-6/magick/MagickCore.h:125,
>                  from /usr/include/ImageMagick-6/Magick++/Include.h:45,
>                  from /usr/include/ImageMagick-6/Magick++.h:10,
>                  from /<<PKGBUILDDIR>>/src/fileformat/pfsoutimgmagick.cpp:32:
> /usr/include/assert.h:69:13: note: ‘MagickCore::__assert_fail’ declared here
>    69 | extern void __assert_fail (const char *__assertion, const char *__file,
>       |             ^~~~~~~~~~~~~
> In file included from /<<PKGBUILDDIR>>/src/pfs/array2d.h:38,
>                  from /<<PKGBUILDDIR>>/src/pfs/pfs.h:45,
>                  from /<<PKGBUILDDIR>>/src/fileformat/pfsoutimgmagick.cpp:37:
> /<<PKGBUILDDIR>>/src/pfs/array2d.h: In function ‘void pfs::multiplyArray(pfs::Array2D*, const pfs::Array2D*, const pfs::Array2D*)’:
> /<<PKGBUILDDIR>>/src/pfs/array2d.h:253:7: error: ‘__assert_fail’ was not declared in this scope; did you mean ‘MagickCore::__assert_fail’?
>   253 |       assert( x->getRows() == y->getRows() );
>       |       ^~~~~~
> In file included from /usr/include/ImageMagick-6/magick/memory_.h:22,
>                  from /usr/include/ImageMagick-6/magick/MagickCore.h:125,
>                  from /usr/include/ImageMagick-6/Magick++/Include.h:45,
>                  from /usr/include/ImageMagick-6/Magick++.h:10,
>                  from /<<PKGBUILDDIR>>/src/fileformat/pfsoutimgmagick.cpp:32:
> /usr/include/assert.h:69:13: note: ‘MagickCore::__assert_fail’ declared here
>    69 | extern void __assert_fail (const char *__assertion, const char *__file,
>       |             ^~~~~~~~~~~~~
> make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> make[4]: *** [src/fileformat/CMakeFiles/pfsoutimgmagick.dir/build.make:66: src/fileformat/CMakeFiles/pfsoutimgmagick.dir/pfsoutimgmagick.cpp.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/08/02/pfstools_2.1.0-5_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!

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 Pkg-phototools-devel mailing list