You are not logged in.

#1 2018-12-11 18:58:22

collector1871
Member
From: Poland
Registered: 2016-12-05
Posts: 51

[SOLVED] after upgrade - qt apps seems to be broken

i have upgraded qt5 packages today:

[2018-12-11 18:43] [ALPM] upgraded qt5-xmlpatterns (5.11.2-1 -> 5.12.0-1)
[2018-12-11 18:43] [ALPM] upgraded qt5-x11extras (5.11.2-1 -> 5.12.0-1)
[2018-12-11 18:43] [ALPM] upgraded qt5-webengine (5.11.2-2 -> 5.12.0-1)
[2018-12-11 18:42] [ALPM] upgraded qt5-tools (5.11.2-2 -> 5.12.0-1)
[2018-12-11 18:42] [ALPM] upgraded qt5-script (5.11.2-1 -> 5.12.0-1)
[2018-12-11 18:42] [ALPM] upgraded qt5-multimedia (5.11.2-1 -> 5.12.0-1)
[2018-12-11 18:42] [ALPM] upgraded qt5-svg (5.11.2-1 -> 5.12.0-1)
[2018-12-11 18:42] [ALPM] upgraded qt5-webkit (5.212.0alpha2-21 -> 5.212.0alpha2-22)
[2018-12-11 18:42] [ALPM] upgraded qt5-webchannel (5.11.2-1 -> 5.12.0-1)
[2018-12-11 18:42] [ALPM] upgraded qt5-sensors (5.11.2-1 -> 5.12.0-1)
[2018-12-11 18:42] [ALPM] upgraded qt5-location (5.11.2-2 -> 5.12.0-1)
[2018-12-11 18:42] [ALPM] upgraded qt5-declarative (5.11.2-1 -> 5.12.0-1)
[2018-12-11 18:42] [ALPM] upgraded qt5-base (5.11.2-3 -> 5.12.0-1)

after that - almost all at5 applications stopped working, for example:

q4wine

q4wine: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

copyq

copyq: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

edit:
topic has been solved via installing newest kernel-lts. With old kernel-lts , qt5 apps have not been working.

Last edited by collector1871 (2018-12-11 19:36:36)


My: AUR and homepage .

Offline

#2 2018-12-11 19:30:56

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

Re: [SOLVED] after upgrade - qt apps seems to be broken

Sounds like your system is corrupted, it is saying it cannot find the file /usr/lib/libQt5Core.so.5 but that is definitely provided by qt5-base.


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

Offline

#3 2018-12-11 19:32:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] after upgrade - qt apps seems to be broken

Please paste full logs, not selectively truncated excerpts: https://bbs.archlinux.org/viewtopic.php?id=57855


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2018-12-11 19:35:22

collector1871
Member
From: Poland
Registered: 2016-12-05
Posts: 51

Re: [SOLVED] after upgrade - qt apps seems to be broken

ok got it, i used old kernel-lts : 4.9.78-1

with newest kernel-lts (uname -a : 4.14.87-1-lts ) and reboot this problem is gone
for me problem is with newest kernel:
https://bbs.archlinux.org/viewtopic.php?id=225676 , so i need to investigate deeply "udl 2-1.8.6:1.0: swiotlb buffer is full"

anyway, this topic has been solved

Last edited by collector1871 (2018-12-11 19:37:42)


My: AUR and homepage .

Offline

#5 2018-12-19 13:19:17

delx
Member
Registered: 2015-02-08
Posts: 13

Re: [SOLVED] after upgrade - qt apps seems to be broken

Hi there. I had the same problem and raised https://bugs.archlinux.org/task/61130.

In the meantime there's a bit of a hack/work-around if you want to use qt5-base 5.12.0-1 with your old kernel.

Try running:
$ strip --remove-section=.note.ABI-tag /lib/libQt5Core.so

Offline

#6 2018-12-19 14:52:03

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

Re: [SOLVED] after upgrade - qt apps seems to be broken

How about no? You don't fix libraries that require a newer kernel, by removing the tag that indicates this. You fix them by recompiling the library so that it doesn't use the functionality of newer kernels.


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

Offline

#7 2018-12-19 15:03:38

delx
Member
Registered: 2015-02-08
Posts: 13

Re: [SOLVED] after upgrade - qt apps seems to be broken

Yeah, thanks for pointing that out. I misread the Qt source code. It seems it used to have a runtime fallback in case statx didn't exist, so I thought this would be safe. However the runtime fallback was removed in Qt 5.12.0.

This wasn't clear at first because it still checks for ENOSYS at runtime, but this will only be returned if it didn't detect statx support in glibc at compile time.

I've created qt5-base-nostatx which is identical to qt5-base except for that it disables statx at compile time.

Offline

#8 2018-12-19 15:48:26

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

Re: [SOLVED] after upgrade - qt apps seems to be broken

Great, awesome. smile


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

Offline

#9 2018-12-20 03:08:08

b3n10
Member
Registered: 2018-11-03
Posts: 14

Re: [SOLVED] after upgrade - qt apps seems to be broken

delx wrote:

Yeah, thanks for pointing that out. I misread the Qt source code. It seems it used to have a runtime fallback in case statx didn't exist, so I thought this would be safe. However the runtime fallback was removed in Qt 5.12.0.

This wasn't clear at first because it still checks for ENOSYS at runtime, but this will only be returned if it didn't detect statx support in glibc at compile time.

I've created qt5-base-nostatx which is identical to qt5-base except for that it disables statx at compile time.

I installed qt5-base-nostatx on my linux-lts 4.4.168-1 kernel from AUR but my virtual machines just hangs when I try to launch them from virtualbox manager. I re-installed qt5-base and went back to 4.14.x kernel and works fine. I'm not sure if issue is with qt5-base-nostatx or 4.4.x kernel.

Offline

#10 2018-12-20 20:50:47

delx
Member
Registered: 2015-02-08
Posts: 13

Re: [SOLVED] after upgrade - qt apps seems to be broken

It sounds like you can launch the GUI but the VM doesn't start? I suspect this is an issue with VirtualBox and Linux 4.4.168 rather than anything to do with Qt.

In Linux 4.4.168 the internal API for kernel modules changed. Are you using the virtualbox-host-dkms to provide the kernel module part of VirtualBox? If so you'll need to wait for an update to be compatible.

Specifically the Linux 4.4.168 changed the get_user_pages function to merge two boolean params into a flags parameter. I had to create nvidia-340xx-lts44 with a hacky patch so I could keep using graphics smile

Offline

#11 2018-12-21 01:51:09

b3n10
Member
Registered: 2018-11-03
Posts: 14

Re: [SOLVED] after upgrade - qt apps seems to be broken

delx wrote:

Are you using the virtualbox-host-dkms to provide the kernel module part of VirtualBox? If so you'll need to wait for an update to be compatible.

Specifically the Linux 4.4.168 changed the get_user_pages function to merge two boolean params into a flags parameter. I had to create nvidia-340xx-lts44 with a hacky patch so I could keep using graphics smile

Yes, I also modified get_user_pages because I'm getting error when installing virtualbox-host-dkms. I also made a post about this -> [SOLVED] Virtualbox: Module vboxdrv not found Linux 4.4 LTS.

I can now install virtualbox-host-dkms but can't launch VMs with no error messages, not sure where to look. I was using 4.19.x stable but experiencing freezing issues when waking from sleep so I tried 4.4.x LTS which solves freezing issues. For now to solve this VM issue I switch to 4.14.x LTS. I still get freezing issues but minimal compared to 4.19.x.

Offline

Board footer

Powered by FluxBB