Created attachment 886769 [details] build_log Blender fails compilation on musl however, I have compiled it before since I do have this version on my system which is very weird.
/var/tmp/portage/media-gfx/blender-4.0.1/work/blender-4.0.1/source/blender/freestyle/intern/geometry/VecMat.h:40:19: error: 'uint' has not been declared 40 | template<class T, uint N> class Vec { | ^~~~ /var/tmp/portage/media-gfx/blender-4.0.1/work/blender-4.0.1/source/blender/freestyle/intern/geometry/VecMat.h:57:53: error: 'N' was not declared in this scope 57 | template<class U> explicit inline Vec(const U tab[N]) | ^ /var/tmp/portage/media-gfx/blender-4.0.1/work/blender-4.0.1/source/blender/freestyle/intern/geometry/VecMat.h:71:54: error: 'N' was not declared in this scope 71 | template<class U> explicit inline Vec(const Vec<U, N> &v) | ^ /var/tmp/portage/media-gfx/blender-4.0.1/work/blender-4.0.1/source/blender/freestyle/intern/geometry/VecMat.h:71:55: error: template argument 2 is invalid 71 | template<class U> explicit inline Vec(const Vec<U, N> &v) | ^ /var/tmp/portage/media-gfx/blender-4.0.1/work/blender-4.0.1/source/blender/freestyle/intern/geometry/VecMat.h:79:38: error: 'uint' does not name a type; did you mean 'int'? 79 | inline value_type operator[](const uint i) const | ^~~~ | int /var/tmp/portage/media-gfx/blender-4.0.1/work/blender-4.0.1/source/blender/freestyle/intern/geometry/VecMat.h:84:39: error: 'uint' does not name a type; did you mean 'int'? 84 | inline value_type &operator[](const uint i) | ^~~~ | int /var/tmp/portage/media-gfx/blender-4.0.1/work/blender-4.0.1/source/blender/freestyle/intern/geometry/VecMat.h:89:17: error: 'uint' does not name a type; did you mean 'int'? 89 | static inline uint dim() | ^~~~ | int
I also got this build error on media-gfx/blender-4.1.1 (and other errors) I did the following changes for it to compile: add "#include <cstdint>" to blender-4.1.1/source/blender/blenlib/BLI_index_range.hh:45 and blender-4.1.1/source/blender/blenkernel/BKE_volume_enums.hh and add "typedef unsigned int uint;" to blender-4.1.1/source/blender/freestyle/intern/geometry/VecMat.h:20 and blender-4.1.1/source/blender/freestyle/intern/system/Id.h:16 See also bug 924056
media-gfx/blender-4.1.1 suffers from this bug.