You are not logged in.

#1 2017-07-04 09:33:47

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

[SOLVED] All Qt5 programs fail to run after Qt upgrade 5.9.0 -> 5.9.1

After pacman -Syu today, numerous Qt5 libraries upgraded from v5.9.0 to 5.9.1
All Qt5 programs are failing to run now with the error:

Qt FATAL: Cannot mix incompatible Qt library (version 0x50900) with this library (version 0x50901)

Tried reboot and recompiling eg featherpad-git, but still fails
Hope I'm not missing something obvious
This is a bit of a show-stopper

Last edited by ninian (2017-07-04 10:23:58)

Offline

#2 2017-07-04 10:10:57

Tamaskan
Member
Registered: 2016-05-29
Posts: 3

Re: [SOLVED] All Qt5 programs fail to run after Qt upgrade 5.9.0 -> 5.9.1

Same problem here. My own Qt applications work if I recompile them, so maybe there was an ABI change?

Offline

#3 2017-07-04 10:15:19

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: [SOLVED] All Qt5 programs fail to run after Qt upgrade 5.9.0 -> 5.9.1

I had the same issue and for me, it was caused by qt5-styleplugins. Recompiling fixed it.

Offline

#4 2017-07-04 10:16:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [SOLVED] All Qt5 programs fail to run after Qt upgrade 5.9.0 -> 5.9.1

The only programs that have been specifically mentioned are an AUR package and your own code.  If qt5 follows semantic versioning, an ABI change should change the subversion number not just a revision number - so that's a bit odd and it may have not triggered a required rebuild.  But if there are repo packages that need to be recompiled you need to specify which ones: saying your own code or AUR packages need to be rebuilt is pointless - those are your responsibility anyways.

EDIT: this was cross posted with the above.  Assuming that is the case, this is purely a failure to properly manage AUR packages.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2017-07-04 10:21:35

Tamaskan
Member
Registered: 2016-05-29
Posts: 3

Re: [SOLVED] All Qt5 programs fail to run after Qt upgrade 5.9.0 -> 5.9.1

Exactly, qt5-styleplugins get loaded by every application using QtWidgets. My own code uses QML so it was not affected. qt5-styleplugins maintainer has already been asked to do pkgrel bump so recompile gets triggered automatically.

Maybe only the ABI for the plugin interface has been changed by Qt, because "normal" applications without loading the style plugin weren't affected.

Last edited by Tamaskan (2017-07-04 10:28:15)

Offline

#6 2017-07-04 10:22:47

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: [SOLVED] All Qt5 programs fail to run after Qt upgrade 5.9.0 -> 5.9.1

xduugu wrote:

I had the same issue and for me, it was caused by qt5-styleplugins. Recompiling fixed it.

Thank you - that was the show-stopper!
Have only just started using qt5ct and qt5-styleplugins so was slow to think on that.

@Trilby: It was indeed ALL Qt5 programs which failed, not just AUR ones. for example: qterminal, sqlitebrowser, VirtualBox ...

Offline

#7 2017-07-04 10:25:09

Tamaskan
Member
Registered: 2016-05-29
Posts: 3

Re: [SOLVED] All Qt5 programs fail to run after Qt upgrade 5.9.0 -> 5.9.1

ninian wrote:

@Trilby: It was indeed ALL Qt5 programs which failed, not just AUR ones. for example: qterminal, sqlitebrowser, VirtualBox ...

Yes, but users without AUR packages installed weren't affected at all, so it's not an Arch Linux Bug.

Offline

#8 2017-07-04 10:26:39

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: [SOLVED] All Qt5 programs fail to run after Qt upgrade 5.9.0 -> 5.9.1

Tamaskan wrote:

Yes, but users without AUR packages installed weren't affected at all, so it's not an Arch Linux Bug.

Agreed

Offline

#9 2017-07-04 15:24:55

sc954rr
Member
Registered: 2016-08-22
Posts: 6

Re: [SOLVED] All Qt5 programs fail to run after Qt upgrade 5.9.0 -> 5.9.1

Sorry for the newb question but fairly new to using linux.....How would you go about recompiling these packages, I have been searching around and trying different commands but can not figure out how to recompile to get qt5 programs working again.

Offline

#10 2017-07-04 15:28:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [SOLVED] All Qt5 programs fail to run after Qt upgrade 5.9.0 -> 5.9.1

The same way you compiled them in the first place.

Online

#11 2017-07-04 15:28:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,668

Re: [SOLVED] All Qt5 programs fail to run after Qt upgrade 5.9.0 -> 5.9.1

you reexecute makepkg in the directory where your PKGBUILD resides, or if you use an AUR helper, reinstall the affected AUR packages as that will most likely trigger a rebuild

Offline

#12 2017-07-04 15:43:23

sc954rr
Member
Registered: 2016-08-22
Posts: 6

Re: [SOLVED] All Qt5 programs fail to run after Qt upgrade 5.9.0 -> 5.9.1

Thanks V1del! for pointing me in the right direction, everything is working again correctly

Offline

#13 2017-07-05 05:37:58

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] All Qt5 programs fail to run after Qt upgrade 5.9.0 -> 5.9.1

The interesting thing about this is that qt5-styleplugins is part of a select group of Qt5  linked software which relies on Qt's private headers, and therefore depends on an exact version of Qt (as opposed to merely requiring a matching soname).

Essentially, this problem happens on every major and minor Qt5 release, for anyone using an AUR package that contains for example a platformtheme plugin. You'd think users would be familiar with the problem at this point. smile


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#14 2017-07-05 08:51:20

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: [SOLVED] All Qt5 programs fail to run after Qt upgrade 5.9.0 -> 5.9.1

Eschwartz wrote:

The interesting thing about this is that qt5-styleplugins is part of a select group of Qt5  linked software which relies on Qt's private headers, and therefore depends on an exact version of Qt (as opposed to merely requiring a matching soname).

Essentially, this problem happens on every major and minor Qt5 release, for anyone using an AUR package that contains for example a platformtheme plugin. You'd think users would be familiar with the problem at this point. smile

Thanks for further explanation

Offline

#15 2017-07-05 15:31:07

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] All Qt5 programs fail to run after Qt upgrade 5.9.0 -> 5.9.1

And, to be fair, you say you have recently started using platformthemes, so I guess this was your learning experience.

But someone, at least, asks about this every time... hmm, maybe this should be in the Wiki under troubleshooting?

EDIT: Done! https://wiki.archlinux.org/index.php/Qt … Qt5_update

Last edited by eschwartz (2017-07-05 15:47:35)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB