Blender 5.0.0 - FreeBSD 16 - current

Here is new Blender 5.0.0, working like a charm....

Current issues : GPU CYCLES produces Error on console, however, Ray Tracing works as expected.

Unpack in ${PORS_DIR}/graphics


portmaster -Bdg graphics/blender50

It is possible to have Blender 4.2, 4.5.3 and 5.0 at one time however, Port Maintainer would have to keep bin files renamed according to version, and draco lib would have to be kept in ${USR_LOCAL}/share/${BLENDER_VER}/** instead.

Attached port and system information.
graphics/embree and math/eigen3 port are required.

Here is how I install it:
cd blender50 && make package
pkg add dir/blender_package.archive

Didn't finish install and like other make options are not tested. I just wanted to get Blender 5.0 on my bench...

New Port requested: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291425

port patch to get Blender 5.0.0 with Embree 4 support: https://bugs.freebsd.org/bugzilla/attachment.cgi?id=265885&action=diff
 

Attachments

  • system-info.txt
    system-info.txt
    14.9 KB · Views: 108
  • blender50.zip
    blender50.zip
    17.2 KB · Views: 138
  • shot-2025-12-05_15-22-37.jpg
    shot-2025-12-05_15-22-37.jpg
    533.3 KB · Views: 101
Might give it a shot on my 15-STABLE this weekend, if I have the time for it.
 
I gave it a try on 15-STABLE. The primary issue with building is this:

Code:
../graphics/blender50/work/blender-5.0.0/source/blender/blenlib/intern/math_half.cc:323:12: error: always_inline function '_mm_blendv_epi8' requires target feature 'sse4.1', but would be inlined into function 'float_to_half_make_finite_array' that is compiled without support for 'sse4.1'
  323 |       h4 = _mm_blendv_epi8(h4, inf_res, is_inf);

Looks to me like it is similar to the issue described here about sse4.1: Bug 282988 - graphics/blender: update to 4.3.0
I did apply the extra patch "extra-patch-simd-off", which I have taken form graphics/blender but the problem remains.

akil > Before digging deeper on my end. Do you have already a fix for that ?
 
I gave it a try on 15-STABLE. The primary issue with building is this:

Code:
../graphics/blender50/work/blender-5.0.0/source/blender/blenlib/intern/math_half.cc:323:12: error: always_inline function '_mm_blendv_epi8' requires target feature 'sse4.1', but would be inlined into function 'float_to_half_make_finite_array' that is compiled without support for 'sse4.1'
  323 |       h4 = _mm_blendv_epi8(h4, inf_res, is_inf);

Looks to me like it is similar to the issue described here about sse4.1: Bug 282988 - graphics/blender: update to 4.3.0
I did apply the extra patch "extra-patch-simd-off", which I have taken form graphics/blender but the problem remains.

akil > Before digging deeper on my end. Do you have already a fix for that ?
I saw this issue when I disabled SIMD for graphics/blender45 (this port was cloned from graphics/blender without patches, distinfo updated to 4.5.5). Then I updated simd patch for 4.5.5, however it ends with same error message like for Blender 5.0.0. I haven't dig around because 5.0.0 has issue with Illegal Instruction and Bus Error for 2 demo projects from their site. I don't have any promising progress in both areas.
 
I saw this issue when I disabled SIMD for graphics/blender45 (this port was cloned from graphics/blender without patches, distinfo updated to 4.5.5). Then I updated simd patch for 4.5.5, however it ends with same error message like for Blender 5.0.0. I haven't dig around because 5.0.0 has issue with Illegal Instruction and Bus Error for 2 demo projects from their site. I don't have any promising progress in both areas.
Just builded again on 15-STABLE as well as on CURRENT. Each with SIMD enabled. Both succeeded. Did not do any major runtime tests though.
 
Just builded again on 15-STABLE as well as on CURRENT. Each with SIMD enabled. Both succeeded. Did not do any major runtime tests though.
I have updated graphics/blender5 with CUDA support on FreeBSD.
BugZilla: graphics/blender5

Known issues:
1. SIMD-Off - patch not yet done
2. SIMD-On
2.1 Storyboarding demo official project - cause Illegal Instruction
2.2 SDF Boolean Mixer demo official project - works if port is compiled with DEBUG, otherwise BusError.
Both Demo projects doesn't work for me. I've tried to disable SSE, AVX, etc... but it always failed. The only difference is point 2.2, enabling Debug didn't crash demo SDL Bolean Mixer.
 
Back
Top