Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: joebber on 09 September 2024, 20:40:16

Title: Blender error while loading shared libraries
Post by: joebber on 09 September 2024, 20:40:16
When I start blender I get this error.
Code: [Select]
/usr/bin/blender: error while loading shared libraries: libboost_python312.so.1.83.0: cannot open shared object file: No such file or directory
Its linking to the old library
Code: [Select]
lddtree $(which blender) | grep boost
        libboost_thread.so.1.86.0 => /usr/lib/libboost_thread.so.1.86.0
        libboost_filesystem.so.1.86.0 => /usr/lib/libboost_filesystem.so.1.86.0
            libboost_atomic.so.1.86.0 => /usr/lib/libboost_atomic.so.1.86.0
    libboost_python312.so.1.83.0 => None
        libboost_python312.so.1.86.0 => /usr/lib/libboost_python312.so.1.86.0
        libboost_iostreams.so.1.86.0 => /usr/lib/libboost_iostreams.so.1.86.0
    libboost_filesystem.so.1.83.0 => None
    libboost_locale.so.1.83.0 => None
    libboost_thread.so.1.83.0 => None
    libboost_iostreams.so.1.83.0 => None
I have tired reinstalling both blender and boost-libs
Title: Re: Blender error while loading shared libraries
Post by: n0q on 15 September 2024, 11:01:01
Same, reinstalling/downgrading didn't work for me either. Looks like a packaging problem. For some reason updating Blender always leads to the same errors with library links . I'm using the unofficial AppImage by erroreutopia until it's fixed.
Title: Re: Blender error while loading shared libraries
Post by: corysanin on 16 September 2024, 01:47:20
I've been having issues getting it to build. In the meantime, if you have Arch repos enabled, installing extra/blender will work.
Title: Re: Blender error while loading shared libraries
Post by: TheYellowArchitect on 25 September 2024, 16:13:03
I have the exact same issue, and I updated today, its definitely a repo problem
Title: Re: Blender error while loading shared libraries
Post by: corysanin on 25 September 2024, 21:25:17
Here's the build log (https://paste.artixlinux.org/view/94351d8c) if anyone wants to take a crack at it. Still not building.
Title: Re: Blender error while loading shared libraries
Post by: TheYellowArchitect on 06 October 2024, 23:02:17
Updated everything today, still not running
Title: Re: Blender error while loading shared libraries
Post by: corysanin on 07 October 2024, 05:18:06
Updated everything today, still not running

Obviously.
Title: Re: Blender error while loading shared libraries
Post by: gripped on 10 October 2024, 03:21:21
Here's the build log (https://paste.artixlinux.org/view/94351d8c) if anyone wants to take a crack at it. Still not building.
For what it's worth it fails in the same place, same errors, building in a clean arch chroot.

At some point if I remember I'll try it on bare metal as the only other thing I can think of is kernel differences ?
Otherwise how Arch are producing the package I'm not sure ?
Title: Re: Blender error while loading shared libraries
Post by: corysanin on 10 October 2024, 05:55:06
For what it's worth it fails in the same place, same errors, building in a clean arch chroot.

At some point if I remember I'll try it on bare metal as the only other thing I can think of is kernel differences ?
Otherwise how Arch are producing the package I'm not sure ?

Thank you for the investigation! I don't have enough ram on my personal machine to attempt builds locally so I couldn't try in Arch. You never know how the Arch maintainers build stuff because they don't always build in a clean chroot anyway.
Title: Re: Blender error while loading shared libraries
Post by: gripped on 10 October 2024, 09:56:05
Looking at it a bit more this seems to be the main problem in your build log
Line 2094
Code: [Select]
[2024-09-15T23:08:12.916Z] icpx: warning: ocloc tool could not be found and is required for AOT compilation. See: https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/compilation/ahead-of-time-compilation.html for more information. [-Waot-tool-not-found]
But an ocloc binary is not part of any of the dependencies in the Arch PKGBUILD?

On Arch
Code: [Select]
pkgfile ocloc
extra/intel-oneapi-basekit
But intel-compute-runtime (is a dependency) does contain a /usr/bin/ocloc-24.35.1
Linking that to  /usr/bin/ocloc made that error go away but there are now other errors (strangely they appear to occur earlier than the ocloc one ?) all following a similar pattern
Spoiler (click to show/hide)

It looks like maybe the installed cuda and gcc aren't getting along?
I very briefly tried using gcc13 but got nowhere with that.
I accept defeat for now.
Title: Re: Blender error while loading shared libraries
Post by: corysanin on 15 October 2024, 08:58:07
Changed nothing and now it builds. Fingers crossed the rebuild for ffmpeg 7.1 also succeeds.
Title: Re: Blender error while loading shared libraries
Post by: Shoun2137 on 16 October 2024, 00:33:16
I'd argue that Blender should be just downloaded from official website as a portable package due to having separate python binaries and environment, Arch/Artix have their own system env that blender addons could inadvertently fuck over simply because most of the new addons can have internet access and could use something pip-like to install whatever it wants to the system environment.
Title: Re: Blender error while loading shared libraries
Post by: TheYellowArchitect on 18 October 2024, 15:21:52
It is solved by default by doing `sudo pacman -Syu`, confirmed it today. It installed `blender-17:4.2.3-1` and it works out of the box. I did nothing recommended above. Thank you to whoever fixed it <3