Package Details: blender-git 4.3.r137458.g22d352daccf-1

Git Clone URL: https://aur.archlinux.org/blender-git.git (read-only, click to copy)
Package Base: blender-git
Description: A fully integrated 3D graphics creation suite (development)
Upstream URL: https://blender.org/
Licenses: GPL
Conflicts: blender, blender-4.1-bin
Provides: blender
Submitter: stativ
Maintainer: fbrennan (bartus)
Last Packager: bartus
Votes: 76
Popularity: 0.004500
First Submitted: 2013-12-05 10:11 (UTC)
Last Updated: 2024-06-13 09:58 (UTC)

Required by (61)

Sources (7)

Latest Comments

1 2 3 4 5 6 .. 38 Next › Last »

insanemal commented on 2024-05-07 12:50 (UTC)

Hey, I've got a bit of fun here. I'm running "bleeding edge" mesa/GPU drivers for my 7900XTX and they are compiled with LLVM 19. It seems this builds with default LLMV of 17.

I can't run blender currently. It crashes on launch. I think it's the mismatched LLVM versions.

How can I build this against llvm 19?

I've got LLVM-minimal-git and clang-minimal-git 19 packages,but I assume I need more to get it to build?

microcoder commented on 2024-04-19 12:57 (UTC)

Thanks @stevesp ! It helped me. For those who have the same error you can set variable LDFLAGS into begin build() function in your BKGBUILD file:

build() {
  # Fix for error build: "/usr/bin/ld.gold: pack-relative-relocs: unknown -z option"
  export LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now"

...

stevesp commented on 2024-04-19 09:20 (UTC) (edited on 2024-04-19 09:21 (UTC) by stevesp)

@microcoder: I had the same linker error as you. For me the problem was the linker flags in the makepkg.config file. Removing the last few flags (-Wl,-z,pack-relative-relocs) in the LDFLAGS variable helped. Hope that helps!

stevesp commented on 2024-04-19 08:57 (UTC) (edited on 2024-04-19 09:03 (UTC) by stevesp)

@kayosiii (commenting on @Kagura's problem): Thanks for the fix. This worked also for me. It can be fixed in the PKGBUILD file directly, by adding the following line to the package() function after the other sed command:

sed -ie 's/\/usr\/lib\/python\//\/usr\/lib64\/python3.11\/site-packages\/MaterialX/' source/creator/cmake_install.cmake

In addition, here is the git diff:

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
modified: PKGBUILD
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@ PKGBUILD:223 @ package() {
  _suffix=${pkgver%%.r*}
  cd "$srcdir/build"
  sed -ie 's/\(file(INSTALL\)\(.*blender\.1"\))/#\1\2)/' source/creator/cmake_install.cmake
  sed -ie 's/\/usr\/lib\/python\//\/usr\/lib64\/python3.11\/site-packages\/MaterialX/' source/creator/cmake_install.cmake
  BLENDER_SYSTEM_RESOURCES="${pkgdir}/usr/share/blender/${_suffix}" make DESTDIR="$pkgdir" install
  #find . -name 'cmake_install.cmake' -exec sed -i -e 's|/usr/lib64/|'"$pkgdir"'/usr/lib/|g' {} \;
  #cmake --install . --prefix "$pkgdir/usr"

microcoder commented on 2024-04-05 03:20 (UTC)

[  0%] Linking CXX executable ../../../bin/datatoc
/usr/bin/ld.gold: pack-relative-relocs: unknown -z option
/usr/bin/ld.gold: use the --help option for usage information
collect2: error: ld returned 1 exit status
make[3]: *** [source/blender/datatoc/CMakeFiles/datatoc.dir/build.make:97: bin/datatoc] Error 1
make[2]: *** [CMakeFiles/Makefile2:4740: source/blender/datatoc/CMakeFiles/datatoc.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[  1%] Built target bf_intern_libmv
make[1]: *** [CMakeFiles/Makefile2:8437: source/creator/CMakeFiles/blender.dir/rule] Error 2
make: *** [Makefile:2383: blender] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

microcoder commented on 2024-04-01 08:07 (UTC)

[  1%] Linking CXX static library ../../lib/libbf_intern_libmv.a
[  1%] Built target bf_intern_libmv
make[1]: *** [CMakeFiles/Makefile2:8390: source/creator/CMakeFiles/blender.dir/rule] Error 2
make: *** [Makefile:2370: blender] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

ruestique commented on 2024-03-13 09:45 (UTC)

-- Installing: /home/chibo/.cache/paru/clone/blender-git/pkg/blender-git/usr/./share/blender/4.2/python/lib/python3.11/site-packages/cython.py CMake Error at source/creator/cmake_install.cmake:330 (file): file INSTALL cannot find "/usr/lib/python": No such file or directory. Call Stack (most recent call first): cmake_install.cmake:51 (include)

Python obviously here -_-

kayosiii commented on 2024-03-06 16:00 (UTC) (edited on 2024-03-06 16:05 (UTC) by kayosiii)

@bartus commenting on @Kagura's problem - I have virtually an identical issue here.

Both building this package and building directly from blender.org git servers.

my version of the offending line in source/creator/cmake_install.cmake looks like this

file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/./4.2/python/lib/python3.11/site-packages" 
TYPE DIRECTORY MESSAGE_LAZY FILES "/usr/lib/python/" REGEX "/\\.svn$" EXCLUDE REGEX "/\\_\\_pycache\\_\\_$" EXCLUDE REGEX "/[^/]*\\.pyc$" EXCLUDE REGEX "/[^/]*\\.pyo$" EXCLUDE)

I have managed to successfully install this this blender by changing /usr/lib/python in this file to /usr/lib64/python3.11/site-packages/MaterialX a package that is supposed to be installed in the official release. In order to figure out where the build system is failing it would be very useful to look at the list of folders that your build installing into into [blender]/[version]/python/lib/python3.11/site-packages

Kagukara commented on 2024-02-12 19:10 (UTC)

@bartus I've submitted an issue to the GitHub as to not fill the comments here with issues not to do with this package at the moment.

bartus commented on 2024-02-12 16:42 (UTC) (edited on 2024-02-12 16:43 (UTC) by bartus)

@Kagukara yes, this is intended behaviour, check pinned comment in blender-develop-git https://aur.archlinux.org/packages/blender-develop-git#comment-689539