Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebulding the native module with g++14 on Ubuntu 24.04 fails #181

Closed
mmomtchev opened this issue Jul 7, 2024 · 0 comments · Fixed by #200
Closed

Rebulding the native module with g++14 on Ubuntu 24.04 fails #181

mmomtchev opened this issue Jul 7, 2024 · 0 comments · Fixed by #200

Comments

@mmomtchev
Copy link
Owner

There are a number of conan packages which fail to build when using g++14:

OpenEXR:
AcademySoftwareFoundation/openexr#1264


/home/runner/.cache/hadron/p/b/opene4c6f0bca3427b/b/src/src/bin/exrcheck/main.cpp: In function ‘bool exrCheck(const char*, bool, bool, bool, bool)’:
/home/runner/.cache/hadron/p/b/opene4c6f0bca3427b/b/src/src/bin/exrcheck/main.cpp:59:13: error: ‘uintptr_t’ does not name a type
   59 |       const uintptr_t kMaxSize = uintptr_t(-1) / 4;
      |             ^~~~~~~~~
/home/runner/.cache/hadron/p/b/opene4c6f0bca3427b/b/src/src/bin/exrcheck/main.cpp:16:1: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   15 | #include <vector>
  +++ |+#include <cstdint>
   16 | 
/home/runner/.cache/hadron/p/b/opene4c6f0bca3427b/b/src/src/bin/exrcheck/main.cpp:60:45: error: ‘kMaxSize’ was not declared in this scope
   60 |       if (length < 0 || length > (streampos)kMaxSize)
      |                                             ^~~~~~~~
gmake[2]: *** [src/bin/exrcheck/CMakeFiles/exrcheck.dir/build.make:76: src/bin/exrcheck/CMakeFiles/exrcheck.dir/main.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:813: src/bin/exrcheck/CMakeFiles/exrcheck.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

openexr/3.1.5: ERROR: 
Package '5b628c588a341443b0bd9c4318a5e53efde0a445' build failed

libheif:

/home/runner/.cache/hadron/p/b/libhe5d6e9dc7a56bb/b/src/libheif/heif_colorconversion.cc: In member function ‘virtual std::shared_ptr<heif::HeifPixelImage> Op_mono_to_RGB24_32::convert_colorspace(const std::shared_ptr<const heif::HeifPixelImage>&, const heif::ColorState&, const heif::ColorConversionOptions&)’:
/home/runner/.cache/hadron/p/b/libhe5d6e9dc7a56bb/b/src/libheif/heif_colorconversion.cc:1898:71: error: ‘in_a’ may be used uninitialized [-Werror=maybe-uninitialized]
 1898 |         out_p[y * out_p_stride + 4 * x + 3] = in_a[x + y * in_a_stride];
      |                                                                       ^
/home/runner/.cache/hadron/p/b/libhe5d6e9dc7a56bb/b/src/libheif/heif_colorconversion.cc:1869:26: note: ‘in_a’ was declared here
 1869 |   const uint8_t* in_y, * in_a;
      |                          ^~~~
cc1plus: all warnings being treated as errors
gmake[2]: *** [libheif/CMakeFiles/heif.dir/build.make:202: libheif/CMakeFiles/heif.dir/heif_colorconversion.cc.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:98: libheif/CMakeFiles/heif.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

libheif/1.13.0: ERROR: 
Package '75060ec37e225d6b9c52d0a01fbc5ac9f1479fce' build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant