https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: media-video/mkvtoolnix-83.0 fails to compile. Discovered on: amd64 (internal ref: ci) Info about the issue: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
CC'ing also the author of the commit (8de73ec9de78a5fb682033e708171fe98c78aee2)
Created attachment 889236 [details] build.log build log and emerge --info
Confirming problem exists here, also. Qt 6.7.0 installed. Output from emerge: checking for Qt 6... no: could not compile a test program configure: error: The Qt library version >= 6.2.0 is required for building MKVToolNix. !!! Please attach the following file when seeking support: !!! /var/tmp/portage/media-video/mkvtoolnix-83.0/work/mkvtoolnix-83.0/config.log * ERROR: media-video/mkvtoolnix-83.0::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 136: Called src_configure * environment, line 2361: Called econf '--disable-debug' '--disable-precompiled-headers' '--enable-gui' '--with-dvdread' '--with-gettext' '--disable-update-check' '--disable-optimization' '--with-boost=/usr' '--with-boost-libdir=/usr/lib64' '--with-qmake6=/usr/lib64/qt6/bin/qmake' * phase-helpers.sh, line 732: Called __helpers_die 'econf failed' * isolated-functions.sh, line 112: Called die * The specific snippet of code: * die "$@" * * S: '/var/tmp/portage/media-video/mkvtoolnix-83.0/work/mkvtoolnix-83.0' *
(In reply to Scott Furry from comment #3) > Confirming problem exists here, also. Qt 6.7.0 installed. > Output from emerge: > checking for Qt 6... no: could not compile a test program > configure: error: The Qt library version >= 6.2.0 is required for building > MKVToolNix. > > !!! Please attach the following file when seeking support: > !!! > /var/tmp/portage/media-video/mkvtoolnix-83.0/work/mkvtoolnix-83.0/config.log > * ERROR: media-video/mkvtoolnix-83.0::gentoo failed (configure phase): > * econf failed > * > * Call stack: > * ebuild.sh, line 136: Called src_configure > * environment, line 2361: Called econf '--disable-debug' > '--disable-precompiled-headers' '--enable-gui' '--with-dvdread' > '--with-gettext' '--disable-update-check' '--disable-optimization' > '--with-boost=/usr' '--with-boost-libdir=/usr/lib64' > '--with-qmake6=/usr/lib64/qt6/bin/qmake' > * phase-helpers.sh, line 732: Called __helpers_die 'econf failed' > * isolated-functions.sh, line 112: Called die > * The specific snippet of code: > * die "$@" > * > * S: '/var/tmp/portage/media-video/mkvtoolnix-83.0/work/mkvtoolnix-83.0' > * Could you include /var/tmp/portage/media-video/mkvtoolnix-83.0/work/mkvtoolnix-83.0/config.log?
Created attachment 890058 [details] mkvtoolnix-83.0 config.log Attaching requested config.log file.
(In reply to Scott Furry from comment #5) > Created attachment 890058 [details] > mkvtoolnix-83.0 config.log > > Attaching requested config.log file. Your issue is https://bugs.gentoo.org/927497 again. Long story short building qtbase with clang effects the flags that qmake uses in other builds meaning it tries to add clang flags to them all, no matter if gcc is used instead or not. I cannot be certain that its the same as what the tinderbox found due to it not including a config.log. So Ill go with the assumption that its different. https://bugs.gentoo.org/927497#c3 https://bugs.gentoo.org/927497#c5
(In reply to Alfred Wingate from comment #6) > Your issue is https://bugs.gentoo.org/927497 again. > > Long story short building qtbase with clang effects the flags that qmake > uses in other builds meaning it tries to add clang flags to them all, no > matter if gcc is used instead or not. I've setup a directive in package.env to force the issue using clang for mkvtoolnix. That I got passed the configure phase and emerge is happily crunching away bits, your assessment sounds solid to me. Thanks for the help in filtering my noise on this bug.
ci has reproduced this issue with version 84.0 - Updating summary.
It is possible that there is a problem configuring against qt5 in Gentoo. Since enabling the USE flag `qt6` explicitly for this package and establishing an env directive to build package with same compiler as qt6 (llvm/clang), I have not had a problem. As bug report was posted, I was in the process of building latest (v 84.0) successfully.
Qt5 support was completely dropped in mkvtoolnix-82 by upstream. This is (most likely) unrelated to your clang bug as the tinderbox doesn't claim to build anything with clang. I've been unable to reproduce this myself in a container and last time I asked about getting a config.log it didn't go anywhere. At the time it was theorised by ago that this was https://bugs.gentoo.org/787032.
ci has reproduced this issue with version 84.0-r1 - Updating summary.
ci has reproduced this issue with version 86.0 - Updating summary.
Created attachment 900790 [details] emerge --info mkvtoolnix with qt 6.7.2 Not sure if this helps but I have qt 6.7.2 installed and 86.0 emerges fine.
This is a forever bug that cannot be diagnosed due to the missing config.log. If you have issues with mkvtoolnix do not look at this bug, create a new one instead. Maybe its https://bugs.gentoo.org/787032, maybe its not.
Created attachment 916625 [details] config.log Confirmed. Happens when qtbase is compiled with clang. I've attached the config.log.
(In reply to Joost Ruis from comment #15) > Created attachment 916625 [details] > config.log > > Confirmed. Happens when qtbase is compiled with clang. I've attached the > config.log. > x86_64-pc-linux-gnu-g++: error: unrecognized command-line option '-ccc-gcc-name' This is https://bugs.gentoo.org/927497 again. See https://bugs.gentoo.org/928406#c6