FS#74702 - [mold] Don't build with assertions enabled

Attached to Project: Community Packages
Opened by Buovjaga (Buovjaga) - Wednesday, 11 May 2022, 08:17 GMT
Last edited by Toolybird (Toolybird) - Thursday, 19 January 2023, 21:48 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To George Rawlinson (rawlinsong)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I was building LibreOffice with clang and mold with gdb-index enabled and configure's conftest failed with 'Assertion `ctx.debug_info' failed'.
There is a way around this:
https://gerrit.libreoffice.org/c/core/+/134153

But I guess it would be a good idea not to build mold with assertions enabled for production use.
This task depends upon

Closed by  Toolybird (Toolybird)
Thursday, 19 January 2023, 21:48 GMT
Reason for closing:  None
Additional comments about closing:  Reporter says "Sorry for the delay in following up, it works after the upstream code change."
Comment by Buovjaga (Buovjaga) - Thursday, 12 May 2022, 09:01 GMT
Update: Luboš sent a patch upstream https://github.com/rui314/mold/pull/510
Let's hope it helps, but it seems to still make sense to not enable assertions.
Comment by Toolybird (Toolybird) - Wednesday, 13 July 2022, 02:23 GMT
If you mean build with NDEBUG, I don't see other big distros compiling it like that. This software claims speed as a major advantage so I'd be surprised if assertions slowed it down much. I'm tempted to close this one but will defer to PM's better judgement.

Loading...