[Debian-astro-maintainers] Bug#997195: cpl-plugin-vimos: FTBFS: vimos_flat_normalise.cc:479:23: error: aggregate ‘std::stringstream ss’ has incomplete type and cannot be defined
Lucas Nussbaum
lucas at debian.org
Sat Oct 23 20:10:26 BST 2021
Source: cpl-plugin-vimos
Version: 4.1.1+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.. -D_XOPEN_SOURCE -I../casu/src -I../mosca/hdrl -I../mosca/libmosca -I../vimos -I../casu/src -I../mosca/libmosca -I../libpil/pil -I../libpil/kazlib -I../external/libwcs -I../irplib -I/usr/include/cpl -I/usr/include -I/usr/include/cext -I/usr/include -I/usr/include/cfitsio -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o vimos_calib_impl.lo vimos_calib_impl.cc
> libtool: compile: g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -D_XOPEN_SOURCE -I../casu/src -I../mosca/hdrl -I../mosca/libmosca -I../vimos -I../casu/src -I../mosca/libmosca -I../libpil/pil -I../libpil/kazlib -I../external/libwcs -I../irplib -I/usr/include/cpl -I/usr/include -I/usr/include/cext -I/usr/include -I/usr/include/cfitsio -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c vimos_calib_impl.cc -fPIC -DPIC -o .libs/vimos_calib_impl.o
> moses.c: In function ‘mos_wavelength_calibration_raw’:
> moses.c:6424:19: warning: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
> 6424 | have_it = cpl_calloc(ny, sizeof(int));
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/cpl.h:45,
> from ./fors_tools.h:31,
> from moses.c:39:
> /usr/include/cpl_memory.h:35:7: note: in a call to allocation function ‘cpl_calloc’ declared here
> 35 | void *cpl_calloc(size_t, size_t) CPL_ATTR_CALLOC;
> | ^~~~~~~~~~
> In file included from ../mosca/libmosca/vector_utils.h:178,
> from vimos_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 vimos_flat_normalise.h:31,
> from vimos_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 vimos_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 vimos_flat_normalise.h:31,
> from vimos_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 *,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> vimos_flat_normalise.cc: In function ‘void dump_vector(const std::vector<float>&)’:
> vimos_flat_normalise.cc:479:23: error: aggregate ‘std::stringstream ss’ has incomplete type and cannot be defined
> 479 | std::stringstream ss;
> | ^~
> In file included from ../mosca/libmosca/vector_utils.h:178,
> from vimos_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]’
> ../mosca/libmosca/image_normalisation.tcc:84:31: required from ‘mosca::image mosca::image_normalise_spa_local(const mosca::image&, const mosca::image&, int, int, int, int, double, bool, std::vector<T>&, std::vector<T>&) [with T = float]’
> vimos_flat_normalise.cc:252:65: required from here
> ../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 vimos_flat_normalise.h:31,
> from vimos_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 vimos_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 vimos_flat_normalise.h:31,
> from vimos_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 vimos_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 vimos_flat_normalise.h:31,
> from vimos_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:783: vimos_flat_normalise.lo] Error 1
The full build log is available from:
http://qa-logs.debian.net/2021/10/23/cpl-plugin-vimos_4.1.1+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