Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Some QT5 apps stop working after move to merge-usr
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
dziadu
Guru
Guru


Joined: 04 May 2006
Posts: 467
Location: Kraków/Darmstadt/Munich

PostPosted: Wed Apr 17, 2024 7:32 am    Post subject: [SOLVED] Some QT5 apps stop working after move to merge-usr Reply with quote

Hi,

as in the title. After I changed to merged-user some apps like `ghostwriter` stooped working. I have another system with still split-usr and it works fine. So, what I know so far.

It started with `ghostwriter` that it suddenly stopped working with throwing memory corruption:

Quote:
$ ghostwriter
Using pandoc version 3.1.8
Command "multimarkdown" is not available.
Using cmark version 0.31.0
Qt WebEngine resources not found at /share/qt5/resources. Trying parent directory...
Qt WebEngine resources not found at /share/qt5. Trying application directory...
Qt WebEngine resources not found at /usr/bin. Trying fallback directory... The application MAY NOT work.
Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/rafal/.ghostwriter'
Installed Qt WebEngine locales directory not found at location /share/qt5/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /usr/bin/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/rafal/.ghostwriter'
[0417/092803.816090:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.ghostwriter/qtwebengine_resources_100p.pak
Some features may not be available.
[0417/092803.816103:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.ghostwriter/qtwebengine_resources_200p.pak
Some features may not be available.
[0417/092803.816108:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.ghostwriter/qtwebengine_resources.pak
Some features may not be available.
[0417/092803.816115:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale
Qt WebEngine resources not found at /share/qt5/resources. Trying parent directory...
Qt WebEngine resources not found at /share/qt5/resources. Trying parent directory...
Qt WebEngine resources not found at /share/qt5. Trying application directory...
Qt WebEngine resources not found at /share/qt5. Trying application directory...
Qt WebEngine resources not found at /usr/lib64/qt5/libexec. Trying fallback directory... The application MAY NOT work.
Qt WebEngine resources not found at /usr/lib64/qt5/libexec. Trying fallback directory... The application MAY NOT work.
Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/rafal/.QtWebEngineProcess'
Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/rafal/.QtWebEngineProcess'
Installed Qt WebEngine locales directory not found at location /share/qt5/translations/qtwebengine_locales. Trying application dInstalled Qt WebEngine locales directory not found at location /share/qt5/translations/qtwebengine_locales. Trying application directory...
irectory...
Qt WebEngine locales directory not found at location /usr/lib64/qt5/libexec/qtwebengine_locales. Trying fallback directory... TrQt WebEngine locales directory not found at location /usr/lib64/qt5/libexec/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
anslations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/rafal/.QtWebEngineProcess'
Path override failed for key ui::DIR_LOCALES and path '/home/rafal/.QtWebEngineProcess'
[0417/092803.832991:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.QtWebEngineProcess/qtwebengine_resources_100p.pak
Some features may not be available.
[0417/092803.832991:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.QtWebEngineProcess/qtwebengine_resources_100p.pak
Some features may not be available.
[0417/092803.833013:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.QtWebEngineProcess/qtwebengine_resources_200p.pak
Some features may not be available.
[0417/092803.833015:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.QtWebEngineProcess/qtwebengine_resources_200p.pak
Some features may not be available.
[0417/092803.833018:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.QtWebEngineProcess/qtwebengine_resources.pak
Some features may not be available.
[0417/092803.833022:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.QtWebEngineProcess/qtwebengine_resources.pak
Some features may not be available.
[0417/092803.833429:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale
[0417/092803.833430:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale
[8709:8709:0417/092803.836488:ERROR:extension_system_qt.cpp(121)] Failed to parse extension manifest.
Naruszenie ochrony pamięci


I was curious about strange paths like `/share/qt5/resources` and after digging in sources I found that it uses some Qt internals to determine the location. The same internals are used by qtpaths, so I checked it and results is:
Quote:
$ qtpaths5 --install-prefix
/

while on my another still split-usr system it shows:
Quote:
$ qtpaths5 --install-prefix
/usr



I tried to recompile `qtcore` but didn't help. Do you have another ideas what could be done to fix it?


Last edited by dziadu on Mon Apr 22, 2024 9:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
kgdrenefort
Apprentice
Apprentice


Joined: 19 Sep 2023
Posts: 195
Location: Somewhere in the 77

PostPosted: Wed Apr 17, 2024 8:01 am    Post subject: Reply with quote

Hello,

Ghostwriter use qtwebengine, that would be the problem possibly.

Code:
Command "multimarkdown" is not available.


Code:
Qt WebEngine resources not found at /share/qt5/resources. Trying parent directory...
Qt WebEngine resources not found at /share/qt5. Trying application directory...
Qt WebEngine resources not found at /usr/bin. Trying fallback directory... The application MAY NOT work.


Code:
Installed Qt WebEngine locales directory not found at location /share/qt5/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /usr/bin/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.


Code:
[0417/092803.816090:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.ghostwriter/qtwebengine_resources_100p.pak
Some features may not be available.
[0417/092803.816103:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.ghostwriter/qtwebengine_resources_200p.pak
Some features may not be available.
[0417/092803.816108:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.ghostwriter/qtwebengine_resources.pak
Some features may not be available.
[0417/092803.816115:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale
Qt WebEngine resources not found at /share/qt5/resources. Trying parent directory...
Qt WebEngine resources not found at /share/qt5/resources. Trying parent directory...
Qt WebEngine resources not found at /share/qt5. Trying application directory...
Qt WebEngine resources not found at /share/qt5. Trying application directory...
Qt WebEngine resources not found at /usr/lib64/qt5/libexec. Trying fallback directory... The application MAY NOT work.
Qt WebEngine resources not found at /usr/lib64/qt5/libexec. Trying fallback directory... The application MAY NOT work.
Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/rafal/.QtWebEngineProcess'
Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/rafal/.QtWebEngineProcess'
Installed Qt WebEngine locales directory not found at location /share/qt5/translations/qtwebengine_locales. Trying application dInstalled Qt WebEngine locales directory not found at location /share/qt5/translations/qtwebengine_locales. Trying application directory...
irectory...
Qt WebEngine locales directory not found at location /usr/lib64/qt5/libexec/qtwebengine_locales. Trying fallback directory... TrQt WebEngine locales directory not found at location /usr/lib64/qt5/libexec/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
anslations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/rafal/.QtWebEngineProcess'
Path override failed for key ui::DIR_LOCALES and path '/home/rafal/.QtWebEngineProcess'
[0417/092803.832991:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.QtWebEngineProcess/qtwebengine_resources_100p.pak
Some features may not be available.
[0417/092803.832991:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.QtWebEngineProcess/qtwebengine_resources_100p.pak
Some features may not be available.
[0417/092803.833013:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.QtWebEngineProcess/qtwebengine_resources_200p.pak
Some features may not be available.
[0417/092803.833015:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.QtWebEngineProcess/qtwebengine_resources_200p.pak
Some features may not be available.
[0417/092803.833018:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.QtWebEngineProcess/qtwebengine_resources.pak
Some features may not be available.
[0417/092803.833022:ERROR:resource_bundle.cc(947)] Failed to load /home/rafal/.QtWebEngineProcess/qtwebengine_resources.pak
Some features may not be available.
[0417/092803.833429:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale
[0417/092803.833430:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale
[8709:8709:0417/092803.836488:ERROR:extension_system_qt.cpp(121)] Failed to parse extension manifest.


From your paste, that seems the interesting part.

Can you use other application using qtwebengine as, I guess, Falkon ? A plasmoid of KDE using it ?

Regards,
GASPARD DE RENEFORT Kévin
_________________
«Gentoo does not have problems, only learning opportunities.» - NeddySeagoon
«If your Gentoo installation isn't valuable to you, feel free to continue to ignore the instructions.» - figueroa
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2720

PostPosted: Wed Apr 17, 2024 8:09 am    Post subject: Reply with quote

emerge --info? Or well, just want to know, is this musl libc? Albeit it'd be kind of surprising if you have qtwebengine:5 given it fails to build on musl :) Not that there isn't patches around.

Ignore this post if you're using glibc (the 2nd bug below may still be "related" albeit afaik this isn't supposed to be an issue with glibc if migration was done properly, not that I specifically tried ghostwriter so there could be something else going on with it).

*If* musl then should be bug #928509 and bug #927691 which haven't been handled yet (a fix to either bug would solve this afaik, the second one only been fixed for Qt6 so far).

For the first one it'd be about commenting out the line that (wrongly for merged-usr) forces-in top-level /lib (repeated "${EPREFIX}/lib" ...) from /usr/bin/ldconfig then running env-update -- haven't actually tried if it does help this but what I've read made it sound like it should. If try that, do be extra careful not to break that ldconfig script in the process (it's installed by sys-libs/musl ftr)

The second one need to modify the qtcore:5 ebuild, haven't looked at options to disable relocatable builds with Qt5 to help there but should be straight forward if grep the source's qmake files for it.
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2284
Location: Adendorf, Germany

PostPosted: Wed Apr 17, 2024 10:33 am    Post subject: Re: Some QT5 apps stopped working after move to merged-usr Reply with quote

dziadu wrote:
After I changed to merged-user
How did you change to merged-usr?
Did you follow merge-usr wiki after following the "Profile upgrade to version 23.0 available" news item?
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
dziadu
Guru
Guru


Joined: 04 May 2006
Posts: 467
Location: Kraków/Darmstadt/Munich

PostPosted: Fri Apr 19, 2024 11:19 am    Post subject: Reply with quote

So, answering for the question, not in order:

Quote:
Portage 3.0.61 (python 3.12.2-final-0, default/linux/amd64/23.0/desktop/plasma, gcc-13, glibc-2.39-r2, 6.8.6-gentoo x86_64)
=================================================================
System uname: Linux-6.8.6-gentoo-x86_64-AMD_Ryzen_9_7950X_16-Core_Processor-with-glibc2.39
KiB Mem: 64969516 total, 7631464 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Fri, 19 Apr 2024 10:00:00 +0000
Head commit of repository gentoo: f3308126e5bf44da62d79bea5e97de819cb6e457
Timestamp of repository kde: Wed, 17 Apr 2024 18:37:10 +0000
Head commit of repository kde: feda3405d462afc49dfee72c9021984a659d1165

Timestamp of repository ppfeufer-gentoo-overlay: Sat, 13 Apr 2024 18:48:21 +0000
Head commit of repository ppfeufer-gentoo-overlay: 235edd3e76e60249823c3338158623e8b3e84e43

Timestamp of repository steam-overlay: Thu, 04 Apr 2024 01:22:27 +0000
Head commit of repository steam-overlay: aca6eb772e0d5474b6d44072998af0082f36d08a

Timestamp of repository tatsh-overlay: Fri, 19 Apr 2024 06:03:35 +0000
Head commit of repository tatsh-overlay: 34a385b85617cbe11cecb5843acdff4f9dae02cc

sh bash 5.2_p26
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p26::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.28.3::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.4.0-r1::gentoo
dev-java/java-config: 2.3.3-r1::gentoo
dev-lang/perl: 5.38.2-r2::gentoo
dev-lang/python: 3.8.19_p1::gentoo, 3.9.19_p2::gentoo, 3.10.14::gentoo, 3.11.9::gentoo, 3.12.2_p1::gentoo
dev-lang/rust: 1.76.0-r1::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/openrc: 0.54::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/binutils: 2.41-r5::gentoo, 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc: 8.5.0-r1::gentoo, 9.5.0::gentoo, 10.5.0::gentoo, 11.4.1_p20240404::gentoo, 12.3.1_p20240209::gentoo, 13.2.1_p20240210::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 17.0.6::gentoo
sys-devel/llvm: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers: 6.7-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.39-r2::gentoo
Repositories:

gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:

kde
location: /var/db/repos/kde
sync-type: git
sync-uri: https://github.com/gentoo-mirror/kde.git
masters: gentoo
volatile: False

ppfeufer-gentoo-overlay
location: /var/db/repos/ppfeufer-gentoo-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/ppfeufer-gentoo-overlay.git
masters: gentoo
volatile: False

steam-overlay
location: /var/db/repos/steam-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
masters: gentoo
volatile: False

tatsh-overlay
location: /var/db/repos/tatsh-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/tatsh-overlay.git
masters: gentoo
volatile: False

dziadu-overlay
location: /home/rafal/portage
masters: gentoo
priority: 90
volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver4 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=znver4 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -march=znver4 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=znver4 -pipe"
GENTOO_MIRRORS="rsync://ftp.vectranet.pl/gentoo/"
LANG="pl_PL.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en_US pl"
MAKEOPTS="-j25 --quiet"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="3dnow 3dnowext X a52 aac acl acm acpi activities aes alsa amd64 aspell avx avx2 bash-completion bindist bluetooth branding bzip2 c++11 c++14 c++17 cairo cdr cet corefonts crypt cups dbus declarative dri dts dvdr egl elogind encode exif ffmpeg flac fma3 freetype gdbm gif gles2 gmp gnutls gpm grub gui iconv icu jpeg kde kerberos kf6compat kwallet laptop lcms libnotify libtirpc lm_sensors mad midi minimal mmx mmxext mng mp3 mp4 mpeg multilib native-headset ncurses networkmanager nls nptl nsplugin ntp ntplonly ofono-headset ogg opengl openmp pam pango pcre pdf pipewire plasma pmu png policykit popcnt ppds pulseaudio qml qt3support qt6 readline screencast sdl seccomp sound spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification steamruntime svg test-rust thinkpad threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vim-syntax vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xcomposite xft xml xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 avx512bw avx512cd avx512dq avx512f avx512vbmi avx512vl f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US pl" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-0" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


Also:

  • Not musl, standard glibc, nothing exoctic in my system.
  • Bug #927691 seems indeed similar to my case.
  • I do not see other apps suffering rfom this, Falkon works fin, though I just installed for this test only.
  • I followed the merge-usr wiki, although I haven't done @world rebuild. I recompiled the whole qt:5 just in case after the problem appeared, but didn't help, and I am at 23.0 merge-usr cu[/bug]


And,. the problem is also shown by using qtpaths5, which is not qtwebengine part, I I doin't associate it with the qtwebengine.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2720

PostPosted: Fri Apr 19, 2024 11:57 am    Post subject: Reply with quote

What does the following commands output? (just guesses)
Code:
ldconfig -p | grep Qt6Core.so.6
ldconfig -p | grep Qt6WebEngineCore.so.6
ls -ld /lib64 /usr/lib64
grep -r /lib /etc/ld.so.conf /etc/ld.so.conf.d
grep -r LDPATH /etc/env.d
The ldconfig -p ones should notably be showing e.g. /usr/lib64/libQt6Core.so.6, and if the /usr is missing then there's probably something unusual going on with your configs, the other commands might point it out.
Back to top
View user's profile Send private message
dziadu
Guru
Guru


Joined: 04 May 2006
Posts: 467
Location: Kraków/Darmstadt/Munich

PostPosted: Mon Apr 22, 2024 8:17 am    Post subject: Reply with quote

For Qt5 and Qt6 is the same, although I didn't notice any problem with Qt6 apps until now.

Quote:
$ ldconfig -p | grep Qt5Core.so.5
3466: libQt5Core.so.5 (libc6,x86-64) => /lib64/libQt5Core.so.5


Quote:
$ ldconfig -p | grep Qt5WebEngineCore.so.5
3408: libQt5WebEngineCore.so.5 (libc6,x86-64) => /lib64/libQt5WebEngineCore.so.5


Quote:
$ ldconfig -p | grep Qt6Core.so.6
3390: libQt6Core.so.6 (libc6,x86-64) => /lib64/libQt6Core.so.6


Quote:
$ ldconfig -p | grep Qt6WebEngineCore.so.6
3218: libQt6WebEngineCore.so.6 (libc6,x86-64) => /lib64/libQt6WebEngineCore.so.6


Quote:
$ ls -ld /lib64 /usr/lib64
lrwx------ 1 root root 9 03-27 08:57 /lib64 -> usr/lib64
drwxr-xr-x 379 root root 266240 04-22 09:49 /usr/lib64


Quote:
$ grep -r /lib /etc/ld.so.conf /etc/ld.so.conf.d
/etc/ld.so.conf:4:/usr/lib64/itcl4.2.2/
/etc/ld.so.conf:5:/usr/lib64/itk4.1.0/
/etc/ld.so.conf:6:/lib64
/etc/ld.so.conf:7:/usr/lib64
/etc/ld.so.conf:8:/usr/local/lib64
/etc/ld.so.conf:9:/lib
/etc/ld.so.conf:10:/usr/lib
/etc/ld.so.conf:11:/usr/local/lib
/etc/ld.so.conf:12:/usr/lib/rust/lib
/etc/ld.so.conf:13:/usr/lib/llvm/17/lib64
/etc/ld.so.conf:14:/usr/lib/llvm/16/lib64
/etc/ld.so.conf:15:/usr/lib/llvm/15/lib64
/etc/ld.so.conf:16:/usr/lib64/fltk
/etc/ld.so.conf:17:/usr/lib64/opencascade
/etc/ld.so.conf:18:/usr/lib64/root
/etc/ld.so.conf.d/trbnet.conf:1:/home/rafal/panda/software/trbnetop/dist/trbnettools/lib
/etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf:1:/usr/lib/gcc/x86_64-pc-linux-gnu/13
/etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf:2:/usr/lib/gcc/x86_64-pc-linux-gnu/13/32
/etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf:3:/usr/lib/gcc/x86_64-pc-linux-gnu/12
/etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf:4:/usr/lib/gcc/x86_64-pc-linux-gnu/12/32
/etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf:5:/usr/lib/gcc/x86_64-pc-linux-gnu/11
/etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf:6:/usr/lib/gcc/x86_64-pc-linux-gnu/11/32
/etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf:7:/usr/lib/gcc/x86_64-pc-linux-gnu/10
/etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf:8:/usr/lib/gcc/x86_64-pc-linux-gnu/10/32
/etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf:9:/usr/lib/gcc/x86_64-pc-linux-gnu/9.5.0
/etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf:10:/usr/lib/gcc/x86_64-pc-linux-gnu/9.5.0/32
/etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf:11:/usr/lib/gcc/x86_64-pc-linux-gnu/8.5.0
/etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf:12:/usr/lib/gcc/x86_64-pc-linux-gnu/8.5.0/32


Quote:
$ grep -r LDPATH /etc/env.d
/etc/env.d/60llvm-9982:5:LDPATH="/usr/lib/llvm/17/lib64"
/etc/env.d/34itk:1:LDPATH="/usr/lib64/itk4.1.0/"
/etc/env.d/99opencascade:14:LDPATH="/usr/lib64/opencascade"
/etc/env.d/50rust-1.76.0:1:LDPATH="/usr/lib/rust/lib"
/etc/env.d/60llvm-9984:5:LDPATH="/usr/lib/llvm/15/lib64"
/etc/env.d/50baselayout:9:LDPATH='/lib64:/usr/lib64:/usr/local/lib64:/lib:/usr/lib:/usr/local/lib'
/etc/env.d/34itcl:1:LDPATH="/usr/lib64/itcl4.2.2/"
/etc/env.d/99fltk:1:LDPATH=/usr/lib64/fltk
/etc/env.d/gcc/x86_64-pc-linux-gnu-11:2:LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/11:/usr/lib/gcc/x86_64-pc-linux-gnu/11/32"
/etc/env.d/gcc/x86_64-pc-linux-gnu-10:2:LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/10:/usr/lib/gcc/x86_64-pc-linux-gnu/10/32"
/etc/env.d/gcc/x86_64-pc-linux-gnu-9.5.0:2:LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/9.5.0:/usr/lib/gcc/x86_64-pc-linux-gnu/9.5.0/32"
/etc/env.d/gcc/x86_64-pc-linux-gnu-8.5.0:2:LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/8.5.0:/usr/lib/gcc/x86_64-pc-linux-gnu/8.5.0/32"
/etc/env.d/gcc/x86_64-pc-linux-gnu-13:2:LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/13:/usr/lib/gcc/x86_64-pc-linux-gnu/13/32"
/etc/env.d/gcc/x86_64-pc-linux-gnu-12:2:LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/12:/usr/lib/gcc/x86_64-pc-linux-gnu/12/32"
/etc/env.d/00glibc:1:LDPATH="include ld.so.conf.d/*.conf"
/etc/env.d/60llvm-9983:5:LDPATH="/usr/lib/llvm/16/lib64"
/etc/env.d/99root:1:LDPATH="/usr/lib64/root"
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2720

PostPosted: Mon Apr 22, 2024 9:10 am    Post subject: Reply with quote

Code:
/etc/ld.so.conf:6:/lib64
/etc/ld.so.conf:9:/lib
These two lines aren't supposed to exist on a merged-usr system, and they're created by:
Code:
/etc/env.d/50baselayout:9:LDPATH='/lib64:/usr/lib64:/usr/local/lib64:/lib:/usr/lib:/usr/local/lib'
This implies that you have sys-apps/baselayout emerged with USE=split-usr despite being a merged-usr system. Could check what emerge -pvqO baselayout says.

Would happen if you switched to merged-usr but didn't emerge -uDN @world or -uUD or so as instructed to rebuild baselayout, assuming nothing else odd going on like with binpkgs.
Back to top
View user's profile Send private message
dziadu
Guru
Guru


Joined: 04 May 2006
Posts: 467
Location: Kraków/Darmstadt/Munich

PostPosted: Mon Apr 22, 2024 9:55 pm    Post subject: Reply with quote

You are right, baselayout was the guilty guy. Indeed, I skipped the @world rebuild step, I just wanted to avoid rebuilding those 1000+ packages. i somehow miss the point of reinstalling the packages with split-usr flag.

So I identified them by hand now (with `grep split-usr -r /var/db/pkg/ | grep "/USE"' just in case someone has the same issue) and rebuilt all of them. It fixed the problem, at least qtpaths5 shows now /usr as expected. Id didn't test the ghostwriter as i am connection now only via shh but I expect it will work.

Thanks for showing me the problem and my mistake.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum