[Debian-astro-maintainers] Bug#997214: cpl-plugin-fors: FTBFS: fors_flat_normalise.cc:582:23: error: aggregate ‘std::stringstream ss’ has incomplete type and cannot be defined

Lucas Nussbaum lucas at debian.org
Sat Oct 23 20:10:21 BST 2021


Source: cpl-plugin-fors
Version: 5.5.6+dfsg-4
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

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


Relevant part (hopefully):
> /bin/bash ../libtool  --tag=CXX   --mode=compile g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../mosca/hdrl -I../mosca/libmosca -I../irplib -I/usr/include/cpl -I/usr/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o fors_img_science_impl.lo fors_img_science_impl.cc
> In file included from ../mosca/libmosca/vector_utils.h:178,
>                  from fors_flat_normalise.cc:37:
> ../mosca/libmosca/vector_utils.tcc: In member function ‘void mosca::vector_polynomial::fit(const std::vector<T>&, std::vector<T>&, const std::vector<bool>&, size_t&)’:
> ../mosca/libmosca/vector_utils.tcc:371:13: warning: ‘cpl_polynomial* cpl_polynomial_fit_1d_create(const cpl_vector*, const cpl_vector*, cpl_size, double*)’ is deprecated [-Wdeprecated-declarations]
>   370 |     m_pol_fit = cpl_polynomial_fit_1d_create
>       |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   371 |             (xpos, filtered_values, polyorder, NULL);
>       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/cpl_image_resample.h:33,
>                  from /usr/include/cpl_image.h:31,
>                  from /usr/include/cpl.h:28,
>                  from ./fors_flat_normalise.h:31,
>                  from fors_flat_normalise.cc:34:
> /usr/include/cpl_polynomial.h:111:18: note: declared here
>   111 | cpl_polynomial * cpl_polynomial_fit_1d_create(const cpl_vector *,
>       |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from ../mosca/libmosca/image_spline_fit.h:47,
>                  from fors_flat_normalise.cc:38:
> ../mosca/libmosca/image_spline_fit.tcc: In function ‘void mosca::image_pol_1d_fit(mosca::image&, int, double)’:
> ../mosca/libmosca/image_spline_fit.tcc:255:13: warning: ‘cpl_polynomial* cpl_polynomial_fit_1d_create(const cpl_vector*, const cpl_vector*, cpl_size, double*)’ is deprecated [-Wdeprecated-declarations]
>   254 |     cpl_polynomial * pol_fit = cpl_polynomial_fit_1d_create
>       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   255 |             (xpos_final, values_final, polyorder, NULL);
>       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/cpl_image_resample.h:33,
>                  from /usr/include/cpl_image.h:31,
>                  from /usr/include/cpl.h:28,
>                  from ./fors_flat_normalise.h:31,
>                  from fors_flat_normalise.cc:34:
> /usr/include/cpl_polynomial.h:111:18: note: declared here
>   111 | cpl_polynomial * cpl_polynomial_fit_1d_create(const cpl_vector *,
>       |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> libtool: compile:  g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../mosca/hdrl -I../mosca/libmosca -I../irplib -I/usr/include/cpl -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c fors_img_science_impl.cc  -fPIC -DPIC -o .libs/fors_img_science_impl.o
> fors_flat_normalise.cc: In function ‘void dump_vector(const std::vector<float>&)’:
> fors_flat_normalise.cc:582:23: error: aggregate ‘std::stringstream ss’ has incomplete type and cannot be defined
>   582 |     std::stringstream ss;
>       |                       ^~
> /bin/bash ../libtool  --tag=CXX   --mode=compile g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../mosca/hdrl -I../mosca/libmosca -I../irplib -I/usr/include/cpl -I/usr/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o fors_img_screen_flat_impl.lo fors_img_screen_flat_impl.cc
> In file included from ../mosca/libmosca/profile_providers.h:126,
>                  from ../mosca/libmosca/image_normalisation.tcc:36,
>                  from ../mosca/libmosca/image_normalisation.h:60,
>                  from fors_flat_normalise.cc:39:
> ../mosca/libmosca/profile_providers.tcc: In instantiation of ‘void mosca::profile_spatial_fitter::fit(std::vector<T>&, std::vector<T>&) const [with T = float]’:
> ../mosca/libmosca/profile_providers.tcc:141:15:   required from ‘mosca::profile_provider_base<T>::profile_provider_base(const mosca::image&, const mosca::image&, profile_smootherType, FitterType, mosca::axis, mosca::axis) [with profile_smootherType = mosca::profile_smoother; FitterType = mosca::profile_spatial_fitter; T = float]’
> ../mosca/libmosca/profile_providers.tcc:203:47:   required from ‘mosca::spatial_profile_provider<T>::spatial_profile_provider(const mosca::image&, const mosca::image&, int, int, double) [with T = float]’
> ../mosca/libmosca/image_normalisation.tcc:64:33:   required from ‘mosca::image mosca::image_normalise(const mosca::image&, const mosca::image&, int, int, int, int, double, std::vector<T>&, std::vector<T>&) [with T = float]’
> fors_flat_normalise.cc:238:55:   required from here
> ../mosca/libmosca/profile_providers.tcc:62:82: warning: unused parameter ‘weight_profile’ [-Wunused-parameter]
>    62 | void mosca::profile_spatial_fitter::fit(std::vector<T>& profile, std::vector<T>& weight_profile) const{
>       |                                                                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
> libtool: compile:  g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../mosca/hdrl -I../mosca/libmosca -I../irplib -I/usr/include/cpl -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c fors_img_screen_flat_impl.cc  -fPIC -DPIC -o .libs/fors_img_screen_flat_impl.o
> In file included from ../mosca/libmosca/mosca_image.h:138,
>                  from ./fors_flat_normalise.h:32,
>                  from fors_flat_normalise.cc:34:
> ../mosca/libmosca/mosca_image.tcc: In instantiation of ‘std::vector<T> mosca::image::collapse(mosca::axis, collapseFuncType) const [with T = float; collapseOperatorType = mosca::image::collapse<float>(mosca::axis) const::<lambda(const cpl_image*, int)>]’:
> ../mosca/libmosca/mosca_image.tcc:126:23:   required from ‘std::vector<T> mosca::image::collapse(mosca::axis) const [with T = float]’
> ../mosca/libmosca/profile_providers.tcc:113:38:   required from ‘mosca::profile_provider_base<T>::profile_provider_base(const mosca::image&, const mosca::image&, profile_smootherType, FitterType, mosca::axis, mosca::axis) [with profile_smootherType = mosca::profile_smoother; FitterType = mosca::profile_spatial_fitter; T = float]’
> ../mosca/libmosca/profile_providers.tcc:203:47:   required from ‘mosca::spatial_profile_provider<T>::spatial_profile_provider(const mosca::image&, const mosca::image&, int, int, double) [with T = float]’
> ../mosca/libmosca/image_normalisation.tcc:64:33:   required from ‘mosca::image mosca::image_normalise(const mosca::image&, const mosca::image&, int, int, int, int, double, std::vector<T>&, std::vector<T>&) [with T = float]’
> fors_flat_normalise.cc:238:55:   required from here
> ../mosca/libmosca/mosca_image.tcc:163:25: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘cpl_size’ {aka ‘long long int’} [-Wsign-compare]
>   163 |     for(size_t i = 0; i < size; i++)
>       |                       ~~^~~~~~
> In file included from ../mosca/libmosca/vector_utils.h:178,
>                  from fors_flat_normalise.cc:37:
> ../mosca/libmosca/vector_utils.tcc: In instantiation of ‘void mosca::vector_polynomial::fit(const std::vector<T>&, std::vector<T>&, const std::vector<bool>&, size_t&) [with T = float; size_t = long unsigned int]’:
> ../mosca/libmosca/vector_utils.tcc:319:8:   required from ‘void mosca::vector_polynomial::fit(std::vector<T>&, const std::vector<bool>&, size_t&) [with T = float; size_t = long unsigned int]’
> ../mosca/libmosca/profile_providers.tcc:74:18:   required from ‘void mosca::profile_spatial_fitter::fit(std::vector<T>&, std::vector<T>&) const [with T = float]’
> ../mosca/libmosca/profile_providers.tcc:141:15:   required from ‘mosca::profile_provider_base<T>::profile_provider_base(const mosca::image&, const mosca::image&, profile_smootherType, FitterType, mosca::axis, mosca::axis) [with profile_smootherType = mosca::profile_smoother; FitterType = mosca::profile_spatial_fitter; T = float]’
> ../mosca/libmosca/profile_providers.tcc:203:47:   required from ‘mosca::spatial_profile_provider<T>::spatial_profile_provider(const mosca::image&, const mosca::image&, int, int, double) [with T = float]’
> ../mosca/libmosca/image_normalisation.tcc:64:33:   required from ‘mosca::image mosca::image_normalise(const mosca::image&, const mosca::image&, int, int, int, int, double, std::vector<T>&, std::vector<T>&) [with T = float]’
> fors_flat_normalise.cc:238:55:   required from here
> ../mosca/libmosca/vector_utils.tcc:360:34: warning: comparison of integer expressions of different signedness: ‘cpl_size’ {aka ‘long long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
>   360 |     if(cpl_vector_get_size(xpos) < polyorder + 1)
>       |        ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> ../mosca/libmosca/vector_utils.tcc:371:13: warning: ‘cpl_polynomial* cpl_polynomial_fit_1d_create(const cpl_vector*, const cpl_vector*, cpl_size, double*)’ is deprecated [-Wdeprecated-declarations]
>   370 |     m_pol_fit = cpl_polynomial_fit_1d_create
>       |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   371 |             (xpos, filtered_values, polyorder, NULL);
>       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/cpl_image_resample.h:33,
>                  from /usr/include/cpl_image.h:31,
>                  from /usr/include/cpl.h:28,
>                  from ./fors_flat_normalise.h:31,
>                  from fors_flat_normalise.cc:34:
> /usr/include/cpl_polynomial.h:111:18: note: declared here
>   111 | cpl_polynomial * cpl_polynomial_fit_1d_create(const cpl_vector *,
>       |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from ../mosca/libmosca/vector_utils.h:178,
>                  from fors_flat_normalise.cc:37:
> ../mosca/libmosca/vector_utils.tcc:371:13: warning: ‘cpl_polynomial* cpl_polynomial_fit_1d_create(const cpl_vector*, const cpl_vector*, cpl_size, double*)’ is deprecated [-Wdeprecated-declarations]
>   370 |     m_pol_fit = cpl_polynomial_fit_1d_create
>       |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   371 |             (xpos, filtered_values, polyorder, NULL);
>       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/cpl_image_resample.h:33,
>                  from /usr/include/cpl_image.h:31,
>                  from /usr/include/cpl.h:28,
>                  from ./fors_flat_normalise.h:31,
>                  from fors_flat_normalise.cc:34:
> /usr/include/cpl_polynomial.h:111:18: note: declared here
>   111 | cpl_polynomial * cpl_polynomial_fit_1d_create(const cpl_vector *,
>       |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from ../mosca/libmosca/vector_utils.h:178,
>                  from fors_flat_normalise.cc:37:
> ../mosca/libmosca/vector_utils.tcc:371:13: warning: ‘cpl_polynomial* cpl_polynomial_fit_1d_create(const cpl_vector*, const cpl_vector*, cpl_size, double*)’ is deprecated [-Wdeprecated-declarations]
>   370 |     m_pol_fit = cpl_polynomial_fit_1d_create
>       |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   371 |             (xpos, filtered_values, polyorder, NULL);
>       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/cpl_image_resample.h:33,
>                  from /usr/include/cpl_image.h:31,
>                  from /usr/include/cpl.h:28,
>                  from ./fors_flat_normalise.h:31,
>                  from fors_flat_normalise.cc:34:
> /usr/include/cpl_polynomial.h:111:18: note: declared here
>   111 | cpl_polynomial * cpl_polynomial_fit_1d_create(const cpl_vector *,
>       |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> make[4]: *** [Makefile:800: fors_flat_normalise.lo] Error 1


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/cpl-plugin-fors_5.5.6+dfsg-4_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-astro-maintainers mailing list