Latest code fails to build on Fedora 39

Hi Alberto,

Got your latest changes in master and when building got the following error below. I guess

#include <array>

is missing.

[ 12%] Building CXX object rtengine/CMakeFiles/rtengine.dir/image16.cc.o
[ 13%] Building CXX object rtengine/CMakeFiles/rtengine.dir/image8.cc.o
In file included from /data/soft/art/rtengine/colortemp.cc:19:
/data/soft/art/rtengine/colortemp.h:87:27: error: field ‘mult_’ has incomplete type ‘std::array<double, 3>’
   87 |     std::array<double, 3> mult_;
      |                           ^~~~~
In file included from /usr/include/c++/13/bits/stl_map.h:63,
                 from /usr/include/c++/13/map:63,
                 from /data/soft/art/rtengine/colortemp.h:24:
/usr/include/c++/13/tuple:2005:45: note: declaration of ‘struct std::array<double, 3>’
 2005 |   template<typename _Tp, size_t _Nm> struct array;
      |                                             ^~~~~
make[2]: *** [rtengine/CMakeFiles/rtengine.dir/build.make:272: rtengine/CMakeFiles/rtengine.dir/colortemp.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:164: rtengine/CMakeFiles/rtengine.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Thanks! If possible though please consider using bitbucket for bug reports, it’s easier to lose track of issues reported here…

Done: https://bitbucket.org/agriggio/art/issues/322/compilation-fails-on-fedora-39

1 Like