Bug#1075295: mrcal: ftbfs with GCC-14
Matthias Klose
doko at debian.org
Wed Jul 3 13:37:15 BST 2024
Package: src:mrcal
Version: 2.4.1-1
Severity: important
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-14
[This bug is targeted to the upcoming trixie release]
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-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.
The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/mrcal_2.4.1-1_unstable_gccexp.log
The last lines of the build log are at the end of this report.
To build with GCC 14, either set CC=gcc-14 CXX=g++-14 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-14/porting_to.html
[...]
< state_index_calobject_warp.docstring sed 's/\\/\\\\/g; s/"/\\"/g; s/^/"/; s/$/\\n"/;' > state_index_calobject_warp.docstring.h
< state_index_extrinsics.docstring sed 's/\\/\\\\/g; s/"/\\"/g; s/^/"/; s/$/\\n"/;' > state_index_extrinsics.docstring.h
< state_index_frames.docstring sed 's/\\/\\\\/g; s/"/\\"/g; s/^/"/; s/$/\\n"/;' > state_index_frames.docstring.h
< state_index_intrinsics.docstring sed 's/\\/\\\\/g; s/"/\\"/g; s/^/"/; s/$/\\n"/;' > state_index_intrinsics.docstring.h
< state_index_points.docstring sed 's/\\/\\\\/g; s/"/\\"/g; s/^/"/; s/$/\\n"/;' > state_index_points.docstring.h
< supported_lensmodels.docstring sed 's/\\/\\\\/g; s/"/\\"/g; s/^/"/; s/$/\\n"/;' > supported_lensmodels.docstring.h
< unpack_state.docstring sed 's/\\/\\\\/g; s/"/\\"/g; s/^/"/; s/$/\\n"/;' > unpack_state.docstring.h
./minimath/minimath_generate.pl > minimath/minimath_generated.h.tmp && mv minimath/minimath_generated.h.tmp minimath/minimath_generated.h
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mrcal-opencv.o mrcal-opencv.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mrcal-image.o mrcal-image.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o poseutils.o poseutils.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o poseutils-opencv.o poseutils-opencv.c
g++ -Wall -Wextra -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++0x -c -o poseutils-uses-autodiff.o poseutils-uses-autodiff.cc
g++ -Wall -Wextra -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++0x -c -o triangulation.o triangulation.cc
g++ -Wall -Wextra -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++0x -c -o cahvore.o cahvore.cc
re2c cameramodel-parser.re > cameramodel-parser_GENERATED.c.tmp && mv cameramodel-parser_GENERATED.c.tmp cameramodel-parser_GENERATED.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mrcal.o mrcal.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o stereo.o stereo.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -fno-fast-math -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o cameramodel-parser_GENERATED.o cameramodel-parser_GENERATED.c
python3 mrcal-genpywrap.py > mrcal-npsp-pywrap-GENERATED.c.tmp && mv mrcal-npsp-pywrap-GENERATED.c.tmp mrcal-npsp-pywrap-GENERATED.c
python3 poseutils-genpywrap.py > poseutils-npsp-pywrap-GENERATED.c.tmp && mv poseutils-npsp-pywrap-GENERATED.c.tmp poseutils-npsp-pywrap-GENERATED.c
python3 triangulation-genpywrap.py > triangulation-npsp-pywrap-GENERATED.c.tmp && mv triangulation-npsp-pywrap-GENERATED.c.tmp triangulation-npsp-pywrap-GENERATED.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -Wdate-time -D_FORTIFY_SOURCE=2 -c -o test-gradients.o test-gradients.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -Wdate-time -D_FORTIFY_SOURCE=2 -c -o test/test-cahvor.o test/test-cahvor.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -Wdate-time -D_FORTIFY_SOURCE=2 -c -o test/test-lensmodel-string-manipulation.o test/test-lensmodel-string-manipulation.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -Wdate-time -D_FORTIFY_SOURCE=2 -c -o test/test-parser-cameramodel.o test/test-parser-cameramodel.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-cast-function-type -Wsign-compare -DNDEBUG -g -fwrapv -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -I/usr/include/python3.11 -I/usr/lib/python3/dist-packages/numpy/core/include -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mrcal-pywrap.o mrcal-pywrap.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-array-bounds -Wno-cast-function-type -Wsign-compare -DNDEBUG -g -fwrapv -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -I/usr/include/python3.11 -I/usr/lib/python3/dist-packages/numpy/core/include -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mrcal-npsp-pywrap-GENERATED.o mrcal-npsp-pywrap-GENERATED.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-array-bounds -Wno-cast-function-type -Wsign-compare -DNDEBUG -g -fwrapv -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -I/usr/include/python3.11 -I/usr/lib/python3/dist-packages/numpy/core/include -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -Wdate-time -D_FORTIFY_SOURCE=2 -c -o poseutils-npsp-pywrap-GENERATED.o poseutils-npsp-pywrap-GENERATED.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-array-bounds -Wno-cast-function-type -Wsign-compare -DNDEBUG -g -fwrapv -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -I/usr/include/python3.11 -I/usr/lib/python3/dist-packages/numpy/core/include -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -Wdate-time -D_FORTIFY_SOURCE=2 -c -o triangulation-npsp-pywrap-GENERATED.o triangulation-npsp-pywrap-GENERATED.c
g++ -Wl,-z,relro -Wl,-z,now -Wl,--default-symver -shared -fPIC -Wl,-soname,libmrcal.so.4 mrcal.o mrcal-opencv.o mrcal-image.o stereo.o poseutils.o poseutils-opencv.o poseutils-uses-autodiff.o triangulation.o cahvore.o cameramodel-parser_GENERATED.o -ldogleg -lfreeimage -o libmrcal.so.4.0
ln -fs libmrcal.so.4.0 libmrcal.so
ln -fs libmrcal.so.4.0 libmrcal.so.4
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -lpython3.11 -Wl,-rpath,'$ORIGIN'/.. -L/<<PKGBUILDDIR>> -Wl,-z,relro -Wl,-z,now mrcal-pywrap.o -lmrcal -lsuitesparseconfig -o mrcal/_mrcal.cpython-311-x86_64-linux-gnu.so
g++ -Wl,-rpath,'$ORIGIN'/ -Wl,-z,relro -Wl,-z,now test-gradients.o libmrcal.so -ldogleg -lfreeimage -o test-gradients
g++ -Wl,-rpath,'$ORIGIN'/.. -Wl,-z,relro -Wl,-z,now test/test-cahvor.o libmrcal.so -ldogleg -lfreeimage -o test/test-cahvor
g++ -Wl,-rpath,'$ORIGIN'/.. -Wl,-z,relro -Wl,-z,now test/test-lensmodel-string-manipulation.o libmrcal.so -ldogleg -lfreeimage -o test/test-lensmodel-string-manipulation
g++ -Wl,-rpath,'$ORIGIN'/.. -Wl,-z,relro -Wl,-z,now test/test-parser-cameramodel.o libmrcal.so -ldogleg -lfreeimage -o test/test-parser-cameramodel
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -lpython3.11 -Wl,-rpath,'$ORIGIN'/.. -L/<<PKGBUILDDIR>> -Wl,-z,relro -Wl,-z,now triangulation-npsp-pywrap-GENERATED.o -lmrcal -o mrcal/_triangulation_npsp.cpython-311-x86_64-linux-gnu.so
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -lpython3.11 -Wl,-rpath,'$ORIGIN'/.. -L/<<PKGBUILDDIR>> -Wl,-z,relro -Wl,-z,now poseutils-npsp-pywrap-GENERATED.o -lmrcal -o mrcal/_poseutils_npsp.cpython-311-x86_64-linux-gnu.so
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -lpython3.11 -Wl,-rpath,'$ORIGIN'/.. -L/<<PKGBUILDDIR>> -Wl,-z,relro -Wl,-z,now mrcal-npsp-pywrap-GENERATED.o -lmrcal -o mrcal/_mrcal_npsp.cpython-311-x86_64-linux-gnu.so
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make -j8 "INSTALL=install --strip-program=true"
make[2]: Entering directory '/<<PKGBUILDDIR>>'
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-cast-function-type -fno-strict-overflow -Wsign-compare -DNDEBUG -g -Wall -fPIC -I/usr/include/python3.12 -I/usr/lib/python3/dist-packages/numpy/core/include -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mrcal-pywrap.o mrcal-pywrap.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-array-bounds -Wno-cast-function-type -fno-strict-overflow -Wsign-compare -DNDEBUG -g -Wall -fPIC -I/usr/include/python3.12 -I/usr/lib/python3/dist-packages/numpy/core/include -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mrcal-npsp-pywrap-GENERATED.o mrcal-npsp-pywrap-GENERATED.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-array-bounds -Wno-cast-function-type -fno-strict-overflow -Wsign-compare -DNDEBUG -g -Wall -fPIC -I/usr/include/python3.12 -I/usr/lib/python3/dist-packages/numpy/core/include -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -Wdate-time -D_FORTIFY_SOURCE=2 -c -o poseutils-npsp-pywrap-GENERATED.o poseutils-npsp-pywrap-GENERATED.c
cc -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection --std=gnu99 -I/usr/include/suitesparse -Wno-array-bounds -Wno-cast-function-type -fno-strict-overflow -Wsign-compare -DNDEBUG -g -Wall -fPIC -I/usr/include/python3.12 -I/usr/lib/python3/dist-packages/numpy/core/include -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wno-missing-braces -MMD -MP -g -fno-omit-frame-pointer -DMRBUILD_VERSION='"2.4.1-1"' -Wdate-time -D_FORTIFY_SOURCE=2 -c -o triangulation-npsp-pywrap-GENERATED.o triangulation-npsp-pywrap-GENERATED.c
In file included from /usr/include/python3.12/Python.h:44,
from mrcal-pywrap.c:12:
/usr/include/python3.12/object.h:142:9: error: initialization of ‘long int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
142 | (type) \
| ^
mrcal-pywrap.c:679:6: note: in expansion of macro ‘PyObject_HEAD_INIT’
679 | PyObject_HEAD_INIT(NULL)
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.12/object.h:142:9: note: (near initialization for ‘CHOLMOD_factorization_type.ob_base.ob_size’)
142 | (type) \
| ^
mrcal-pywrap.c:679:6: note: in expansion of macro ‘PyObject_HEAD_INIT’
679 | PyObject_HEAD_INIT(NULL)
| ^~~~~~~~~~~~~~~~~~
make[2]: *** [/usr/include/mrbuild/Makefile.common.footer:153: mrcal-pywrap.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make[1]: *** [debian/rules:14: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
More information about the debian-science-maintainers
mailing list