Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 846947 - dev-qt/qt-creator-6.0.0 - highlighter.h: fatal error: AbstractHighlighter: No such file or directory
Summary: dev-qt/qt-creator-6.0.0 - highlighter.h: fatal error: AbstractHighlighter: No...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Davide Pesavento
: 864112 (view as bug list)
Depends on:
Reported: 2022-05-22 09:25 UTC by Toralf Förster
Modified: 2023-09-20 08:35 UTC (History)
8 users (show)

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

emerge-info.txt (emerge-info.txt,18.62 KB, text/plain)
2022-05-22 09:25 UTC, Toralf Förster
dev-qt:qt-creator-6.0.0:20220521-222909.log.bz2 (dev-qt:qt-creator-6.0.0:20220521-222909.log.bz2,19.94 KB, application/x-bzip)
2022-05-22 09:25 UTC, Toralf Förster
emerge-history.txt.bz2 (emerge-history.txt.bz2,78.97 KB, application/x-bzip)
2022-05-22 09:25 UTC, Toralf Förster
environment (environment,76.46 KB, text/plain)
2022-05-22 09:25 UTC, Toralf Förster
etc.portage.tar.bz2 (etc.portage.tar.bz2,24.10 KB, application/x-bzip)
2022-05-22 09:25 UTC, Toralf Förster
temp.tar.bz2 (temp.tar.bz2,39.45 KB, application/x-bzip)
2022-05-22 09:25 UTC, Toralf Förster

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-05-22 09:25:16 UTC
too long lines were shrinked:

/usr/lib64/qt5/bin/uic codestyleselectorwidget.ui -o .uic/ui_codestyleselectorwidget.h
/usr/lib64/qt5/bin/uic highlightersettingspage.ui -o .uic/ui_highlightersettingspage.h
x86_64-pc-linux-gnu-g++ -c -pipe -march=native -fno-diagnostics-color -O2 -Wno-noexcept-type -std=gnu++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -D_REENTRANT -fPIC -DTEXTEDITOR_LIBRARY -D'RELATIVE_PLUGIN_PATH="../lib64/qtcreator/plugins"' -D'RELATIVE_LIBEXEC_PATH="../libexec/q
In file included from texteditorplugin.cpp:32:
highlighter.h:32:10: fatal error: AbstractHighlighter: No such file or directory
   32 | #include <AbstractHighlighter>
      |          ^~~~~~~~~~~~~~~~~~~~~


  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd-j4-20220515-232600


gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.1.0 *
clang/llvm (if any):
clang version 14.0.3
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
Python 3.9.13
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.60.0
  [2]   rust-1.60.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11  system-vm
  [3]   openjdk-bin-17 

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit c7a8aaf65da431869874d2fbe7ed0d4674d3da5b
Author: Repository mirror & CI <>
Date:   Sat May 21 22:18:11 2022 +0000

    2022-05-21 22:18:11 UTC

emerge -qpvO dev-qt/qt-creator
[ebuild  N    ] dev-qt/qt-creator-6.0.0  USE="autotest clang cmake designer git help lsp qmake qml systemd -android -autotools -baremetal -bazaar -beautifier -boot2qt -clearcase -conan -cppcheck -ctfvisualizer -cvs -doc -docker -glsl -incredibuild -mcu -mercurial -meson -modeling -nim -perforce -perfprofiler -python -qbs -qmlprofiler -qnx -remotelinux -scxml -serialterminal -silversearcher -subversion -test (-valgrind) -webassembly -webengine" L10N="-cs -da -de -fr -hr -ja -pl -ru -sl -uk -zh-CN -zh-TW"
Comment 1 Toralf Förster gentoo-dev 2022-05-22 09:25:17 UTC
Created attachment 779966 [details]
Comment 2 Toralf Förster gentoo-dev 2022-05-22 09:25:18 UTC
Created attachment 779969 [details]
Comment 3 Toralf Förster gentoo-dev 2022-05-22 09:25:19 UTC
Created attachment 779972 [details]
Comment 4 Toralf Förster gentoo-dev 2022-05-22 09:25:21 UTC
Created attachment 779975 [details]
Comment 5 Toralf Förster gentoo-dev 2022-05-22 09:25:22 UTC
Created attachment 779978 [details]
Comment 6 Toralf Förster gentoo-dev 2022-05-22 09:25:23 UTC
Created attachment 779981 [details]
Comment 7 Andrew Black 2022-06-02 14:07:25 UTC
This appears to be caused by the ebuild setting an incorrect path to the kde-frameworks/syntax-highlighting include directory. The following patch to the ebuild enables it to compile (for me):

--- qt-creator-6.0.0.ebuild	2021-12-02 19:39:47.000000000 +0000
+++ /tmp/qt-creator-6.0.0.ebuild	2022-06-02 14:45:11.028990879 +0100
@@ -204,7 +204,7 @@ src_configure() {
 	eqmake5 IDE_LIBRARY_BASENAME="$(get_libdir)" \
-		KSYNTAXHIGHLIGHTING_INCLUDE_DIR="${EPREFIX}/usr/include/KF5/KSyntaxHighlighting" \
+		KSYNTAXHIGHLIGHTING_INCLUDE_DIR="${EPREFIX}/usr/include/KF5/KSyntaxHighlighting/KSyntaxHighlighting" \
 		$(use clang && echo LLVM_INSTALL_DIR="$(get_llvm_prefix ${LLVM_MAX_SLOT})") \
 		$(use qbs && echo QBS_INSTALL_DIR="${EPREFIX}/usr") \
 		$(use systemd && echo CONFIG+=journald) \
Comment 8 Martin Gebert 2022-06-02 20:57:53 UTC
I can confirm that this patch fixes the build.
Comment 9 Paweł Metelski 2022-06-10 01:07:20 UTC
Without your patch, it builds fine with stable version kde-frameworks/syntax-highlighting-5.92.0-r1 but not with the soft-masked 5.94.0.

Does it work the other way around with the patch?

Not so sure after looking at this:
Comment 10 MaxKarlErnstPlanck 2022-06-17 09:51:41 UTC
It seems more like a bug in kde-frameworks/syntax-highlighting
AbstractHighlighter should be at `/usr/include/KF5/KSyntaxHighlighting/AbstractHighlighter` not at `/usr/include/KF5/KSyntaxHighlighting/KSyntaxHighlighting/AbstractHighlighter`
Comment 11 Davide Pesavento gentoo-dev 2022-08-07 01:11:24 UTC
*** Bug 864112 has been marked as a duplicate of this bug. ***
Comment 12 nael 2022-08-09 18:12:58 UTC
The patch works here too, with =kde-frameworks/syntax-highlighting-5.96.0
Comment 13 myoung008 2022-08-27 21:08:47 UTC
Patch works for me.  kde frameworks 5.97
Comment 14 Petric Frank 2022-09-08 16:44:46 UTC
Patch works for me too.
Comment 15 Larry the Git Cow gentoo-dev 2022-10-29 15:08:15 UTC
The bug has been referenced in the following commit(s):

commit 157b590574f3ca93b77040d9cc788e367d02c51b
Author:     Peter Levine <>
AuthorDate: 2022-08-06 04:55:16 +0000
Commit:     Sam James <>
CommitDate: 2022-10-29 15:07:21 +0000

    dev-qt/qt-creator: add 8.0.1
    Switched from the qmake to cmake buildsystem.  Added support for the
    Coco code coverage tool. The 'git' USE flag now also builds the gitlab
    plugin. The 'wayland' flag was added to enforce built-with-use
    dependency. 'imageviewer' flag is added for conditional dependence on
    dev-qt/qtsvg.  clangd functionality now depends on >=clang-14.*.
    Signed-off-by: Peter Levine <>
    Signed-off-by: Sam James <>

 dev-qt/qt-creator/Manifest                |   1 +
 dev-qt/qt-creator/metadata.xml            |   2 +
 dev-qt/qt-creator/qt-creator-8.0.1.ebuild | 440 ++++++++++++++++++++++++++++++
 3 files changed, 443 insertions(+)
Comment 16 Ionen Wolkens gentoo-dev 2023-09-20 08:35:46 UTC
Assume(?) this was meant to be closed by comment #15. Either way qt-creator-11.0.2 does not use system kde-frameworks/syntax-highlighting at the moment (may be revisited when a Qt6 version comes around), so it cannot run into this.