Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927281 - media-gfx/blender-4.0.1-r1 configure fails at CMakeLists.txt:1322
Summary: media-gfx/blender-4.0.1-r1 configure fails at CMakeLists.txt:1322
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL:
Whiteboard:
Keywords: PullRequest
: 929931 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-19 08:00 UTC by tdr
Modified: 2024-04-21 12:51 UTC (History)
5 users (show)

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


Attachments
blender-4.0.1-r1:20240319-050950.log (media-gfx:blender-4.0.1-r1:20240319-050950.log,11.36 KB, text/plain)
2024-03-19 08:01 UTC, tdr
Details
successful ebuild log with USE=osl (media-gfx:blender-4.0.1-r1:20240411-030519.log.gz,488.72 KB, application/gzip)
2024-04-13 17:30 UTC, CaptainBlood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-03-19 08:00:48 UTC
configure fails 
(log to be attached)

Reproducible: Always

Steps to Reproduce:
# emerge -vp blender
[ebuild   R    ] media-gfx/blender-4.0.1-r1:4.0::gentoo  USE="X alembic bullet collada color-management cycles embree ffmpeg fftw fluid gmp jemalloc jpeg2k nanovdb ndof nls oidn openal openexr openmp openpgl opensubdiv openvdb osl pdf potrace pugixml pulseaudio sdl sndfile tbb tiff valgrind wayland webp -cuda -cycles-bin-kernels -debug -doc -hip -jack -man -optix -test" PYTHON_SINGLE_TARGET="python3_11 -python3_10" 0 KiB

Actual Results:  
-- Performing Test ATOMIC_OPS_WITH_LIBATOMIC - Success
CMake Error at CMakeLists.txt:1322 (message):
  Cycles OSL requires WITH_LLVM, the library may not have been found.
  Configure LLVM or disable WITH_CYCLES_OSL


testing building on a gcc-14 full ~amd64 system

Portage 3.0.63 (python 3.11.8-final-0, default/linux/amd64/17.1, gcc-14, glibc-2.39-r2, 6.8.1-gentoo-test-17-march-2024 x86_64)
=================================================================
System uname: Linux-6.8.1-gentoo-test-17-march-2024-x86_64-Intel-R-_Xeon-R-_w7-3465X-with-glibc2.39
KiB Mem:   263423944 total, 139294432 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of repository gentoo: Tue, 19 Mar 2024 04:00:00 +0000
Head commit of repository gentoo: e572c88554dd14921c39809f3b780cea49ce9c56
sh bash 5.2_p26
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust:             1.76.0::gentoo
dev-lang/rust-bin:         1.76.0::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 17.0.6::gentoo, 18.1.0::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo, 14.0.1_pre20240317::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo, 18.1.0::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 17.0.6::gentoo, 18.1.0::gentoo
sys-kernel/linux-headers:  6.7::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r2::gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -fno-vect-cost-model -pipe"
CHOST="x86_64-pc-linux-gnu"
Comment 1 tdr 2024-03-19 08:01:43 UTC
Created attachment 887911 [details]
blender-4.0.1-r1:20240319-050950.log
Comment 2 tdr 2024-03-19 21:08:12 UTC
osl version on the system is: media-libs/osl-1.12.14.0
Comment 3 Paul Zander 2024-04-13 16:44:52 UTC
*** Bug 929931 has been marked as a duplicate of this bug. ***
Comment 4 CaptainBlood 2024-04-13 17:30:35 UTC
Created attachment 890731 [details]
successful ebuild log with USE=osl

ebuild log snippet:

-- Found JPEG: /usr/lib64/libjpeg.so (found version "62") 
-- Found ZLIB: /usr/lib64/libz.so (found version "1.3")  
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.43+apng") 
-- Found Zstd: /usr/lib64/libzstd.so  
-- Found Epoxy: /usr/lib64/libepoxy.so  
-- Found TIFF: /usr/lib64/libtiff.so (found version "4.6.0")  
-- Found PythonLibsUnix: /usr/lib64/libpython3.11.so  
-- #define OPENEXR_VERSION_STRING "3.1.11"
-- Found OpenEXR: /usr/lib64/libIex-3_1.so;/usr/lib64/libOpenEXR-3_1.so;/usr/lib64/libOpenEXRCore-3_1.so;/usr/lib64/libIlmThread-3_1.so;/usr/lib64/libImath-3_1.so  
-- Found OpenJPEG: /usr/lib64/libopenjp2.so  
-- Found SndFile: /usr/lib64/libsndfile.so  
-- Found FFmpeg: /usr/lib64/libavcodec.so;/usr/lib64/libavdevice.so;/usr/lib64/libavfilter.so;/usr/lib64/libavformat.so;/usr/lib64/libavutil.so;/usr/lib64/libswscale.so;/usr/lib64/libswresample.so  
-- Found Fftw3: /usr/lib64/libfftw3f.so;/usr/lib64/libfftw3.so  
-- Found OpenCOLLADA: /usr/lib64/opencollada/libOpenCOLLADAStreamWriter.so;/usr/lib64/opencollada/libOpenCOLLADASaxFrameworkLoader.so;/usr/lib64/opencollada/libOpenCOLLADAFramework.so;/usr/lib64/opencollada/libOpenCOLLADABaseUtils.so;/usr/lib64/opencollada/libGeneratedSaxParser.so;/usr/lib64/opencollada/libMathMLSolver.so;/usr/lib64/opencollada/libbuffer.so;/usr/lib64/opencollada/libftoa.so;/usr/lib64/opencollada/libUTF.so  
-- Found PCRE: /usr/lib64/libpcre.so  
-- Found XML2: /usr/lib64/libxml2.so  
-- Found JeMalloc: /usr/lib64/libjemalloc.so  
-- Found OSL: /usr/lib64/liboslcomp.so;/usr/lib64/liboslexec.so;/usr/lib64/liboslquery.so;/usr/lib64/liboslnoise.so  
-- Found OpenVDB: /usr/lib64/libopenvdb.so  
-- Found NanoVDB: /usr/include  
-- Found Alembic: /usr/lib64/libAlembic.so  
-- Found Boost: /usr/lib64/cmake/Boost-1.84.0/BoostConfig.cmake (found suitable version "1.84.0", minimum required is "1.48") found components: filesystem regex thread date_time wave iostreams system 
-- Found PugiXML: /usr/lib64/libpugixml.so  
-- Found OpenImageIO: /usr/lib64/libOpenImageIO.so;/usr/lib64/libOpenImageIO_Util.so  
-- Found OpenColorIO: /usr/lib64/libOpenColorIO.so;/usr/lib64/libyaml-cpp.so;/usr/lib64/libexpat.so;/usr/lib64/libpystring.so;/usr/lib64/libminizip.so (found suitable version "2.1.3", minimum required is "2.0.0") 
-- Found Embree: /usr/lib64/libembree3.so (Required is at least version "3.8.0") 
-- Found OpenImageDenoise: /usr/lib64/libOpenImageDenoise.so  
-- Found LLVM: /usr/lib/llvm/15/lib64/libLLVM-15.0.7.so  
-- Could NOT find Clang (missing: _CLANG_LIBRARIES) 
-- Clang not found, disabling WITH_CLANG <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-- Found OpenSubdiv: /usr/lib64/libosdGPU.so;/usr/lib64/libosdCPU.so  
-- Found TBB: /usr/lib64/libtbb.so  
-- Found GMP: /usr/lib64/libgmp.so  
-- Found Threads: TRUE  
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.13.2") 
-- Looking for FT_CONFIG_OPTION_USE_BROTLI
-- Looking for FT_CONFIG_OPTION_USE_BROTLI - found
-- Found LZO: /usr/lib64/liblzo2.so  
-- Found Eigen3: /usr/include/eigen3  
-- Found Jack: /usr/lib64/libjack.so  
-- Found PkgConfig: /usr/bin/x8
Comment 5 Larry the Git Cow gentoo-dev 2024-04-21 12:51:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=175d65e779e69e5702ca52cb3af973a2fa0b0e62

commit 175d65e779e69e5702ca52cb3af973a2fa0b0e62
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2024-03-28 22:08:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-21 12:50:05 +0000

    media-gfx/blender: add 4.0.2-r1, cleanup
    
    hopefully fixed osl build
    re-added hip flag in 4.0.2-r1
    hide test code in release versions
    
    Bug: https://bugs.gentoo.org/693200
    Closes: https://bugs.gentoo.org/925534
    Closes: https://bugs.gentoo.org/927281
    Closes: https://bugs.gentoo.org/927715
    Closes: https://bugs.gentoo.org/927835
    Closes: https://bugs.gentoo.org/927931
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/35973
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/blender/blender-3.3.15.ebuild            |   4 +-
 media-gfx/blender/blender-3.3.8.ebuild             |   4 +-
 media-gfx/blender/blender-3.6.8.ebuild             |   4 +-
 ...lender-4.0.2.ebuild => blender-4.0.2-r1.ebuild} | 128 +++++---
 media-gfx/blender/blender-9999.ebuild              | 119 ++++---
 .../blender/files/blender-4.0.1-openvdb-11.patch   |   2 +
 .../files/blender-4.0.2-CUDA_NVCC_FLAGS.patch      |  14 +
 .../blender/files/blender-4.0.2-FindClang.patch    |  14 +
 .../blender/files/blender-4.0.2-r1-osl-1.13.patch  | 342 +++++++++++++++++++++
 profiles/arch/amd64/package.use.mask               |   4 +
 profiles/arch/base/package.use.mask                |   4 +
 11 files changed, 556 insertions(+), 83 deletions(-)