Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 869299 - media-gfx/blender-3.1.2 fails to compile (MUSL): mallocn_guarded_impl.c:720:3: error: implicit declaration of function malloc_stats [-Werror=implicit-function-declaration]
Summary: media-gfx/blender-3.1.2 fails to compile (MUSL): mallocn_guarded_impl.c:720:3...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Adrian
Depends on:
Blocks: clang-16-porting
  Show dependency tree
Reported: 2022-09-09 07:42 UTC by Agostino Sarubbo
Modified: 2022-10-25 13:32 UTC (History)
2 users (show)

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

build.log (build.log,143.78 KB, text/plain)
2022-09-09 07:42 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-09-09 07:42:56 UTC

Issue: media-gfx/blender-3.1.2 fails to compile (MUSL).
Discovered on: amd64 (internal ref: tinderbox_musl)

This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-09-09 07:42:59 UTC
Created attachment 804094 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-09-09 07:43:00 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:

-- Could NOT find Clang (missing: _CLANG_LIBRARIES) 
-- Could NOT find OptiX (missing: OPTIX_INCLUDE_DIR) (Required is at least version "7.3.0")
FAILED: intern/guardedalloc/CMakeFiles/bf_intern_guardedalloc.dir/intern/mallocn_guarded_impl.c.o 
FAILED: intern/guardedalloc/CMakeFiles/bf_intern_guardedalloc.dir/intern/mallocn_lockfree_impl.c.o 
/var/tmp/portage/media-gfx/blender-3.1.2/work/blender-3.1.2/intern/guardedalloc/intern/mallocn_guarded_impl.c:720:3: error: implicit declaration of function 'malloc_stats' [-Werror=implicit-function-declaration]
Comment 3 Sebastian Parborg 2022-10-25 13:32:50 UTC
There is already a musl patch for blender >=3.2.

If there is no interest in helping out with back porting the patches further, we can simply close this when the 3.1 ebuild is removed from the portage tree.