Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Emerge fails in compile phase - qtgui and others
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
LynxLike
n00b
n00b


Joined: 13 Apr 2024
Posts: 5
Location: Slovenia

PostPosted: Sat Apr 13, 2024 8:32 am    Post subject: [SOLVED] Emerge fails in compile phase - qtgui and others Reply with quote

[/b]After more than a year I have revived my old gentoo system and after some manual interventions I have managed to upgrade almost everything. Now I have the following situation, that I don't know how to tackle.

Emerge @world does not block and I can approve the compile and install stages, but after compiling qtgui:5 the emerge fails notifying me of slot conflict. The situation is as follows:

Code:
>>> emerge -uDaN --keep-going --backtrack=200  @world

These are the packages that would be merged, in order:

Calculating dependencies...
Dependency resolution took 130.40 s (backtrack: 1/200).

[ebuild     U  ] dev-qt/qtgui-5.15.13 [5.15.4-r2]
[ebuild  N     ] dev-qt/qtx11extras-5.15.13  USE="-debug -test"
[ebuild     U  ] dev-qt/qtwidgets-5.15.13 [5.15.4-r2]
[ebuild     U  ] dev-qt/qtsvg-5.15.13 [5.15.4]
[ebuild     U  ] www-client/vivaldi-6.6.3271.55 [5.3.2679.58] USE="(ffmpeg-chromium%*) gtk%* qt5%* -qt6%" L10N="-ca-valencia%"
[ebuild     U  ] dev-qt/qtopengl-5.15.13 [5.15.4]
[ebuild     U  ] dev-qt/qtprintsupport-5.15.13 [5.15.4-r1]
[ebuild     U  ] x11-misc/xscreensaver-6.08 [6.01-r4] USE="-gles% -glx% -logind-idle-hint%"
[ebuild     U  ] dev-python/pyasn1-0.6.0 [0.5.1]
[ebuild     U  ] dev-python/pymongo-4.6.3 [4.6.2]
[ebuild     U  ] dev-python/pyasn1-modules-0.4.0 [0.3.0]
[ebuild     U  ] dev-python/filelock-3.13.3 [3.13.1]
[ebuild     U  ] net-misc/dhcpcd-ui-0.7.9 [0.7.8]
[ebuild     U  ] sys-boot/grub-2.12-r4 [2.12-r3]
[ebuild  rR    ] net-dialup/ppp-2.5.0-r7
[ebuild     U  ] app-crypt/pinentry-1.2.1-r4 [1.2.0] USE="X%* -keyring% -verify-sig% -wayland%"
[ebuild     U  ] net-libs/nghttp2-1.61.0 [1.57.0]
[ebuild     U  ] net-misc/networkmanager-1.46.0-r1 [1.36.4]
[ebuild     U  ] gnome-base/gvfs-1.52.2 [1.52.1]
[ebuild     U  ] media-gfx/gimp-2.10.36 [2.10.30] USE="-jpegxl%"
[ebuild     U  ] xfce-base/thunar-4.18.10 [4.16.11]
[ebuild   R    ] app-portage/elicense-1.0.2  PYTHON_TARGETS="python3_10* -python3_11% (-python3_8%*) (-python3_9%*)"
[ebuild     U  ] xfce-base/thunar-volman-4.18.0 [4.16.0]
[ebuild     U  ] xfce-base/xfdesktop-4.18.1 [4.16.0]
[ebuild     U  ] xfce-extra/thunar-archive-plugin-0.5.2 [0.5.0]
[ebuild     U  ] xfce-base/xfce4-meta-4.18-r1 [4.16-r2] USE="-archive% -calendar% -cdr% -editor% -image% -media% -mpd% -remote-fs% -search%"

Would you like to merge these packages? [Yes/No]


After approving the list the emerge fails on qtgui with the message:

Code:

>>> Failed to emerge dev-qt/qtgui-5.15.13, Log file:

>>>  '/var/tmp/portage/dev-qt/qtgui-5.15.13/temp/build.log'
*** Resuming merge...
Calculating dependencies... done!
Dependency resolution took 43.33 s.


 * Messages for package dev-qt/qtgui-5.15.13:

 * ERROR: dev-qt/qtgui-5.15.13::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-qt/qtgui-5.15.13::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-qt/qtgui-5.15.13::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-qt/qtgui-5.15.13/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-qt/qtgui-5.15.13/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/src/plugins/platforms'
 * S: '/var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13'
 * One or more packages are either masked or have missing dependencies:
 *
 *   =dev-qt/qtcore-5.15.4*:5/5.15.4= pulled in by:
 *     (dev-qt/qtwidgets-5.15.4-r2:5/5.15::gentoo, installed)
 *
 *   =dev-qt/qtcore-5.15.4*:5/5.15.4= pulled in by:
 *     (dev-qt/qtgui-5.15.4-r2:5/5.15.4::gentoo, installed)
 *
 *   =dev-qt/qtcore-5.15.4* pulled in by:
 *     (dev-qt/qtsvg-5.15.4:5/5.15::gentoo, installed)
 *
 * The resume list contains packages that are either masked or have
 * unsatisfied dependencies. Please restart/continue the operation
 * manually, or use --skipfirst to skip the first package in the list and
 * any other packages that may be masked or have missing dependencies.
 *
 * The following package has failed to build, install, or execute postinst:
 *
 *  (dev-qt/qtgui-5.15.13:5/5.15.13::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/dev-qt/qtgui-5.15.13/temp/build.log'


The state of related package.use and package.mask entries is as follows:

Code:

/etc/portage/package.use/qt5:app-text/qpdfview -qt5
/etc/portage/package.use/qt5:dev-qt/qtnetwork -bindist
/etc/portage/package.use/qt5:sys-auth/polkit-qt qt5 qt4
/etc/portage/package.use/qt5:>=dev-qt/qtwebkit-5.6.1 printsupport
/etc/portage/package.use/qt5:# required by dev-qt/qtwebkit-5.6.1::gentoo
/etc/portage/package.use/qt5:>=dev-qt/qtcore-5.6.1 icu
/etc/portage/package.use/qt5:# required by dev-qt/qtsingleapplication-2.6.1_p20150629::gentoo
/etc/portage/package.use/qt5:>=dev-qt/qtlockedfile-2.4.1_p20150629 qt5
/etc/portage/package.use/qt5:>=dev-qt/qtsingleapplication-2.6.1_p20150629 qt5
/etc/portage/package.use/qt5:>=app-text/poppler-0.45.0 qt5
/etc/portage/package.use/qt5:# required by dev-qt/qtwidgets-5.9.4-r1::gentoo[gtk]
/etc/portage/package.use/qt5:# required by dev-qt/qtsvg-5.9.4-r2::gentoo
/etc/portage/package.use/qt5:>=dev-qt/qtgui-5.9.4-r3 dbus
/etc/portage/package.use/qt5:dev-qt/qtwebengine -system-ffmpeg
/etc/portage/package.use/qt5:>=dev-qt/qtwidgets-5.15.2-r11 dbus


What confuses me is that portage does not rebuilt everythink that uses the previous qt5 version and that the dependency conflict happens during emerge...

Any pointer would be appreciated. I mostly found posts where blockages occur on emerge and not during compilation, so I am really at a loss here. Otherwise have been gentoo user since 2014 and usually I manage to get around such problems.

Thank you in advance![/code]


Last edited by LynxLike on Sat Apr 13, 2024 2:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
xgivolari
n00b
n00b


Joined: 26 Jul 2021
Posts: 73

PostPosted: Sat Apr 13, 2024 8:58 am    Post subject: Reply with quote

The various qt packages depend very closely on each other's versions, and need to be upgraded in the right order. You already upgraded qtcore, so the other old qt5 packages now have a temporarily unsatisfied dependency, which portage wants to resolve via the upgrade. However, because the new qtgui fails to build, the remaining qt5 packages cannot be built either. When portage tries to resume the emerge without touching qtgui and friends, the only thing it can do to satisfy their dependencies is to downgrade qtcore again. This creates the conflict.

TL;DR: the actual problem is that qtgui fails to build.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4558
Location: Germany

PostPosted: Sat Apr 13, 2024 9:10 am    Post subject: Reply with quote

Hello, and welcome on the forum :)

For better help, please post this:
Code:
 * If you need support, post the output of `emerge --info '=dev-qt/qtgui-5.15.13::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-qt/qtgui-5.15.13::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-qt/qtgui-5.15.13/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-qt/qtgui-5.15.13/temp/environment'.'
For the large build.log and environment file best posting this via wgetpaste
Back to top
View user's profile Send private message
LynxLike
n00b
n00b


Joined: 13 Apr 2024
Posts: 5
Location: Slovenia

PostPosted: Sat Apr 13, 2024 10:38 am    Post subject: Outputs and more detail Reply with quote

Thank you all for your replies and support. As well as for welcoming me at the forums :)

Next is the output of requested logs:

emerge --info '=dev-qt/qtgui-5.15.13::gentoo:
https://bpa.st/26JA

emerge -pqv '=dev-qt/qtgui-5.15.13::gentoo:
https://bpa.st/4BAA

build-log:
https://paste.gentoo.zip/zEfEigYa

TL;DR:[/url]

There are some undefined references reported by linker - concretely:

qgenericunixservices.cpp:(.text+0x759): undefined reference to `QPlatformServiceColorPicker::colorPicked(QColor const&)


The snipped from above posted full compile log with error is provided underneath:

Code:
x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,--undefined-version -Wl,--no-undefined -Wl,--version-script,QtXcbQpa.version -Wl,--enable-new-dtags -shared -Wl,-Bsymbolic-functions -Wl,-soname,libQt5XcbQpa.so.5 -o libQt5XcbQpa.so.5.15.13 .obj/qxcbclipboard.o .obj/qxcbconnection.o .obj/qxcbintegration.o .obj/qxcbkeyboard.o .obj/qxcbmime.o .obj/qxcbscreen.o .obj/qxcbwindow.o .obj/qxcbbackingstore.o .obj/qxcbwmsupport.o .obj/qxcbnativeinterface.o .obj/qxcbcursor.o .obj/qxcbimage.o .obj/qxcbxsettings.o .obj/qxcbsystemtraytracker.o .obj/qxcbeventqueue.o .obj/qxcbeventdispatcher.o .obj/qxcbconnection_basic.o .obj/qxcbconnection_screens.o .obj/qxcbconnection_xi2.o .obj/qxcbatom.o .obj/qxcbdrag.o .obj/qt_xlib_wrapper.o .obj/qxcbsessionmanager.o .obj/qxcbglintegrationfactory.o .obj/qxcbglintegration.o .obj/qxcbnativeinterfacehandler.o .obj/moc_qxcbglintegrationplugin.o  /var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/lib/libQt5ServiceSupport.a /var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/lib/libQt5ThemeSupport.a /var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/lib/libQt5FontDatabaseSupport.a -lfontconfig -lfreetype -lz /var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/lib/libQt5XkbCommonSupport.a /usr/lib64/libQt5LinuxAccessibilitySupport.a /usr/lib64/libQt5AccessibilitySupport.a /usr/lib64/libQt5Gui.so -lpthread /var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/lib/libQt5AccessibilitySupport.a -lGL /var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/lib/libQt5Gui.so /var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/lib/libQt5EdidSupport.a /usr/lib64/libQt5DBus.so /usr/lib64/libQt5Core.so -pthread -lX11-xcb -lxcb-icccm -lxcb-image -lxcb-shm -lxcb-keysyms -lxcb-randr -lxcb-render-util -lxcb-render -lxcb-shape -lxcb-sync -lxcb-xfixes -lxcb-xinerama -lxcb-xkb -lxcb-xinput -lxcb -lXext -lX11 -lm -lSM -lICE -lxkbcommon-x11 -lxkbcommon -lGL -lgthread-2.0 -lglib-2.0   
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/lib/libQt5ServiceSupport.a(qgenericunixservices.o): in function `(anonymous namespace)::XdgDesktopPortalColorPicker::~XdgDesktopPortalColorPicker()':
qgenericunixservices.cpp:(.text+0x119): undefined reference to `vtable for QPlatformServiceColorPicker'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/lib/libQt5ServiceSupport.a(qgenericunixservices.o): in function `(anonymous namespace)::XdgDesktopPortalColorPicker::~XdgDesktopPortalColorPicker()':
qgenericunixservices.cpp:(.text+0x179): undefined reference to `vtable for QPlatformServiceColorPicker'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/lib/libQt5ServiceSupport.a(qgenericunixservices.o): in function `(anonymous namespace)::XdgDesktopPortalColorPicker::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) [clone .part.0]':
qgenericunixservices.cpp:(.text+0x759): undefined reference to `QPlatformServiceColorPicker::colorPicked(QColor const&)'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/lib/libQt5ServiceSupport.a(qgenericunixservices.o): in function `(anonymous namespace)::XdgDesktopPortalColorPicker::qt_metacall(QMetaObject::Call, int, void**)':
qgenericunixservices.cpp:(.text+0x835): undefined reference to `QPlatformServiceColorPicker::qt_metacall(QMetaObject::Call, int, void**)'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/lib/libQt5ServiceSupport.a(qgenericunixservices.o): in function `QtPrivate::QFunctorSlotObject<(anonymous namespace)::XdgDesktopPortalColorPicker::pickColor()::{lambda(QDBusPendingCallWatcher*)#1}, 1, QtPrivate::List<QDBusPendingCallWatcher*>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*)':
qgenericunixservices.cpp:(.text+0x14e5): undefined reference to `QPlatformServiceColorPicker::colorPicked(QColor const&)'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/lib/libQt5ServiceSupport.a(qgenericunixservices.o): in function `(anonymous namespace)::XdgDesktopPortalColorPicker::qt_metacast(char const*)':
qgenericunixservices.cpp:(.text+0x55): undefined reference to `QPlatformServiceColorPicker::qt_metacast(char const*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/lib/libQt5ServiceSupport.a(qgenericunixservices.o):(.data.rel.ro+0x10): undefined reference to `typeinfo for QPlatformServiceColorPicker'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/lib/libQt5ServiceSupport.a(qgenericunixservices.o):(.data.rel.ro+0xa0): undefined reference to `QPlatformServiceColorPicker::staticMetaObject'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile.xcb_qpa_lib:227: ../../../../lib/libQt5XcbQpa.so.5.15.13] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/src/plugins/platforms/xcb'
make[1]: *** [Makefile:46: sub-xcb_qpa_lib-pro-make_first-ordered] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-qt/qtgui-5.15.13/work/qtbase-everywhere-src-5.15.13_build/src/plugins/platforms/xcb'
make: *** [Makefile:99: sub-xcb-make_first] Error 2


Best Regards,
Back to top
View user's profile Send private message
xgivolari
n00b
n00b


Joined: 26 Jul 2021
Posts: 73

PostPosted: Sat Apr 13, 2024 11:07 am    Post subject: Reply with quote

This seems to be the same problem as described in #922120. There apparently is a problem with upgrading older qt installations that lack wayland support. One commenter mentions the following workaround:

Quote:
I had the very same problem. I was updating from 5.15.2 as well. But I don't use wayland - only X. Doing emerge -e world helped nothing. For future reference if someone stumbles upon it too. My solution was to just remove all qt `emerge -C 'dev-qt/*'` and run emerge @world again.

I also tried to look into qt files, but I did not see any obvious problem. And now I also cannot reproduce this.
Back to top
View user's profile Send private message
LynxLike
n00b
n00b


Joined: 13 Apr 2024
Posts: 5
Location: Slovenia

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

Wow, thank you! I'll try completely rebuilding qt now. I was thinking about it, but I didn't really understand what the problem was and was trying to get your inputs first to shed some light on this and learn what the real issue was. I'll let you know how it went.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4558
Location: Germany

PostPosted: Sat Apr 13, 2024 12:19 pm    Post subject: Reply with quote

Huh yes, good found

Just a hint - this `emerge -C 'dev-qt/*'` sounds exaggerated, it uninstalling dev-qt/* packages from slot :6 too - and this is not required.
For list up the installed dev-qt/* packages from slot:5, you can see it via
Code:
portageq match / 'dev-qt/*:5'
Back to top
View user's profile Send private message
LynxLike
n00b
n00b


Joined: 13 Apr 2024
Posts: 5
Location: Slovenia

PostPosted: Sat Apr 13, 2024 12:45 pm    Post subject: Reply with quote

Josef.95 wrote:
Huh yes, good found

Just a hint - this `emerge -C 'dev-qt/*'` sounds exaggerated, it uninstalling dev-qt/* packages from slot :6 too - and this is not required.
For list up the installed dev-qt/* packages from slot:5, you can see it via
Code:
portageq match / 'dev-qt/*:5'


Thanks for the hint. This is such a great community, I always learn something new and people are generally very nice.

I went with the:

Code:

emerge -aC $(portageq match / 'dev-qt/*:5')


removal and now it's already half way trough emerging the @world

Thanks for the portageq tip, didn't know it.
Back to top
View user's profile Send private message
LynxLike
n00b
n00b


Joined: 13 Apr 2024
Posts: 5
Location: Slovenia

PostPosted: Sat Apr 13, 2024 2:36 pm    Post subject: Reply with quote

Recompilation after removing dev-qt/*:5 slot atoms has been successful. Thank you all for your help!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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