Skip to content

Conversation

@DukeOwlington
Copy link

@DukeOwlington DukeOwlington commented Oct 5, 2021

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.

@haimeh
Copy link

haimeh commented Oct 26, 2021

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

@DukeOwlington
Copy link
Author

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.

As user @haimeh found out, blender works fine with ffat-lto-objects. I also think that it's better to leave this change for version 2.93.0 and above.
@DukeOwlington DukeOwlington changed the title media-gfx/blender-2.93.2 disable lto media-gfx/blender-2.93 disable lto Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants