bartoszek / AUR-blender-develop-git

2 stars 0 forks source link

Unable to build #1

Closed Kagukara closed 7 months ago

Kagukara commented 7 months ago

I'm using paru as my aur helper, exported DISABLE_CUDA=1,DISABLE_OPTIX=1 and DISABLE_NINJA=1 before running paru -S blender-develop-git. But I get ==> ERROR: A failure occurred in build()..

I have added what the terminal output when it aborted building the package: blender-develop-git-build-error.txt

Let me know what other information you would like me to provide if need.

bartoszek commented 7 months ago

paru as yay derivative doesn't honour environment variable, you have to pass them as --mflags switch

paru -S blender-develop-git --mflags="DISABLE_{CUDA,OPTIX,NINJA}=1" 
Kagukara commented 7 months ago

Using paru -S blender-develop-git --mflags="DISABLE_{CUDA,OPTIX,NINJA}=1" gave me:

==> Missing dependencies:
  -> cuda
  -> optix>=7.4
==> ERROR: Could not resolve all dependencies.
error: failed to build 'blender-develop-git-4.2.r132730.g98231ea880b-1': 
error: packages failed to build: blender-develop-git-4.2.r132730.g98231ea880b-1

When I exported the variables it worked, but gave me the error I initially posted.

Kagukara commented 7 months ago

I've been able to use paru -S blender-develop-git --mflags="DISABLE_{CUDA,OPTIX,NINJA}=1" but it errors out with the same error as the initial error.

blender-develop-git-build-error.txt

bartoszek commented 7 months ago

Yep, openpgl:6 introduces some API changes, I'll check if can be fixed or downgraded to openpgl:5

bartoszek commented 7 months ago

Fixed in b4e4a63a7eb3e1d5130890f77900b4c09e225f91

Kagukara commented 7 months ago

At the end of installing I got:

error: failed to commit transaction (conflicting files)
blender-develop-git: /usr/lib/python3.11/site-packages/libextern_draco.so exists in filesystem (owned by blender)
blender-develop-git: /usr/share/man/man1/blender.1.gz exists in filesystem (owned by blender)
Errors occurred, no packages were upgraded.

I'm guessing I'll need to uninstall blender before installing again?

Kagukara commented 7 months ago

It also didn't pick up blender when searching for conflicting packages.

looking for conflicting packages...

Packages (1) blender-develop-git-4.2.r132969.gca49998049c-1
bartoszek commented 7 months ago

That's why DISABLE_DRACO is there 😏

paru -S blender-develop-git --mflags="DISABLE_{CUDA,DRACO}=1"

Or if you really need Draco compression in GLTF, you can always pass --overwrite=/usr/lib/python3.11/site-packages/libextern_draco.so

Kagukara commented 7 months ago

It has finally built with me doing:

$ export DISABLE_CUDA=1
$ export DISABLE_OPTIX=1
$ export DISABLE_NINJA=1
$ export DISABLE_DRACO=1
$ paru -S blender-develop-git --mflags="DISABLE_{CUDA,OPTIX,NINJA,DRACO}=1"

I had to export the variables before the paru command as it didn't work otherwise.

When I go to run blender-4.2 it does this:

$ blender-4.2
Writing: /tmp/blender.crash.txt
Writing: /tmp/blender.crash.txt
Writing: /tmp/blender.crash.txt
Segmentation fault (core dumped)

Here is the blender.crash.txt

Running blender-4.2 in gdb I get:

Thread 99 "blender-4.:sh2" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff4ea00000 (LWP 148962)]
0x00007fffdf124424 in llvm::MachinePointerInfo::getAddrSpace () at /usr/src/debug/llvm/llvm-16.0.6.src/lib/CodeGen/MachineOperand.cpp:1019
Downloading source file /usr/src/debug/llvm/llvm-16.0.6.src/lib/CodeGen/MachineOperand.cpp
1019    unsigned MachinePointerInfo::getAddrSpace() const { return AddrSpace; }

and the backtrace:

(gdb) bt
#0  0x00007fffdf124424 in llvm::MachinePointerInfo::getAddrSpace () at /usr/src/debug/llvm/llvm-16.0.6.src/lib/CodeGen/MachineOperand.cpp:1019
#1  0x00007fffdf6b884c in AddNodeIDCustom () at /usr/src/debug/llvm/llvm-16.0.6.src/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:871
#2  0x00007fffdf6b8da8 in llvm::SDNode::Profile () at /usr/src/debug/llvm/llvm-16.0.6.src/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:11121
#3  llvm::DefaultFoldingSetTrait<llvm::SDNode>::Profile () at /usr/src/debug/llvm/llvm-16.0.6.src/include/llvm/ADT/FoldingSet.h:236
#4  llvm::DefaultFoldingSetTrait<llvm::SDNode>::Equals () at /usr/src/debug/llvm/llvm-16.0.6.src/include/llvm/ADT/FoldingSet.h:404
#5  llvm::FoldingSet<llvm::SDNode>::NodeEquals () at /usr/src/debug/llvm/llvm-16.0.6.src/include/llvm/ADT/FoldingSet.h:538
#6  0x00007fff84954f26 in llvm::FoldingSetBase::FindNodeOrInsertPos(llvm::FoldingSetNodeID const&, void*&, llvm::FoldingSetBase::FoldingSetInfo const&) () at /usr/lib/libLLVM-19git.so
#7  0x00007fff84955013 in llvm::FoldingSetBase::GetOrInsertNode(llvm::FoldingSetBase::Node*, llvm::FoldingSetBase::FoldingSetInfo const&) () at /usr/lib/libLLVM-19git.so
#8  0x00007fff855d39a9 in llvm::SelectionDAG::AddModifiedNodeToCSEMaps(llvm::SDNode*) () at /usr/lib/libLLVM-19git.so
#9  0x00007fff855d37d9 in llvm::SelectionDAG::ReplaceAllUsesWith(llvm::SDNode*, llvm::SDNode*) () at /usr/lib/libLLVM-19git.so
#10 0x00007fff853eacfa in llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AAResults*, llvm::CodeGenOptLevel) () at /usr/lib/libLLVM-19git.so
#11 0x00007fff855f0237 in llvm::SelectionDAGISel::CodeGenAndEmitDAG() () at /usr/lib/libLLVM-19git.so
#12 0x00007fff855f3755 in llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) () at /usr/lib/libLLVM-19git.so
#13 0x00007fff855f56e4 in ??? () at /usr/lib/libLLVM-19git.so
#14 0x00007fff84f7c238 in ??? () at /usr/lib/libLLVM-19git.so
#15 0x00007fff84bf6929 in llvm::FPPassManager::runOnFunction(llvm::Function&) () at /usr/lib/libLLVM-19git.so
#16 0x00007fff86657d2a in ??? () at /usr/lib/libLLVM-19git.so
#17 0x00007fff84bf764c in llvm::legacy::PassManagerImpl::run(llvm::Module&) () at /usr/lib/libLLVM-19git.so
#18 0x00007fff8d30bc7b in ??? () at /usr/lib/dri/radeonsi_dri.so
#19 0x00007fff8d280fb4 in ??? () at /usr/lib/dri/radeonsi_dri.so
#20 0x00007fff8d282730 in ??? () at /usr/lib/dri/radeonsi_dri.so
#21 0x00007fff8d211d8d in ??? () at /usr/lib/dri/radeonsi_dri.so
#22 0x00007fff8d246104 in ??? () at /usr/lib/dri/radeonsi_dri.so
#23 0x00007fff8ca7195c in ??? () at /usr/lib/dri/radeonsi_dri.so
#24 0x00007fff8ca91ccc in ??? () at /usr/lib/dri/radeonsi_dri.so
#25 0x00007fffe97bd55a in start_thread (arg=<optimized out>) at pthread_create.c:447
#26 0x00007fffe983aa3c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

extra/blender 17:4.0.2-14 [0 B 632.55 MiB] [Installed] Is still installed and no longer works after installing blender-develop-git, not sure why it wasn't uninstalled or is this intentional?

Kagukara commented 7 months ago

Uninstalling blender-develop-git and reinstalling blender hasn't fixed blender from working like it did yesterday.

bartoszek commented 7 months ago
Kagukara commented 7 months ago
  • export before paru is redundant, only --mflags=... is required

Just tried paru -S blender-develop-git --mflags="DISABLE_{CUDA,OPTIX,NINJA,DRACO}=1" again and got:

==> Missing dependencies:
  -> cuda
  -> optix>=7.4
==> ERROR: Could not resolve all dependencies.
error: failed to build 'blender-develop-git-4.2.r132961.g76b09765002-1': 
error: packages failed to build: blender-develop-git-4.2.r132961.g76b09765002-1
  • crash originates in mesa driver, it was updated 2 days ago:

I use mesa-git, /var/cache/pacman/pkg shows mesa-git-1:24.1.0_devel.184400.62fa5c8d0f0-1-x86_64.pkg.tar.zst. Which is the latest version. Won't I also need to downgrade all the packages that mesa-git depends on if I were to downgrade?

I'll make an issue on mesa/mesa.

Kagukara commented 7 months ago
  • export before paru is redundant, only --mflags=... is required

Just tried paru -S blender-develop-git --mflags="DISABLE_{CUDA,OPTIX,NINJA,DRACO}=1" again and got:

==> Missing dependencies:
  -> cuda
  -> optix>=7.4
==> ERROR: Could not resolve all dependencies.
error: failed to build 'blender-develop-git-4.2.r132961.g76b09765002-1': 
error: packages failed to build: blender-develop-git-4.2.r132961.g76b09765002-1

This worked:

paru -S blender-develop-git --mflags="DISABLE_CUDA=1,DISABLE_OPTIX=1,DISABLE_NINJA=1,DISABLE_DRACO=1"
bartoszek commented 7 months ago

This worked: paru -S blender-develop-git --mflags="DISABLE_CUDA=1,DISABLE_OPTIX=1,DISABLE_NINJA=1,DISABLE_DRACO=1"

Brain fart on my side (οΌβ€Έαƒš) env expansion in --mflags obviously won't work without eval

$ function foo { echo $@; }
$ foo --margs="{test,test}"
--margs={test,test}
$ eval foo --margs="{test,test}"
--margs=test --margs=test

I use mesa-git Check if issue persists after installing mesa from arch main repo

  • if mesa-git was built with paru it should be cached and you won't have to rebuild after replacing with masa form arch )
Kagukara commented 7 months ago

Before I switch to mesa. I installed mesa-git and other graphics drivers like so:

$ pacman -S mesa-git lib32-mesa-git vulkan-radeon-git lib32-vulkan-radeon-git mesa-utils lib32-mesa-utils

Will there is any problems with my doing:

$ pacman -S mesa
bartoszek commented 7 months ago

I think it's fine, it would just ask to replace mesa-git with mesa

bartoszek commented 7 months ago

Also mesa-git is built against testing repo.

Kagukara commented 7 months ago

I use mesa-git Comment: https://github.com/bartoszek/AUR-blender-develop-git/issues/1#issuecomment-1950087334

I added:

[mesa-git]
Server = https://pkgbuild.com/~lcarlier/$repo/$arch

As I use a 7900XTX and was the recommended way to have the drivers with the 7000 series cards.

Kagukara commented 7 months ago

Didn't work:

$ sudo pacman -S mesa
resolving dependencies...
looking for conflicting packages...
:: mesa and mesa-git are in conflict (mesa-libgl). Remove mesa-git? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing mesa-git breaks dependency 'mesa-git' required by lib32-mesa-git
:: removing mesa-git breaks dependency 'mesa-git' required by mpv-git

So I had to do:

$ sudo pacman -S mesa lib32-mesa mpv

blender and blender-4.2 now open without Segmentation fault (core dumped).

Is blender-git on version 4.1, as that's the version I'm wanting to do a test on?

bartoszek commented 7 months ago

Uncomment [testing-core] and [testing-extra] in /etc/pacman.conf/ and call sys update pacman -Suy this could potentially help.

Kagukara commented 7 months ago

Uncomment [testing-core] and [testing-extra] in /etc/pacman.conf/ and call sys update pacman -Suy this could potentially help.

Why would I need to do that when I said:

blender and blender-4.2 now open without Segmentation fault (core dumped).

EDIT: Ah, from the arch wiki:

If you enable core-testing, you must also enable extra-testing, and vice versa. If you enable any other testing repository listed in the following subsections, you must also enable both core-testing and extra-testing.

So as I use:

[mesa-git]
Server = https://pkgbuild.com/~lcarlier/$repo/$arch

Which "builds for the testing repositories" I may need to enable core-testing and extra-testing.

Kagukara commented 7 months ago

As it now builds and launches, I'm going to close the issue as we've found its a mesa-git/lib32-mesa issue which I'll go post to mesa/mesa. Thank you for helping me with the issue.

bartoszek commented 7 months ago

As stated in mesa-git repo description it's built against [testing] repo. If there are different versions of mesa-git deps in [testing] than in the main repo this could potentially lead to an issue you are facing. If mesa-git was built with a different version of e.g: llvm then what's installed on your system it could result in a segfoult.

Kagukara commented 7 months ago

Yea, just saw that reading the wiki, but I'm sceptical when it says:

Be careful when enabling the testing repositories. Your system may break after performing an update. Only experienced users who know how to deal with potential system breakage should use it.

Or is that just for:

#[testing]
#Include = /etc/pacman.d/mirrorlist
Kagukara commented 7 months ago

I uncomment:

[core-testing]
Include = /etc/pacman.d/mirrorlist

[extra-testing]
Include = /etc/pacman.d/mirrorlist

Ran sudo pacman -Syu and tried to run blender and it still Segmentation fault (core dumped).

The only error I got was:

looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing libffi (3.4.5-1) breaks dependency 'libffi=3.4.4' required by lib32-libffi
bartoszek commented 7 months ago

:: installing libffi (3.4.5-1) breaks dependency 'libffi=3.4.4' required by lib32-libffi

Yep, this is a quirk of a testing repo. It's directed towards users willing to test and report bugs before packages get into the main repo. Consider reporting the issue to the archlinux/extra/mesa issue tracker on gitlab.archlinux.org

bartoszek commented 7 months ago

Is blender-git on version 4.1, as that's the version I'm wanting to do a test on?

If you like to build specific version of blender-develop-git there's FRAGMENT env var for that.

paru --mflags="FRAMENT=#branch=blender-v4.1-release,DISABLE_CUDA=1,DISABLE_DRACO=1" -a -S blender-develop-git 
Kagukara commented 7 months ago

Doing this didn't work:

paru -S -a blender-develop-git --mflags="DISABLE_CUDA=1,DISABLE_OPTIX=1,DISABLE_DRACO=1,FRAMENT=#branch=blender-v4.1-release"

It shows:

/home/richard/.cache/paru/clone/blender-develop-git/PKGBUILD: line 29: ((: 1,DISABLE_OPTIX=1,DISABLE_DRACO=1,FRAMENT=#branch=blender-v4.1-release: syntax error: operand expected (error token is "#branch=blender-v4.1-release")
==> Making package: blender-develop-git 4.2.r132961.g76b09765002-1 (Sun 18 Feb 2024 13:16:08 GMT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Missing dependencies:
  -> cuda
==> ERROR: Could not resolve all dependencies.
error: failed to build 'blender-develop-git-4.2.r132961.g76b09765002-1': 
error: packages failed to build: blender-develop-git-4.2.r132961.g76b09765002-1

I'm also not sure why cuda is being left off.

bartoszek commented 7 months ago

Sorry, i'm used to aurutils not paru, you should use space instead of coma separated list in --mflags

--mflags Passes arguments to makepkg. These flags get passed to every instance where makepkg is called by paru. Arguments are split on whitespace before being passed to makepkg. Multiple arguments may be passed by supplying a space separated list that is quoted by the shell.

paru -S -a blender-develop-git --mflags="DISABLE_CUDA=1 DISABLE_OPTIX=1 DISABLE_DRACO=1 FRAMENT=#branch=blender-v4.1-release"
Kagukara commented 7 months ago
paru -S -a blender-develop-git --mflags="DISABLE_CUDA=1 DISABLE_OPTIX=1 DISABLE_DRACO=1 FRAMENT=#branch=blender-v4.1-release"

That didn't change the branch (side note, not having DISABLE_NINJA=1 made the build so much quicker), when I went to go rebuild the package I noticed it saying:

Blender repository skipped: no remote branch to pull from

As for the Segmentation fault (core dumped) I was having, I was told:

Thats not a mesa or blender issue, its a issue from you using llvm-git without following the correct rebuild order

So it seems the unofficial repository for mesa-git I added to /etc/pacman.conf was the problem. When I built it from the aur and forced it to use llvm it worked, but I've now just decided to use just standard mesa and others from the wiki.

EDIT: OH, just noticed FRAMENT= should be FRAGMENT=.

That worked, thank you for the help.

bartoszek commented 7 months ago

Sorry for spelling errors πŸ˜…

bartoszek commented 7 months ago

@Kagukara do you perhaps have AMD GPU?

Kagukara commented 7 months ago

@Kagukara do you perhaps have AMD GPU?

Yes, 7900 XTX

bartoszek commented 7 months ago

I've just enabled HIP cycles kernel for amdgpu but have no way to test it, could you give it a shot?

paru -S -a blender-develop-git --mflags="DISABLE_HIP=0 HIP_ARCH=gfx1100 DISABLE_CUDA=1 DISABLE_DRACO=1 FRAMENT=#branch=blender-v4.1-release"
Kagukara commented 7 months ago
==> Missing dependencies:
  -> hip-runtime-amd

After installing hip-runtime-amd and running:

paru -S -a blender-develop-git --mflags="DISABLE_CUDA=1 DISABLE_OPTIX=1 DISABLE_DRACO=1 FRAGMENT=#branch=blender-v4.1-release DISABLE_HIP=0 HIP_ARCH=gfx1100"

You forgot the "G" again btw

It aborts and outputs:

==> Starting prepare()...
make: Entering directory '/home/richard/.cache/paru/clone/blender-develop-git/src/blender'
git lfs install --skip-repo
git: 'lfs' is not a git command. See 'git --help'.

The most similar command is
    log
make: *** [GNUmakefile:583: update_code] Error 1
make: Leaving directory '/home/richard/.cache/paru/clone/blender-develop-git/src/blender'
==> ERROR: A failure occurred in prepare().
    Aborting...
error: failed to build 'blender-develop-git-4.2.r133264.g9cc19621207-1': 
error: packages failed to build: blender-develop-git-4.2.r133264.g9cc19621207-1
bartoszek commented 7 months ago

@Kagukara fixed in 813e8e4dc1e07e9741c62c9a58364fa742591d5e update_code should work now.

Kagukara commented 7 months ago

I get this at the end of the install:

==> add -4.1 suffix to desktop shortcut
==> add -4.1 suffix to binaries
==> mv doc/blender to doc/blender-4.1
mv: cannot stat '/home/richard/.cache/paru/clone/blender-develop-git/pkg/blender-develop-git/usr/share/doc/blender': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
error: failed to build 'blender-develop-git-4.2.r133387.g7f43699ebf5-1': 
error: packages failed to build: blender-develop-git-4.2.r133387.g7f43699ebf5-1

Here is what that directory looks like:

$ ls /home/richard/.cache/paru/clone/blender-develop-git/pkg/blender-develop-git/usr/share/
applications  blender  icons  metainfo
Kagukara commented 7 months ago

Just tried it again and got a different error:

[ 86% | 5071<34<778 | 16.4bps ] Building CXX object source/blender/nodes/CMakeFiles/bf_nodes.dir/intern/derived_node_tree.cc.o
FAILED: source/blender/nodes/CMakeFiles/bf_nodes.dir/intern/derived_node_tree.cc.o 
/usr/bin/c++ -DHAVE_EXECINFO_H -DNDEBUG -DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 -DWITH_BULLET -DWITH_FREESTYLE -DWITH_GHOST_WAYLAND_LIBDECOR -DWITH_GMP -DWITH_OPENEXR -DWITH_OPENSUBDIV -DWITH_OPENVDB -DWITH_OPENVDB_BLOSC -DWITH_TBB -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -D__MMX__ -D__SSE2__ -D__SSE__ -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/nodes -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/nodes/composite -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/nodes/function -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/nodes/geometry -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/nodes/intern -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/nodes/shader -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/nodes/texture -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/editors/include -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenkernel -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenloader -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blentranslation -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/bmesh -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/functions -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/geometry -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/gpu -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/imbuf -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/makesrna -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/modifiers -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/render -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/windowmanager -I/home/richard/.cache/paru/clone/blender-develop-git/src/build/source/blender/makesrna -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/openvdb -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenlib -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/makesdna -I/home/richard/.cache/paru/clone/blender-develop-git/src/build/source/blender/makesdna/intern -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/depsgraph -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/guardedalloc -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/fmtlib/include -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/bullet2/src -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/rigidbody -isystem /usr/include/OpenEXR -isystem /usr/include/Imath -Wuninitialized -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Werror=return-type -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Wcomma-subscript -Wformat-signedness -Wrestrict -Wno-suggest-override -Wuninitialized -Wno-stringop-overread -Wno-stringop-overflow -Wimplicit-fallthrough=5 -Wundef -Wmissing-declarations -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/richard/.cache/paru/clone/blender-develop-git/src=/usr/src/debug/blender-develop-git -flto=auto -fopenmp -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -ffp-contract=off -msse2 -fmacro-prefix-map="/home/richard/.cache/paru/clone/blender-develop-git/src/blender/"="" -fmacro-prefix-map="/home/richard/.cache/paru/clone/blender-develop-git/src/build/"="" -Wno-maybe-uninitialized -O2 -DNDEBUG -std=c++17 -MD -MT source/blender/nodes/CMakeFiles/bf_nodes.dir/intern/derived_node_tree.cc.o -MF source/blender/nodes/CMakeFiles/bf_nodes.dir/intern/derived_node_tree.cc.o.d -o source/blender/nodes/CMakeFiles/bf_nodes.dir/intern/derived_node_tree.cc.o -c /home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/nodes/intern/derived_node_tree.cc
In file included from /home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/makesdna/DNA_node_types.h:14,
                 from /home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenkernel/BKE_node_runtime.hh:18,
                 from /home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/nodes/NOD_derived_node_tree.hh:20,
                 from /home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/nodes/intern/derived_node_tree.cc:5:
/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/makesdna/DNA_scene_types.h:2674:3: internal compiler error: Segmentation fault
 2674 |   UVCALC_NO_ASPECT_CORRECT = 1 << 1,
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
0x1ad33c8 internal_error(char const*, ...)
    ???:0
0x10cbf19 protected_set_expr_location(tree_node*, unsigned int)
    ???:0
0x9443d0 c_common_parse_file()
    ???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.archlinux.org/> for instructions.
[ 86% | 5104<1<778 | 1.6bps ] Building CXX object source/blender/blenkernel/CMakeFiles/bf_blenkernel.dir/intern/volume.cc.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'blender-develop-git-4.2.r133387.g7f43699ebf5-1': 
error: packages failed to build: blender-develop-git-4.2.r133387.g7f43699ebf5-1
Kagukara commented 7 months ago

Unable to build normally now as well:

[ 91% | 5413<34<451 | 7.5bps ] Building CXX object source/blender/blenkernel/CMakeFiles/bf_blenkernel.dir/intern/volume.cc.o
FAILED: source/blender/blenkernel/CMakeFiles/bf_blenkernel.dir/intern/volume.cc.o 
/usr/bin/c++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_DYN_LINK -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_DYN_LINK -DBOOST_LOCALE_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DBOOST_WAVE_DYN_LINK -DBOOST_WAVE_NO_LIB -DFFTW3=1 -DHAVE_EXECINFO_H -DNDEBUG -DPYTHON_EXECUTABLE_NAME=python3.11 -DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 -DWITH_ALEMBIC -DWITH_AUDASPACE -DWITH_AVI -DWITH_BINRELOC -DWITH_BULLET -DWITH_CINEON -DWITH_FFMPEG -DWITH_FLUID -DWITH_FREESTYLE -DWITH_GHOST_WAYLAND_LIBDECOR -DWITH_GMP -DWITH_JACK -DWITH_LIBMV -DWITH_LZMA -DWITH_LZO -DWITH_OCEANSIM -DWITH_OPENEXR -DWITH_OPENJPEG -DWITH_OPENSUBDIV -DWITH_OPENVDB -DWITH_OPENVDB_BLOSC -DWITH_PYTHON -DWITH_PYTHON_SECURITY -DWITH_QUADRIFLOW -DWITH_TBB -DWITH_USD -DWITH_WEBP -DWITH_XR_OPENXR -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -D__MMX__ -D__SSE2__ -D__SSE__ -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenkernel -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/asset_system -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenloader -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blentranslation -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/bmesh -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/draw -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/functions -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/gpencil_modifiers_legacy -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/gpu -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/ikplugin -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/imbuf -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/makesrna -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/modifiers -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/nodes -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/render -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/sequencer -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/shader_fx -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/simulation -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/eigen -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/ghost -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/iksolver/extern -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/libmv -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/mantaflow/extern -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/memutil -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/mikktspace -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/opensubdiv -I/home/richard/.cache/paru/clone/blender-develop-git/src/build/source/blender/makesrna -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/rigidbody -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/io/avi -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/ffmpeg -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/python -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/io/alembic -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/io/usd -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/openvdb -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/quadriflow -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/animrig -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenfont -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenlib -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/makesdna -I/home/richard/.cache/paru/clone/blender-develop-git/src/build/source/blender/makesdna/intern -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/depsgraph -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/curve_fit_nd -I/home/richard/.cache/paru/clone/blender-develop-git/src/build/source/blender/compositor/realtime_compositor -I/home/richard/.cache/paru/clone/blender-develop-git/src/build/source/blender/draw -I/home/richard/.cache/paru/clone/blender-develop-git/src/build/intern/opencolorio -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/clog -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/guardedalloc -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/mikktspace/. -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/fmtlib/include -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/atomic/. -isystem /usr/include/freetype2 -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/binreloc/include -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/audaspace/bindings/C -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/build/extern/audaspace -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/bullet2/src -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/lzo/minilzo -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/lzma -isystem /usr/include/OpenEXR -isystem /usr/include/Imath -Wuninitialized -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Werror=return-type -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Wcomma-subscript -Wformat-signedness -Wrestrict -Wno-suggest-override -Wuninitialized -Wno-stringop-overread -Wno-stringop-overflow -Wimplicit-fallthrough=5 -Wundef -Wmissing-declarations -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/richard/.cache/paru/clone/blender-develop-git/src=/usr/src/debug/blender-develop-git -flto=auto -fopenmp -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -ffp-contract=off -msse2 -fmacro-prefix-map="/home/richard/.cache/paru/clone/blender-develop-git/src/blender/"="" -fmacro-prefix-map="/home/richard/.cache/paru/clone/blender-develop-git/src/build/"="" -Wno-maybe-uninitialized -O2 -DNDEBUG -std=c++17 -MD -MT source/blender/blenkernel/CMakeFiles/bf_blenkernel.dir/intern/volume.cc.o -MF source/blender/blenkernel/CMakeFiles/bf_blenkernel.dir/intern/volume.cc.o.d -o source/blender/blenkernel/CMakeFiles/bf_blenkernel.dir/intern/volume.cc.o -c /home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenkernel/intern/volume.cc
during IPA pass: modref
/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenkernel/intern/volume.cc:1105:1: internal compiler error: Segmentation fault
 1105 | }
      | ^
0x1ad33c8 internal_error(char const*, ...)
    ???:0
0x1acc7bc gcc_sort_r(void*, unsigned long, unsigned long, int (*)(void const*, void const*, void*), void*)
    ???:0
0xcccd8e lto_output()
    ???:0
0xa01849 symbol_table::finalize_compilation_unit()
    ???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.archlinux.org/> for instructions.
[ 92% | 5446<1<451 | 1.1bps ] Generating kernel_gfx1012.fatbin
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'blender-develop-git-4.2.r133387.g7f43699ebf5-1': 
error: packages failed to build: blender-develop-git-4.2.r133387.g7f43699ebf5-1
bartoszek commented 7 months ago

Are you building current blender master, or blender-v4.1-release ? It looks like bug in amd-roc perhaps it's already fixed upstream.

Kagukara commented 7 months ago

Unable to build normally now as well:

[ 91% | 5413<34<451 | 7.5bps ] Building CXX object source/blender/blenkernel/CMakeFiles/bf_blenkernel.dir/intern/volume.cc.o
FAILED: source/blender/blenkernel/CMakeFiles/bf_blenkernel.dir/intern/volume.cc.o 
/usr/bin/c++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_DYN_LINK -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_DYN_LINK -DBOOST_LOCALE_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DBOOST_WAVE_DYN_LINK -DBOOST_WAVE_NO_LIB -DFFTW3=1 -DHAVE_EXECINFO_H -DNDEBUG -DPYTHON_EXECUTABLE_NAME=python3.11 -DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 -DWITH_ALEMBIC -DWITH_AUDASPACE -DWITH_AVI -DWITH_BINRELOC -DWITH_BULLET -DWITH_CINEON -DWITH_FFMPEG -DWITH_FLUID -DWITH_FREESTYLE -DWITH_GHOST_WAYLAND_LIBDECOR -DWITH_GMP -DWITH_JACK -DWITH_LIBMV -DWITH_LZMA -DWITH_LZO -DWITH_OCEANSIM -DWITH_OPENEXR -DWITH_OPENJPEG -DWITH_OPENSUBDIV -DWITH_OPENVDB -DWITH_OPENVDB_BLOSC -DWITH_PYTHON -DWITH_PYTHON_SECURITY -DWITH_QUADRIFLOW -DWITH_TBB -DWITH_USD -DWITH_WEBP -DWITH_XR_OPENXR -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -D__MMX__ -D__SSE2__ -D__SSE__ -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenkernel -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/asset_system -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenloader -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blentranslation -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/bmesh -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/draw -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/functions -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/gpencil_modifiers_legacy -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/gpu -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/ikplugin -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/imbuf -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/makesrna -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/modifiers -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/nodes -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/render -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/sequencer -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/shader_fx -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/simulation -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/eigen -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/ghost -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/iksolver/extern -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/libmv -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/mantaflow/extern -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/memutil -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/mikktspace -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/opensubdiv -I/home/richard/.cache/paru/clone/blender-develop-git/src/build/source/blender/makesrna -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/rigidbody -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/io/avi -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/ffmpeg -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/python -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/io/alembic -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/io/usd -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/openvdb -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/quadriflow -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/animrig -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenfont -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenlib -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/makesdna -I/home/richard/.cache/paru/clone/blender-develop-git/src/build/source/blender/makesdna/intern -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/depsgraph -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/curve_fit_nd -I/home/richard/.cache/paru/clone/blender-develop-git/src/build/source/blender/compositor/realtime_compositor -I/home/richard/.cache/paru/clone/blender-develop-git/src/build/source/blender/draw -I/home/richard/.cache/paru/clone/blender-develop-git/src/build/intern/opencolorio -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/clog -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/guardedalloc -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/mikktspace/. -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/fmtlib/include -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/atomic/. -isystem /usr/include/freetype2 -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/binreloc/include -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/audaspace/bindings/C -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/build/extern/audaspace -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/bullet2/src -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/lzo/minilzo -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/lzma -isystem /usr/include/OpenEXR -isystem /usr/include/Imath -Wuninitialized -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Werror=return-type -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Wcomma-subscript -Wformat-signedness -Wrestrict -Wno-suggest-override -Wuninitialized -Wno-stringop-overread -Wno-stringop-overflow -Wimplicit-fallthrough=5 -Wundef -Wmissing-declarations -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/richard/.cache/paru/clone/blender-develop-git/src=/usr/src/debug/blender-develop-git -flto=auto -fopenmp -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -ffp-contract=off -msse2 -fmacro-prefix-map="/home/richard/.cache/paru/clone/blender-develop-git/src/blender/"="" -fmacro-prefix-map="/home/richard/.cache/paru/clone/blender-develop-git/src/build/"="" -Wno-maybe-uninitialized -O2 -DNDEBUG -std=c++17 -MD -MT source/blender/blenkernel/CMakeFiles/bf_blenkernel.dir/intern/volume.cc.o -MF source/blender/blenkernel/CMakeFiles/bf_blenkernel.dir/intern/volume.cc.o.d -o source/blender/blenkernel/CMakeFiles/bf_blenkernel.dir/intern/volume.cc.o -c /home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenkernel/intern/volume.cc
during IPA pass: modref
/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenkernel/intern/volume.cc:1105:1: internal compiler error: Segmentation fault
 1105 | }
      | ^
0x1ad33c8 internal_error(char const*, ...)
  ???:0
0x1acc7bc gcc_sort_r(void*, unsigned long, unsigned long, int (*)(void const*, void const*, void*), void*)
  ???:0
0xcccd8e lto_output()
  ???:0
0xa01849 symbol_table::finalize_compilation_unit()
  ???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.archlinux.org/> for instructions.
[ 92% | 5446<1<451 | 1.1bps ] Generating kernel_gfx1012.fatbin
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'blender-develop-git-4.2.r133387.g7f43699ebf5-1': 
error: packages failed to build: blender-develop-git-4.2.r133387.g7f43699ebf5-1

This was building blender-v4.1-release without amd-roc:

paru -S -a blender-develop-git --mflags="DISABLE_CUDA=1 DISABLE_OPTIX=1 DISABLE_DRACO=1 FRAGMENT=#branch=blender-v4.1-release"

# Trying to build from master using:

paru -S -a blender-develop-git --mflags="DISABLE_CUDA=1 DISABLE_OPTIX=1 DISABLE_DRACO=1"

Gives me:

==> add -4.2 suffix to desktop shortcut
==> add -4.2 suffix to binaries
==> mv doc/blender to doc/blender-4.2
mv: cannot stat '/home/richard/.cache/paru/clone/blender-develop-git/pkg/blender-develop-git/usr/share/doc/blender': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
error: failed to build 'blender-develop-git-4.2.r133387.g7f43699ebf5-1': 
error: packages failed to build: blender-develop-git-4.2.r133387.g7f43699ebf5-1

# Retrying blender-v4.1-release with:

paru -S -a blender-develop-git --mflags="DISABLE_CUDA=1 DISABLE_OPTIX=1 DISABLE_DRACO=1 FRAGMENT=#branch=blender-v4.1-release"

I got:

[ 89% | 5263<34<601 | 7.3bps ] Building CXX object source/blender/nodes/geometry/CMakeFiles/bf_nodes_geometry.dir/Unity/unity_7_cxx.cxx.o
FAILED: source/blender/nodes/geometry/CMakeFiles/bf_nodes_geometry.dir/Unity/unity_7_cxx.cxx.o 
/usr/bin/c++ -DHAVE_EXECINFO_H -DNDEBUG -DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 -DWITH_BULLET -DWITH_GHOST_WAYLAND_LIBDECOR -DWITH_GMP -DWITH_OPENEXR -DWITH_OPENSUBDIV -DWITH_OPENVDB -DWITH_OPENVDB_BLOSC -DWITH_TBB -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -D__MMX__ -D__SSE2__ -D__SSE__ -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/nodes/geometry -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/nodes -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/nodes/intern -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/editors/include -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenkernel -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blentranslation -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/bmesh -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/functions -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/geometry -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/gpu -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/imbuf -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/makesrna -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/modifiers -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/render -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/windowmanager -I/home/richard/.cache/paru/clone/blender-develop-git/src/build/source/blender/makesrna -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/openvdb -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/blenlib -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/makesdna -I/home/richard/.cache/paru/clone/blender-develop-git/src/build/source/blender/makesdna/intern -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/source/blender/depsgraph -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/guardedalloc -I/home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/fmtlib/include -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/blender/extern/bullet2/src -isystem /home/richard/.cache/paru/clone/blender-develop-git/src/blender/intern/rigidbody -isystem /usr/include/OpenEXR -isystem /usr/include/Imath -Wuninitialized -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Werror=return-type -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Wcomma-subscript -Wformat-signedness -Wrestrict -Wno-suggest-override -Wuninitialized -Wno-stringop-overread -Wno-stringop-overflow -Wimplicit-fallthrough=5 -Wundef -Wmissing-declarations -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/richard/.cache/paru/clone/blender-develop-git/src=/usr/src/debug/blender-develop-git -flto=auto -fopenmp -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -ffp-contract=off -msse2 -fmacro-prefix-map="/home/richard/.cache/paru/clone/blender-develop-git/src/blender/"="" -fmacro-prefix-map="/home/richard/.cache/paru/clone/blender-develop-git/src/build/"="" -Wno-maybe-uninitialized -O2 -DNDEBUG -std=c++17 -MD -MT source/blender/nodes/geometry/CMakeFiles/bf_nodes_geometry.dir/Unity/unity_7_cxx.cxx.o -MF source/blender/nodes/geometry/CMakeFiles/bf_nodes_geometry.dir/Unity/unity_7_cxx.cxx.o.d -o source/blender/nodes/geometry/CMakeFiles/bf_nodes_geometry.dir/Unity/unity_7_cxx.cxx.o -c /home/richard/.cache/paru/clone/blender-develop-git/src/build/source/blender/nodes/geometry/CMakeFiles/bf_nodes_geometry.dir/Unity/unity_7_cxx.cxx
cc1plus: internal compiler error: Segmentation fault
0x1ad33c8 internal_error(char const*, ...)
    ???:0
0xa01796 symbol_table::finalize_compilation_unit()
    ???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.archlinux.org/> for instructions.
[ 89% | 5296<1<601 | 0.9bps ] Generating kernel_gfx1010.fatbin
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'blender-develop-git-4.2.r133387.g7f43699ebf5-1': 
error: packages failed to build: blender-develop-git-4.2.r133387.g7f43699ebf5-1
bartoszek commented 7 months ago

Ok, it's a blender bug that was fixes upstream already, just need to cherry pick the commit and patch the package() function.

bartoszek commented 7 months ago

fixed e35db9e37eef7d2ad62520f12f283a85047c88fb

Kagukara commented 7 months ago

Nice, I'm able to build now. Only problem is that the left side bar icons are not there: capture_2024-02-28_19-47-06

Going back to https://github.com/bartoszek/AUR-blender-develop-git/issues/1#issuecomment-1960386808

I've just enabled HIP cycles kernel for amdgpu but have no way to test it, could you give it a shot?

paru -S -a blender-develop-git --mflags="DISABLE_HIP=0 HIP_ARCH=gfx1100 DISABLE_CUDA=1 DISABLE_DRACO=1 FRAGMENT=#branch=blender-v4.1-release"
  • DISABLE_HIP=0 to build amdgpu cycles kernel.
  • HIP_ARCH=gfx1100 to build cycles kernel for RX 7000 architecture.

I'm getting this when launching blender-4.1:

$ blender-4.1
Add-on not loaded: "cycles", cause: No module named 'cycles'
Missing icons: ops.generic.select_box.dat Unable to load from file
Missing icons: none.dat Unable to load from file
Missing icons: ops.generic.cursor.dat Unable to load from file
Missing icons: ops.transform.translate.dat Unable to load from file
Missing icons: ops.transform.rotate.dat Unable to load from file
Missing icons: ops.transform.resize.dat Unable to load from file
Missing icons: ops.transform.transform.dat Unable to load from file
Missing icons: ops.gpencil.draw.dat Unable to load from file
Missing icons: ops.view3d.ruler.dat Unable to load from file
Missing icons: ops.mesh.primitive_cube_add_gizmo.dat Unable to load from file

and of course cycles not showing in system preference settings. image

I'm guessing I need to remove DISABLE_CUDA=1 and install cuda manually?

bartoszek commented 7 months ago

/usr/share/bledner/4.x/script/addons/cycles is missing somehow... sic!

bartoszek commented 7 months ago

Fixed in 0c9b58a01301f97b4390e45e73ad876638180c9f: somehow bundled Python messes up the cycles addon. image

Kagukara commented 7 months ago

To get "GPU Compute" to not be greyed out I have to uncheck and check "AMD Radeon RX 7900 XTX" in "Cycles Render Device" image capture_2024-02-29_20-15-03

When trying to use HIP on my 7900XTX I get:

Memory access fault by GPU node-1 (Agent handle: 0x7afc50c6bc00) on address 0x7af8ec592000. Reason: Page not present or supervisor privilege.
Aborted (core dumped)

This happens on "Supported" and "Experimental".

Running blender-4.1 with gdb it says:

Memory access fault by GPU node-1 (Agent handle: 0x7fff36d43800) on address 0x7ffce0192000. Reason: Page not present or supervisor privilege.

Thread 132 "blender-4.1" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fff1da00000 (LWP 415284)]
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
Downloading source file /usr/src/debug/glibc/glibc/nptl/pthread_kill.c
44       return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;

backtrace:

(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007fffe98ab393 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2  0x00007fffe985a6c8 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007fffe98424b8 in __GI_abort () at abort.c:79
#4  0x00007fff2cc23514 in rocr::core::Runtime::VMFaultHandler (val=<optimized out>, arg=<optimized out>)
    at /usr/src/debug/hsa-rocr/ROCR-Runtime-rocm-6.0.0/src/core/runtime/runtime.cpp:1429
#5  0x00007fff2cc7f642 in rocr::core::Runtime::AsyncEventsLoop () at /usr/include/c++/13.2.1/bits/stl_vector.h:1125
#6  0x00007fff2cc27a6c in rocr::os::ThreadTrampoline (arg=<optimized out>) at /usr/src/debug/hsa-rocr/ROCR-Runtime-rocm-6.0.0/src/core/util/lnx/os_linux.cpp:80
#7  0x00007fffe98a955a in start_thread (arg=<optimized out>) at pthread_create.c:447
#8  0x00007fffe9926a3c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
bartoszek commented 7 months ago

Could you show output of calling /opt/rocm/bin/rocm_agent_enumerator

Kagukara commented 7 months ago
$ /opt/rocm/bin/rocm_agent_enumerator 
gfx000
gfx1100
bartoszek commented 7 months ago

Sorry, but I think I can't help you further... This looks like a bug in rocm or blender itself. Could you try current blender 4.2 main branch.