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
Created attachment 538142 [details] output of emerge --info
Created attachment 538144 [details] build log
P.S. Headers seem to be present, however: gdiamantopoulos-laptop ~ # equery f harfbuzz | egrep '\hb.h$' /usr/include/harfbuzz/hb.h
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.
Should this be reported upstream? I've just tried with harfbuzz-1.8.2, same issue...
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...
I posted this to libreoffice mailing list (wiki says build errors belong there, not the bug tracker). Fingers crossed...
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?
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.
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.
I can now confirm that the patch mentioned in my previous post resolves this problem.
Yes, same here (it stopped with a different error :)). Can you confirm the fix upstream so that it ends up in 6.1 branch?
I've just posted on the mailing list thread I started confirming the fix. Is there another place I should post my findings additionally?
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.
Fixed in 6.1.0.2.