gentooLTO icon indicating copy to clipboard operation
gentooLTO copied to clipboard

media-gfx/blender-2.93 disable lto

Open DukeOwlington opened this issue 4 years ago • 2 comments

Disable lto flag on blender-2.93.2

Version 2.83.17 works fine with lto flag, but version 2.93.2 crashes on startup. GCC version 11.2.0. I didn't check other versions of Blender.

Backtrace is not very detailed but here it is anyway:

# backtrace
/usr/bin/blender-2.93(+0xdeb6a0) [0x55c61678c6a0]
/lib64/libc.so.6(+0x38320) [0x7f705b640320]
/usr/bin/blender-2.93(BLI_ghashutil_strhash_p+0) [0x55c618792090]
/usr/bin/blender-2.93(BLI_ghash_insert+0x19) [0x55c618789ff9]
/usr/bin/blender-2.93(ED_operatortypes_screen+0x10) [0x55c6172f6560]
/usr/bin/blender-2.93(ED_spacetypes_init+0x114) [0x55c6173b37a4]
/usr/bin/blender-2.93(WM_init+0x3d0) [0x55c616c12540]
/usr/bin/blender-2.93(main+0x62a) [0x55c61671cc9a]
/lib64/libc.so.6(__libc_start_main+0xcd) [0x7f705b62b7fd]
/usr/bin/blender-2.93(_start+0x2a) [0x55c61676a25a]

# Python backtrace

Blender-2.93.2 doesn't crush when I exclude a lot of USE flags like openvbd, but I don't think that the issue is in external libraries.

DukeOwlington avatar Oct 05 '21 00:10 DukeOwlington

I found that disabling lto all together is overkill, I added the following to lto.conf and everything seems to launch and run just fine: media-gfx/blender *FLAGS+=-ffat-lto-objects

haimeh avatar Oct 26 '21 05:10 haimeh

I found that disabling lto all together is overkill, I added the following to lto.conf and everything seems to launch and run just fine: media-gfx/blender *FLAGS+=-ffat-lto-objects

You are right, blender 2.93.2 works with this flag. Thank you :) I'll change data in commit.

DukeOwlington avatar Oct 26 '21 10:10 DukeOwlington