Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't build blender with clang on llvm profile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Asgard7
n00b
n00b


Joined: 01 May 2024
Posts: 2

PostPosted: Wed May 01, 2024 8:12 pm    Post subject: Can't build blender with clang on llvm profile Reply with quote

After clang update i cannot compile blender because cmake don't see llvm library: LLVM required but not found.
Also i already compile blender before with clang but without cycles(with cycles it fails) and then i try to compile blender with cycles with GCC but got errors from linker(maybe because openexr, openvdb and other libraries build with clang). After that i got this situation when even with clang i cannot compile it
Code:
$ emerge --info '=media-gfx/blender-4.0.2-r1::gentoo'

Code:
Portage 3.0.64 (python 3.11.9-final-0, default/linux/amd64/23.0/llvm, gcc-13, glibc-2.39-r4, 6.8.4-cachyos x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.8.4-cachyos-x86_64-AMD_A12-9720P_RADEON_R7,_12_COMPUTE_CORES_4C+8G-with-glibc2.39
KiB Mem:    11713256 total,   7345928 free
KiB Swap:   25165820 total,  25165820 free
Timestamp of repository gentoo: Tue, 30 Apr 2024 05:30:00 +0000
Head commit of repository gentoo: aa71bde45baacad68595d5abda0dd323e7f9bd21
Timestamp of repository CachyOS-kernels: Fri, 19 Apr 2024 23:18:47 +0000
Head commit of repository CachyOS-kernels: c41dae5fd08e0aef1620460613b391b4755efd9c

Timestamp of repository guru: Mon, 29 Apr 2024 21:33:46 +0000
Head commit of repository guru: 1cf4618c9c51e92d2b485ea0c3582e037c7a8a79

sh bash 5.2_p26-r2
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r2::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.2::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.11.9::gentoo, 3.12.3::gentoo
dev-lang/rust-bin:         1.77.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo, 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo, 18.1.4::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo, 18.1.4::gentoo
sys-devel/llvm:            17.0.6::gentoo, 18.1.4::gentoo
sys-kernel/linux-headers:  6.8-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r4::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

CachyOS-kernels
    location: /var/db/repos/CachyOS-kernels
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/CachyOS-kernels.git
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64_llvm

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="clang -c"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=native -mtune=native -O3 -fcf-protection=none -mharden-sls=none -fopenmp -flto=thin -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-march=native -mtune=native -O3 -fcf-protection=none -mharden-sls=none -fopenmp -flto=thin -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -mtune=native -O3 -fcf-protection=none -mharden-sls=none -fopenmp -flto=thin -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -mtune=native -O3 -fcf-protection=none -mharden-sls=none -fopenmp -flto=thin -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LD="ld.lld"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed -Wl,-O2 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j4 -l4"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RANLIB="llvm-ranlib"
READELF="llvm-readelf"
RUSTFLAGS="-C opt-level=3 -C target-cpu=native -C link-arg=-z -C link-arg=pack-relative-relocs"
SHELL="/bin/bash"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="acl amd64 asm bzip2 clang crypt custom-cflags dbus drm elogind gdbm graphite hwaccel iconv ipv6 libtirpc llvm-libunwind lto multilib ncurses nls openmp pam pcre pgo readline seccomp ssl tbb test-rust threads unicode vaapi vulkan wayland wifi xattr zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 fma4 pclmul popcnt sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, SIZE, YACC, YFLAGS

----------------------------------------------------------------------------------------------------------------------------------------

Code:
$ emerge -pqv '=media-gfx/blender-4.0.2-r1::gentoo'

Code:
[ebuild  N    ] media-gfx/blender-4.0.2-r1  USE="alembic bullet color-management cycles embree ffmpeg fftw fluid gmp jemalloc nanovdb nls oidn openal openexr openmp openpgl opensubdiv openvdb pdf pugixml pulseaudio sndfile tbb tiff vulkan wayland webp -X -collada -cuda -cycles-bin-kernels -debug -doc -experimental -gnome -hip -jack -jpeg2k -man -ndof -oneapi -optix -osl -potrace -renderdoc -sdl -test -valgrind" LLVM_SLOT="17 -15 -16" PYTHON_SINGLE_TARGET="python3_11 -python3_10"


Build log: https://pastebin.com/raw/p8u2F5QE
Back to top
View user's profile Send private message
waltercool
n00b
n00b


Joined: 27 Jan 2008
Posts: 40
Location: Chile

PostPosted: Thu May 02, 2024 1:18 am    Post subject: Reply with quote

Did you found a good solution for that?
_________________
- WalterCool
Back to top
View user's profile Send private message
Asgard7
n00b
n00b


Joined: 01 May 2024
Posts: 2

PostPosted: Thu May 02, 2024 2:36 pm    Post subject: Reply with quote

waltercool wrote:
Did you found a good solution for that?

Not yet
Back to top
View user's profile Send private message
waltercool
n00b
n00b


Joined: 27 Jan 2008
Posts: 40
Location: Chile

PostPosted: Thu May 02, 2024 2:44 pm    Post subject: Reply with quote

Just in case, using GCC for Blender worked for me, using cycles.

I don't use cycles-bin-kernels, and I don't think that's required except to generate shaders pre-cache.
_________________
- WalterCool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum