Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659896 - app-office/libreoffice-6.1.9999 fatal error: hb.h: No such file or directory
Summary: app-office/libreoffice-6.1.9999 fatal error: hb.h: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-02 19:11 UTC by George Diamantopoulos
Modified: 2018-07-22 12:39 UTC (History)
1 user (show)

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


Attachments
output of emerge --info (emerge-info.txt,6.50 KB, text/plain)
2018-07-02 19:12 UTC, George Diamantopoulos
Details
build log (libreoffice-build.log.bz2,242.45 KB, application/x-bzip)
2018-07-02 19:14 UTC, George Diamantopoulos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description George Diamantopoulos 2018-07-02 19:11:06 UTC
I believe this build failure to be specific to recent versions of harfbuzz. Compilation fails with:

[CXX] vcl/unx/kde5/KDE5SalGraphics.cxx
In file included from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/inc/unx/printergfx.hxx:24,
                 from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/inc/unx/genprn.h:24,
                 from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/inc/unx/geninst.h:29,
                 from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/inc/unx/salinst.h:26,
                 from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/inc/unx/saldata.hxx:30,
                 from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/unx/kde5/KDE5Data.hxx:23,
                 from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/unx/kde5/KDE5Data.cxx:25:
/var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/inc/sallayout.hxx:28:10: fatal error: hb.h: No such file or directory
 #include <hb.h>
          ^~~~~~
compilation terminated.
make[1]: *** [/var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/solenv/gbuild/LinkTarget.mk:293: /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/workdir/CxxObject/vcl/unx/kde5/KDE5Data.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/inc/unx/printergfx.hxx:24,
                 from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/inc/unx/genprn.h:24,
                 from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/inc/unx/geninst.h:29,
                 from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/inc/unx/salinst.h:26,
                 from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/unx/kde5/KDE5XLib.hxx:25,
                 from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/unx/kde5/KDE5SalDisplay.cxx:27:
/var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/inc/sallayout.hxx:28:10: fatal error: hb.h: No such file or directory
 #include <hb.h>
          ^~~~~~
compilation terminated.
make[1]: *** [/var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/solenv/gbuild/LinkTarget.mk:291: /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/workdir/CxxObject/vcl/unx/kde5/KDE5SalDisplay.o] Error 1
In file included from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/inc/salgdi.hxx:27,
                 from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/inc/unx/salgdi.h:33,
                 from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/unx/kde5/KDE5SalFrame.hxx:27,
                 from /var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/unx/kde5/KDE5SalFrame.cxx:34:
/var/tmp/portage/app-office/libreoffice-6.1.9999/work/libreoffice-6.1.9999/vcl/inc/sallayout.hxx:28:10: fatal error: hb.h: No such file or directory
 #include <hb.h>
          ^~~~~~
compilation terminated.

I'll attach build.log and emerge --info shortly

Versions involved:

gdiamantopoulos-laptop ~ # emerge -pv harfbuzz libreoffice

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-libs/harfbuzz-1.8.1:0/0.9.18::gentoo  USE="cairo glib graphite icu introspection truetype -debug -fontconfig -static-libs {-test}" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild  N    *] app-office/libreoffice-6.1.9999::gentoo  USE="bluetooth branding cups dbus gtk kde -coinmp -debug -eds -firebird -googledrive -gstreamer -gtk2 -java -libressl -mysql -odk -pdfimport -postgres {-test} -vlc" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_4 -python3_5" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5" 0 KiB

Total: 2 packages (1 new, 1 reinstall), Size of downloads: 0 KiB
Comment 1 George Diamantopoulos 2018-07-02 19:12:21 UTC
Created attachment 538142 [details]
output of emerge --info
Comment 2 George Diamantopoulos 2018-07-02 19:14:01 UTC
Created attachment 538144 [details]
build log
Comment 3 George Diamantopoulos 2018-07-02 19:14:53 UTC
P.S. Headers seem to be present, however:

gdiamantopoulos-laptop ~ # equery f harfbuzz | egrep '\hb.h$'
/usr/include/harfbuzz/hb.h
Comment 4 Andreas Sturmlechner gentoo-dev 2018-07-07 13:36:07 UTC
6.0.5.2 builds fine with harfbuzz-1.8.2 so this build failure seems to be caused by LO 6.1 branch alone.
Comment 5 George Diamantopoulos 2018-07-07 14:36:41 UTC
Should this be reported upstream?

I've just tried with harfbuzz-1.8.2, same issue...
Comment 6 Andreas Sturmlechner gentoo-dev 2018-07-07 14:46:48 UTC
Yes it should be reported, this is not fixed as of 6.1.0.1. I'm curious why this is only caught by us...
Comment 7 George Diamantopoulos 2018-07-09 20:20:26 UTC
I posted this to libreoffice mailing list (wiki says build errors belong there, not the bug tracker).

Fingers crossed...
Comment 8 George Diamantopoulos 2018-07-13 15:46:49 UTC
So far I've gotten a single comment back on libreoffice mailing list by Michael Stahl:

> on Fedora 28, i get:

>> pkg-config --cflags harfbuzz
>> -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include

>given the location of /usr/include/harfbuzz/hb.h, the first include path
>in that output is what makes this work.

This is what pkg-config will produce on my gentoo system as well. Does this indicate an issue with the ebuild?
Comment 9 Andreas Sturmlechner gentoo-dev 2018-07-17 14:39:31 UTC
I've just reproduced the same build error with LO-6.1.0.1 and harfbuzz-1.7.6. So this is unrelated to harfbuzz itself, and the diff between 6.0.5.2-r1 and 6.1.9999 ebuilds is minimal as well - it is likely a change upstream causing that error.
Comment 10 George Diamantopoulos 2018-07-17 15:03:52 UTC
Someone on the libreoffice mailing list recommended trying this patch:

> https://gerrit.libreoffice.org/gitweb?p=core.git;a=commitdiff;h=c5b8b1a3c0247773bd613cba1a183fc8961d38fc

I'm having some stability issues with high I/O right now, so I haven't been able to try it yet. Will post update when this changes.
Comment 11 George Diamantopoulos 2018-07-18 17:05:54 UTC
I can now confirm that the patch mentioned in my previous post resolves this problem.
Comment 12 Andreas Sturmlechner gentoo-dev 2018-07-18 17:08:06 UTC
Yes, same here (it stopped with a different error :)). Can you confirm the fix upstream so that it ends up in 6.1 branch?
Comment 13 George Diamantopoulos 2018-07-18 17:51:50 UTC
I've just posted on the mailing list thread I started confirming the fix. Is there another place I should post my findings additionally?
Comment 14 Andreas Sturmlechner gentoo-dev 2018-07-18 17:53:34 UTC
Thanks, I assume that will suffice. Please add the start of your mailing list conversation to $URL so we are also able to track its solution.
Comment 15 Andreas Sturmlechner gentoo-dev 2018-07-22 12:39:32 UTC
Fixed in 6.1.0.2.