Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Failing to emerge some kde-apps that worked before

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
guicoelho
n00b
n00b
Posts: 15
Joined: Mon Aug 10, 2020 1:22 pm

Failing to emerge some kde-apps that worked before

  • Quote

Post by guicoelho » Thu Nov 27, 2025 6:54 pm

Hello everyone,

Recently I was updating @world, which was cancelled because some kde-apps could not be compiled. Basically it is all these ones:

Code: Select all

 *  (kde-apps/kteatime-25.08.3:6/6::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/kde-apps/kteatime-25.08.3/temp/build.log'
 *  (kde-apps/kate-25.08.3:6/6::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/kde-apps/kate-25.08.3/temp/build.log'
 *  (kde-apps/kwrite-25.08.3:6/6::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/kde-apps/kwrite-25.08.3/temp/build.log'
 *  (kde-apps/krdc-25.08.3:6/6::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/kde-apps/krdc-25.08.3/temp/build.log'
 *  (kde-apps/kget-25.08.3:6/6::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/kde-apps/kget-25.08.3/temp/build.log'
 *  (kde-apps/k3b-25.08.3:6/6::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/kde-apps/k3b-25.08.3/temp/build.log'
 *  (kde-apps/kdeutils-meta-25.08.3:0/0::gentoo, ebuild scheduled for merge)
 *  (kde-apps/kde-apps-meta-25.08.3:0/0::gentoo, ebuild scheduled for merge)
 *  (kde-apps/kdenetwork-meta-25.08.3:0/0::gentoo, ebuild scheduled for merge)
 *  (kde-apps/kdecore-meta-25.08.3:0/0::gentoo, ebuild scheduled for merge)
 *  (kde-apps/kdemultimedia-meta-25.08.3-r1:0/0::gentoo, ebuild scheduled for merge)
 *  (kde-plasma/spectacle-6.5.3:6/6::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/kde-plasma/spectacle-6.5.3/temp/build.log'
 *  (kde-apps/konsole-25.08.3:6/6::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/kde-apps/konsole-25.08.3/temp/build.log'
 *  (kde-apps/dolphin-25.08.3:6/6::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/kde-apps/dolphin-25.08.3/temp/build.log'
 *  (kde-frameworks/ktexteditor-6.20.0:6/6.20::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/kde-frameworks/ktexteditor-6.20.0/temp/build.log'
And also, the system keeps asking the to do an emerge @preserved-rebuild for these two:

Code: Select all

!!! existing preserved libs:
>>> package: kde-apps/kate-lib-25.08.3
 *  - /usr/lib64/libkateprivate.so.25.08.2
 *      used by /usr/bin/kate (kde-apps/kate-25.08.2)
 *      used by /usr/bin/kwrite (kde-apps/kwrite-25.08.2)
Use emerge @preserved-rebuild to rebuild packages using these libraries
I'm not sure what to do to solve this... I'm going to attach /var/tmp/portage/kde-apps/kate/temp/build.log but it seems it all boils down to an "undefined reference to `QObjectPrivate::QObjectPrivate(int)@Qt_6_PRIVATE_API" error that brings the error to compile.

Code: Select all

[76/76] : && /usr/bin/x86_64-pc-linux-gnu-g++ -march=native -pipe -O2 -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Werror=undef -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -pedantic -Wzero-as-null-pointer-constant -Wmissing-include-dirs -fdiagnostics-color=always -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs apps/kate/CMakeFiles/kate-bin.dir/kate-bin_autogen/mocs_compilation.cpp.o apps/kate/CMakeFiles/kate-bin.dir/__/__/3rdparty/SingleApplication/singleapplication.cpp.o apps/kate/CMakeFiles/kate-bin.dir/__/__/3rdparty/SingleApplication/singleapplication_p.cpp.o apps/kate/CMakeFiles/kate-bin.dir/main.cpp.o apps/kate/CMakeFiles/kate-bin.dir/katewaiter.cpp.o apps/kate/CMakeFiles/kate-bin.dir/kate-bin_autogen/QYFM2Z2WYQ/qrc_kate.cpp.o -o bin/kate  -Wl,-rpath,/var/tmp/portage/kde-apps/kate-25.08.3/work/kate-25.08.3_build/bin:  bin/libkateprivate.so.25.08.3  /usr/lib64/libKF6TextEditor.so.6.19.0  /usr/lib64/libKF6Parts.so.6.20.0  /usr/lib64/libKF6XmlGui.so.6.20.0  /usr/lib64/libKF6ConfigWidgets.so.6.20.0  /usr/lib64/libKF6SyntaxHighlighting.so.6.20.0  /usr/lib64/libKF6KIOWidgets.so.6.20.0  /usr/lib64/libKF6KIOGui.so.6.20.0  /usr/lib64/libKF6WindowSystem.so.6.20.0  /usr/lib64/libX11.so  /usr/lib64/libKF6Completion.so.6.20.0  /usr/lib64/libKF6KIOCore.so.6.20.0  /usr/lib64/libKF6Crash.so.6.20.0  /usr/lib64/libKF6Service.so.6.20.0  /usr/lib64/libQt6Xml.so.6.10.1  /usr/lib64/libKF6JobWidgets.so.6.20.0  /usr/lib64/libKF6CoreAddons.so.6.20.0  /usr/lib64/libQt6Network.so.6.10.1  /usr/lib64/libKF6IconThemes.so.6.20.0  /usr/lib64/libKF6ColorScheme.so.6.20.0  /usr/lib64/libKF6I18n.so.6.20.0  /usr/lib64/libKF6GuiAddons.so.6.20.0  /usr/lib64/libKF6ConfigGui.so.6.20.0  /usr/lib64/libKF6ConfigCore.so.6.20.0  /usr/lib64/libKF6WidgetsAddons.so.6.20.0  /usr/lib64/libQt6Widgets.so.6.10.1  /usr/lib64/libKF6DBusAddons.so.6.20.0  /usr/lib64/libQt6Gui.so.6.10.1  /usr/lib64/libQt6DBus.so.6.10.1  /usr/lib64/libQt6Core.so.6.10.1  /usr/lib64/libGLX.so  /usr/lib64/libOpenGL.so  /usr/lib64/libxkbcommon.so && :                                                                                                                   
^[[31mFAILED: [code=1] ^[[0mbin/kate                                                                                                                                                                                
: && /usr/bin/x86_64-pc-linux-gnu-g++ -march=native -pipe -O2 -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Werror=undef -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -pedantic -Wzero-as-null-pointer-constant -Wmissing-include-dirs -fdiagnostics-color=always -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs apps/kate/CMakeFiles/kate-bin.dir/kate-bin_autogen/mocs_compilation.cpp.o apps/kate/CMakeFiles/kate-bin.dir/__/__/3rdparty/SingleApplication/singleapplication.cpp.o apps/kate/CMakeFiles/kate-bin.dir/__/__/3rdparty/SingleApplication/singleapplication_p.cpp.o apps/kate/CMakeFiles/kate-bin.dir/main.cpp.o apps/kate/CMakeFiles/kate-bin.dir/katewaiter.cpp.o apps/kate/CMakeFiles/kate-bin.dir/kate-bin_autogen/QYFM2Z2WYQ/qrc_kate.cpp.o -o bin/kate  -Wl,-rpath,/var/tmp/portage/kde-apps/kate-25.08.3/work/kate-25.08.3_build/bin:  bin/libkateprivate.so.25.08.3  /usr/lib64/libKF6TextEditor.so.6.19.0  /usr/lib64/libKF6Parts.so.6.20.0  /usr/lib64/libKF6XmlGui.so.6.20.0  /usr/lib64/libKF6ConfigWidgets.so.6.20.0  /usr/lib64/libKF6SyntaxHighlighting.so.6.20.0  /usr/lib64/libKF6KIOWidgets.so.6.20.0  /usr/lib64/libKF6KIOGui.so.6.20.0  /usr/lib64/libKF6WindowSystem.so.6.20.0  /usr/lib64/libX11.so  /usr/lib64/libKF6Completion.so.6.20.0  /usr/lib64/libKF6KIOCore.so.6.20.0  /usr/lib64/libKF6Crash.so.6.20.0  /usr/lib64/libKF6Service.so.6.20.0  /usr/lib64/libQt6Xml.so.6.10.1  /usr/lib64/libKF6JobWidgets.so.6.20.0  /usr/lib64/libKF6CoreAddons.so.6.20.0  /usr/lib64/libQt6Network.so.6.10.1  /usr/lib64/libKF6IconThemes.so.6.20.0  /usr/lib64/libKF6ColorScheme.so.6.20.0  /usr/lib64/libKF6I18n.so.6.20.0  /usr/lib64/libKF6GuiAddons.so.6.20.0  /usr/lib64/libKF6ConfigGui.so.6.20.0  /usr/lib64/libKF6ConfigCore.so.6.20.0  /usr/lib64/libKF6WidgetsAddons.so.6.20.0  /usr/lib64/libQt6Widgets.so.6.10.1  /usr/lib64/libKF6DBusAddons.so.6.20.0  /usr/lib64/libQt6Gui.so.6.10.1  /usr/lib64/libQt6DBus.so.6.10.1  /usr/lib64/libQt6Core.so.6.10.1  /usr/lib64/libGLX.so  /usr/lib64/libOpenGL.so  /usr/lib64/libxkbcommon.so && :                                                                                                                           
/usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libQt6TextToSpeech.so.6: undefined reference to `QObjectPrivate::QObjectPrivate(int)@Qt_6_PRIVATE_API'                       
collect2: error: ld returned 1 exit status                                                                                                                                                                          
ninja: build stopped: subcommand failed.                                                                                                                                                                            
 ^[[31;01m*^[[0m ERROR: kde-apps/kate-25.08.3::gentoo failed (compile phase):                                                                                                                                       
 ^[[31;01m*^[[0m   ninja -v -l0 -j24 failed                                                                                                                                                                         
 ^[[31;01m*^[[0m                                                                                                                                                                                                    
 ^[[31;01m*^[[0m Call stack:                                                                                                                                                                                        
 ^[[31;01m*^[[0m     ebuild.sh, line  143:  Called src_compile                                                                                                                                                      
 ^[[31;01m*^[[0m   environment, line 2019:  Called cmake_src_compile                                                                                                                                                
 ^[[31;01m*^[[0m   environment, line 1039:  Called cmake_build                                                                                                                                                      
 ^[[31;01m*^[[0m   environment, line  956:  Called eninja                                                                                                                                                           
 ^[[31;01m*^[[0m   environment, line 1567:  Called die                                                                                                                                                              
 ^[[31;01m*^[[0m The specific snippet of code:                                                                                                                                                                      
 ^[[31;01m*^[[0m       "$@" || die -n "${*} failed"                                                                                                                                                                 
 ^[[31;01m*^[[0m                                                                                                                                                                                                    
 ^[[31;01m*^[[0m If you need support, post the output of `emerge --info '=kde-apps/kate-25.08.3::gentoo'`,                                                                                                          
 ^[[31;01m*^[[0m the complete build log and the output of `emerge -pqv '=kde-apps/kate-25.08.3::gentoo'`.                                                                                                           
 ^[[31;01m*^[[0m The complete build log is located at '/var/tmp/portage/kde-apps/kate-25.08.3/temp/build.log'.                                                                                                      
 ^[[31;01m*^[[0m The ebuild environment file is located at '/var/tmp/portage/kde-apps/kate-25.08.3/temp/environment'.                                                                                               
 ^[[31;01m*^[[0m Working directory: '/var/tmp/portage/kde-apps/kate-25.08.3/work/kate-25.08.3_build'                                                                                                                
 ^[[31;01m*^[[0m S: '/var/tmp/portage/kde-apps/kate-25.08.3/work/kate-25.08.3' 
I made the full build.log available here, I can upload other logs if anyone thinks it is important... by myself I can't figure out why it is throwing these errors.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Thu Nov 27, 2025 7:15 pm

Moved from Desktop Environments to Portage & Programming.
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
guicoelho
n00b
n00b
Posts: 15
Joined: Mon Aug 10, 2020 1:22 pm

  • Quote

Post by guicoelho » Thu Nov 27, 2025 8:09 pm

fedeliallalinea wrote:Moved from Desktop Environments to Portage & Programming.
Thanks and also sorry for the mistake.
Top
dmpogo
Advocate
Advocate
Posts: 3711
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Thu Nov 27, 2025 9:20 pm

what I would have done is unmerge kate, and try to update the world after that


Your first block of code does not contain useful info, since it does not show what was the error.
Top
Moe79
n00b
n00b
Posts: 1
Joined: Fri Nov 28, 2025 9:53 pm

  • Quote

Post by Moe79 » Fri Nov 28, 2025 9:55 pm

@guicoelho: Did you solve this problem? I'm having the exact same issue since today

edit: after manually updating qtspeech with

Code: Select all

emerge --oneshot qtspeech
everything works again
Top
guicoelho
n00b
n00b
Posts: 15
Joined: Mon Aug 10, 2020 1:22 pm

  • Quote

Post by guicoelho » Mon Dec 01, 2025 11:48 pm

Hello, sorry for taking a few days to answer. It turns out that deselecting:
kde-apps-meta
kate
kwrite
Then I unmerged all these three packages and updated the world. After that, I could just re-select the three packages and they were build successfully. Not sure why they were throwing errors before, but I'm glad it worked! Thanks for the tip, dmpogo.
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3529
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Tue Dec 02, 2025 8:40 am

You can edit the first post and add solved somewhere in the title.

Best Regards,
Georgi
Top
paulj
Guru
Guru
User avatar
Posts: 546
Joined: Thu Sep 30, 2004 4:55 am
Location: Wales, UK

  • Quote

Post by paulj » Wed Jan 28, 2026 2:36 pm

I understand that the OP has resolved this, but is this not actually a bug, with packages building in the wrong order? My reading of the error is that there is a Qt6 symbol which is missing in the installed libraries, but is then available in the updated libraries once those packages have been merged. This then permits the kde packages merging correctly. It suggests a missing dependency in the kde packages?[/code]
I have hit this issue, and I am now updating the Qt6 packages which are tagged for updating before running the world build again.
These are the packages affected:

Code: Select all

[U] dev-qt/qtimageformats
[U] dev-qt/qtmultimedia
[U] dev-qt/qtspeech
[U] dev-qt/qtwayland
[U] dev-qt/qtwebengine
[U] dev-qt/qtwebview
I am trying to do it without building the qtweb* packages first, as these take ages to build!
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Jan 28, 2026 3:08 pm

I don't think it's that they're built in the wrong order, but it does seem wrong that this can happen. I suspect what happened is:
  • OP used emerge --getbinpkg or similar to install a qtspeech:6 that needs a >=qtcore-6.N (for some N that I don't know)
  • OP had a qtcore version 6.M for M < N, where the required symbol did not exist
  • There was no RDEPEND on qtspeech to force Portage to update qtcore, so no update was done during the emerge --getbinpkg phase.
  • Since OP's version M was too old, qtspeech was broken until qtbase was updated to version N. Kate happened to be the first package to fail due to qtspeech being broken, but I think qtspeech was generally unusable on OP's system at that point. I expect nothing that linked to Qtspeech worked until this was fixed.
Generally, the Qt packages are supposed to be updated as a group and kept at the same version. In my experience, Portage is very reluctant to let you get them out of sync. If someone can get into this scenario without bypassing any of Portage's normal dependency rules, I think it would be interesting to explore why Portage allowed that.
Top
paulj
Guru
Guru
User avatar
Posts: 546
Joined: Thu Sep 30, 2004 4:55 am
Location: Wales, UK

  • Quote

Post by paulj » Wed Jan 28, 2026 3:18 pm

Hi Hu - thanks for the quick comments!

So, another data point: In my case, the system builds everything (no binpkgs), and is regularly updated. The failure occurred in the middle of a world update, and I believe several Qt packages had already updated, but when the kde packages failed, the Qt packages listed above had not yet been updated.

Anyway, I will report back when I get through the build.
Top
sam_
Developer
Developer
User avatar
Posts: 2814
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Wed Jan 28, 2026 3:21 pm

See bug 967008.
Top
paulj
Guru
Guru
User avatar
Posts: 546
Joined: Thu Sep 30, 2004 4:55 am
Location: Wales, UK

  • Quote

Post by paulj » Wed Jan 28, 2026 8:09 pm

sam_ wrote:See bug 967008.
Thanks Sam! On the ball as ever!
Top
Post Reply

12 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic