[3dprinter-general] Bug#1037614: cura-engine: ftbfs with GCC-13

Matthias Klose doko at debian.org
Wed Jun 14 10:22:46 BST 2023


Package: src:cura-engine
Version: 1:4.13.0-1
Severity: normal
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-13

[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-13/g++-13, but succeeds to build with gcc-12/g++-12. 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/2023/05/22/logs/cura-engine_4.13.0-1_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 13, either set CC=gcc-13 CXX=g++-13 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-13/porting_to.html

[...]
   27 | inline uint64_t ceil_divide_signed(const int64_t dividend, const int64_t divisor) //!< Return dividend divided by divisor rounded up towards positive infinity.
      |        ^~~~~~~~
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:27:8: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:31:8: error: ‘uint64_t’ does not name a type
   31 | inline uint64_t floor_divide_signed(const int64_t dividend, const int64_t divisor) //!< Return dividend divided by divisor rounded down towards negative infinity.
      |        ^~~~~~~~
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:31:8: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:35:8: error: ‘uint64_t’ does not name a type
   35 | inline uint64_t round_divide(const uint64_t dividend, const uint64_t divisor) //!< Return dividend divided by divisor rounded to the nearest integer
      |        ^~~~~~~~
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:35:8: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:39:8: error: ‘uint64_t’ does not name a type
   39 | inline uint64_t round_up_divide(const uint64_t dividend, const uint64_t divisor) //!< Return dividend divided by divisor rounded to the nearest integer
      |        ^~~~~~~~
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:39:8: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
make[3]: *** [CMakeFiles/_CuraEngine.dir/build.make:955: CMakeFiles/_CuraEngine.dir/src/settings/AdaptiveLayerHeights.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /<<PKGBUILDDIR>>/src/settings/types/Angle.h:8,
                 from /<<PKGBUILDDIR>>/src/settings/Settings.cpp:14:
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:22:8: error: ‘uint64_t’ does not name a type
   22 | inline uint64_t round_divide_signed(const int64_t dividend, const int64_t divisor) //!< Return dividend divided by divisor rounded to the nearest integer
      |        ^~~~~~~~
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:8:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
    7 | #include <cmath>
  +++ |+#include <cstdint>
    8 | 
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:27:8: error: ‘uint64_t’ does not name a type
   27 | inline uint64_t ceil_divide_signed(const int64_t dividend, const int64_t divisor) //!< Return dividend divided by divisor rounded up towards positive infinity.
      |        ^~~~~~~~
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:27:8: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:31:8: error: ‘uint64_t’ does not name a type
   31 | inline uint64_t floor_divide_signed(const int64_t dividend, const int64_t divisor) //!< Return dividend divided by divisor rounded down towards negative infinity.
      |        ^~~~~~~~
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:31:8: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:35:8: error: ‘uint64_t’ does not name a type
   35 | inline uint64_t round_divide(const uint64_t dividend, const uint64_t divisor) //!< Return dividend divided by divisor rounded to the nearest integer
      |        ^~~~~~~~
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:35:8: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:39:8: error: ‘uint64_t’ does not name a type
   39 | inline uint64_t round_up_divide(const uint64_t dividend, const uint64_t divisor) //!< Return dividend divided by divisor rounded to the nearest integer
      |        ^~~~~~~~
/<<PKGBUILDDIR>>/src/settings/types/../../utils/math.h:39:8: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
make[3]: *** [CMakeFiles/_CuraEngine.dir/build.make:997: CMakeFiles/_CuraEngine.dir/src/settings/Settings.cpp.o] Error 1
/<<PKGBUILDDIR>>/src/infill/ImageBasedDensityProvider.cpp: In constructor ‘cura::ImageBasedDensityProvider::ImageBasedDensityProvider(std::string, cura::AABB)’:
/<<PKGBUILDDIR>>/src/infill/ImageBasedDensityProvider.cpp:24:18: warning: ‘img_z’ may be used uninitialized [-Wmaybe-uninitialized]
   24 |     image_size = Point3(img_x, img_y, img_z);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/infill/ImageBasedDensityProvider.cpp:22:23: note: ‘img_z’ declared here
   22 |     int img_x, img_y, img_z; // stbi requires pointer to int rather than to coord_t
      |                       ^~~~~
/<<PKGBUILDDIR>>/src/infill/ImageBasedDensityProvider.cpp:24:18: warning: ‘img_y’ may be used uninitialized [-Wmaybe-uninitialized]
   24 |     image_size = Point3(img_x, img_y, img_z);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/infill/ImageBasedDensityProvider.cpp:22:16: note: ‘img_y’ declared here
   22 |     int img_x, img_y, img_z; // stbi requires pointer to int rather than to coord_t
      |                ^~~~~
/<<PKGBUILDDIR>>/src/infill/ImageBasedDensityProvider.cpp:24:18: warning: ‘img_x’ may be used uninitialized [-Wmaybe-uninitialized]
   24 |     image_size = Point3(img_x, img_y, img_z);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/infill/ImageBasedDensityProvider.cpp:22:9: note: ‘img_x’ declared here
   22 |     int img_x, img_y, img_z; // stbi requires pointer to int rather than to coord_t
      |         ^~~~~
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:159: CMakeFiles/_CuraEngine.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:169: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:10: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the 3dprinter-general mailing list