Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907905 - app-office/libreoffice-7.4.6.2-r1, app-office/libreoffice-7.5.3.2: stuck on oosplash after world update when built with clang + LTO
Summary: app-office/libreoffice-7.4.6.2-r1, app-office/libreoffice-7.5.3.2: stuck on o...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2023-06-05 19:24 UTC by Iade Gesso
Modified: 2023-12-01 04:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (build.info,14.18 KB, text/plain)
2023-06-05 19:27 UTC, Iade Gesso
Details
emerge --info app-office/libreoffice (emerge --info app-office_libreoffice,15.47 KB, text/plain)
2023-06-15 20:08 UTC, Iade Gesso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Iade Gesso 2023-06-05 19:24:12 UTC
Hi,
after a world update, and the switch to python 3.11, none of the LibreOffice Apps start anymore... When I launch them, they load the oosplash executale but nothing appears on the screen and the oosplash process never ends.

I tryed both the currently stable and the ~amd64 packages but nothing changes...


Iade

Reproducible: Always




Selected USE flags

base bluetooth branding clang coinmp cups dbus eds firebird googledrive gstreamer gtk java ldap mariadb pdfimport postgres vulkan -accessibility -custom-cflags -debug -kde -odk -test -valgrind LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" PYTHON_SINGLE_TARGET="python3_11 -python3_10")
Comment 1 Iade Gesso 2023-06-05 19:27:24 UTC
Created attachment 863359 [details]
emerge --info
Comment 2 Andreas Sturmlechner gentoo-dev 2023-06-07 17:26:41 UTC
No problem here, so your first step would be to checkout what your world update did consist of.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-07 17:35:22 UTC
Also, do *not* use -w in *FLAGS. It's a terrible idea and it'll confuse configure tests.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-11 18:06:51 UTC
Grabbing us emerge --info for libreoffice and also its build log would help too.
Comment 5 Iade Gesso 2023-06-12 06:15:09 UTC
(In reply to Sam James from comment #4)
> Grabbing us emerge --info for libreoffice and also its build log would help
> too.

Hi,
the emerge --info is yet in the attachments. I do not have the build.log because the package builds fine, so I lost it.


Iade
Comment 6 Iade Gesso 2023-06-12 06:17:58 UTC
(In reply to Sam James from comment #3)
> Also, do *not* use -w in *FLAGS. It's a terrible idea and it'll confuse
> configure tests.

Ok, I will do it, but... is there a "pious soul" who can me explain how to avoid the -w in *FLAGS because this is the second time that someone ask me to do this, but no one told me how to do it in the past... help!


Iade
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-12 09:23:29 UTC
I'm asking for emerge --info app-office/libreoffice which is slightly different and contains extra information at the bottom.

Also, you're setting -w? fgrep -rsin -- "-w" /etc/portage.
Comment 8 Iade Gesso 2023-06-13 19:50:59 UTC
(In reply to Sam James from comment #7)
> I'm asking for emerge --info app-office/libreoffice which is slightly
> different and contains extra information at the bottom.
> 
> Also, you're setting -w? fgrep -rsin -- "-w" /etc/portage.

Do you mean the -w option in CFLAGS environment variable?


Thanks,

Iade
Comment 9 Iade Gesso 2023-06-15 20:08:27 UTC
Created attachment 863889 [details]
emerge --info app-office/libreoffice

I removed the -w switch from any file in /etc/portage file with the CFLAGS variable
Comment 10 Iade Gesso 2023-06-18 11:16:32 UTC
(In reply to Sam James from comment #7)
> I'm asking for emerge --info app-office/libreoffice which is slightly
> different and contains extra information at the bottom.
> 
> Also, you're setting -w? fgrep -rsin -- "-w" /etc/portage.

Ok, I removed any -w switch from *FLAGS in the files of my /etc/portage folder. After performing a new world upgrade, I re-emerged libreoffice 7.5.4.2 from scratch, but nothing changes... it builds and installs fine, but when I launch it nothing appears on my GNOME desktop and the oosplash process appears to be running and consuming CPU but it does not end.


Iade
Comment 11 Brian Wong 2023-06-19 19:18:45 UTC
The issue is not the recently-stabilized LLVM 16. I just tried rebuilding LibreOffice with LLVM 15 (and the LLVM 16 packages masked) and that didn't help.
Comment 12 Iade Gesso 2023-06-19 21:16:02 UTC
(In reply to Brian Wong from comment #11)
> The issue is not the recently-stabilized LLVM 16. I just tried rebuilding
> LibreOffice with LLVM 15 (and the LLVM 16 packages masked) and that didn't
> help.

Yes, when I wrote yesterday LibreOffice was build using LLVM 15, and today I built it using LLVM 16, but nothing changes...


Iade
Comment 13 Iade Gesso 2023-06-21 17:52:14 UTC
(In reply to Iade Gesso from comment #12)
> (In reply to Brian Wong from comment #11)
> > The issue is not the recently-stabilized LLVM 16. I just tried rebuilding
> > LibreOffice with LLVM 15 (and the LLVM 16 packages masked) and that didn't
> > help.
> 
> Yes, when I wrote yesterday LibreOffice was build using LLVM 15, and today I
> built it using LLVM 16, but nothing changes...
> 
> 
> Iade

UPDATE: I built libreoffice 7.5.3.2 using gcc 11.3.0 but nothing changed... I will enable debug symbols and try again.


Iade
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-21 17:53:40 UTC
A report on IRC mentioned disabling LTO helped.
Comment 15 Iade Gesso 2023-06-22 13:39:04 UTC
(In reply to Sam James from comment #14)
> A report on IRC mentioned disabling LTO helped.

Ok, I disabled LTO and I performed a clean rebuild:
 1. Unmerged libreoffice
 2. Purged my local config from my home (but I already did this before opening the bug, without any sort of result)
 3. Re-emerged libreoffice with debug synmbols and using clang...

Now it loads correctly!

Finally, I re-emerged libreoffice without debug symbols and it still works.


Thanks,

Iade
Comment 16 Guillaume de Volpiano 2023-06-27 10:52:40 UTC
I've posted a bug report on the LibreOffice Bugzilla,

https://bugs.documentfoundation.org/show_bug.cgi?id=156076

Let's see if it gets us somewhere.
Comment 17 Guillaume de Volpiano 2023-06-27 13:46:21 UTC
Confirming that the bug doesn't occur when building with -clang, so it seems to be clang+lto related.
Comment 18 ppw0 2023-08-28 23:19:15 UTC
I can confirm the issue persists in 7.5.5.2 (clang/llvm/libcxx profile with -O2 -march=native -pipe -flto -Werror=odr -Werror=strict-aliasing flags system-wide).
Comment 19 Matt Turner gentoo-dev 2023-11-16 17:45:16 UTC
This seems like an appropriate place to use `filter-lto`.
Comment 20 Larry the Git Cow gentoo-dev 2023-11-29 21:21:42 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b45e1bd93fc1000237d1d1594e31a4bc77c8883a

commit b45e1bd93fc1000237d1d1594e31a4bc77c8883a
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2023-11-29 21:19:58 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2023-11-29 21:21:37 +0000

    app-office/libreoffice: filter-lto with USE=clang
    
    Bug: https://bugs.gentoo.org/907905
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 app-office/libreoffice/libreoffice-7.5.6.2.ebuild    | 3 +++
 app-office/libreoffice/libreoffice-7.5.8.2-r2.ebuild | 3 +++
 app-office/libreoffice/libreoffice-7.5.8.2.ebuild    | 3 +++
 app-office/libreoffice/libreoffice-9999.ebuild       | 3 +++
 4 files changed, 12 insertions(+)
Comment 21 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-01 04:51:23 UTC
I suggested yesterday that we do this unconditionally as it usually indicates UB, but it feels a bit messy with USE=lto being used for LO right now and maybe it's okay for now.