Bug 112252 - Failed to Start on Fedora 26: llvm_codegen: Assertion `error == 0' failed
Summary: Failed to Start on Fedora 26: llvm_codegen: Assertion `error == 0' failed
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
5.4.1.1 rc
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:6.3.0
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-06 04:53 UTC by Kevin Suo
Modified: 2019-04-29 09:37 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Suo 2017-09-06 04:53:37 UTC
The program does not run under Fedora 26 x64. Error message in terminal is:

$ libreoffice5.4 --writer
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
sh: /usr/bin/clang++: No such file or directory
soffice.bin: /builddir/build/BUILD/pocl-0.14/lib/CL/devices/common.c:127: llvm_codegen: Assertion `error == 0' failed.

$ uname -a
Linux x230i-kevin-gslaw 4.12.9-300.fc26.x86_64 #1 SMP Fri Aug 25 13:09:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/fedora-release 
Fedora release 26 (Twenty Six)

LibreOffice_5.4.1.1_Linux_x86-64_rpm.tar.gz was downloaded from LibreOffice offical website.

Bug is also reproducible with version 5.4.1.2 release.
Comment 1 Julien Nabet 2017-09-06 08:54:41 UTC
I may be wrong but I think LO packages for Linux on official website, are for distribution maintainers.
Indeed, there may be missing dependencies here.

Did you check in Fedora repository? (see https://fedoraproject.org/wiki/Repositories)
Comment 2 Kevin Suo 2017-09-06 09:02:48 UTC
(In reply to Julien Nabet from comment #1)
> I may be wrong but I think LO packages for Linux on official website, are for distribution maintainers.

Oh, really? I don't think so.

> Did you check in Fedora repository?
The Fedora offical repository only offers LibreOffice 5.3.6.1.
To test the most up-to-date version of LibreOffice, I am always using the builds from LibreOffice website. It works all the time - this is the first time it fails to run.
Comment 3 Kevin Suo 2017-09-07 06:08:34 UTC
There is a similar (may be the same) bug report on Redhat bugzilla which has many duplicates:
https://bugzilla.redhat.com/show_bug.cgi?id=1432468
Comment 4 Stephan Bergmann 2017-09-07 06:38:30 UTC
(In reply to Kevin Suo from comment #3)
> https://bugzilla.redhat.com/show_bug.cgi?id=1432468

So lets leave this bug at Fedora.  It appears to be an issue in one of the distro-provided libraries that LO happens to indirectly use underneath, so nothing we can do about it here.
Comment 5 Kevin Suo 2017-10-11 01:38:45 UTC
As suggested in redhat bugzilla, installing clang solves the problem. Maybe, LibreOffice should depend on clang?
Comment 6 Commit Notification 2019-04-29 08:40:52 UTC
Luboš Luňák committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/101eea01c778ad255d3c8467e06643b23ff6bd76%5E%21

test in a separate helper process if OpenCL crashes (tdf#112252)

It will be available in 6.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 Mike Kaganski 2019-04-29 09:37:59 UTC
(In reply to Commit Notification from comment #6)
> https://git.libreoffice.org/core/+/101eea01c778ad255d3c8467e06643b23ff6bd76%5E%21

Wow! I thought we already tested OpenCL in a separate process (see https://lists.freedesktop.org/archives/libreoffice/2017-November/078810.html for a similar proposal for broken Java) :-)