Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926224 - media-gfx/blender-4.0.1 doesn't compile on musl
Summary: media-gfx/blender-4.0.1 doesn't compile on musl
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paul Zander
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-05 21:52 UTC by Tohka
Modified: 2024-04-24 20:25 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build_log (blender-4.0.1-build.log.xz,172.88 KB, application/x-xz)
2024-03-05 21:52 UTC, Tohka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tohka 2024-03-05 21:52:03 UTC
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.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-06 06:22:08 UTC
/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
Comment 2 ktoupt 2024-04-24 20:25:34 UTC
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