Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928406 - media-video/mkvtoolnix-84.0-r1 fails to compile: configure: error: The Qt library version >= 6.2.0 is required for building MKVToolNix
Summary: media-video/mkvtoolnix-84.0-r1 fails to compile: configure: error: The Qt lib...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-02 07:08 UTC by Agostino Sarubbo
Modified: 2024-06-09 07:25 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,58.88 KB, text/plain)
2024-04-02 07:08 UTC, Agostino Sarubbo
Details
mkvtoolnix-83.0 config.log (config.log,43.22 KB, text/x-log)
2024-04-09 11:37 UTC, Scott Furry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-04-02 07:08:33 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2024-04-02 07:08:34 UTC
CC'ing also the author of the commit (8de73ec9de78a5fb682033e708171fe98c78aee2)
Comment 2 Agostino Sarubbo gentoo-dev 2024-04-02 07:08:35 UTC
Created attachment 889236 [details]
build.log

build log and emerge --info
Comment 3 Scott Furry 2024-04-09 11:29:52 UTC
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'
 *
Comment 4 Alfred Wingate 2024-04-09 11:31:34 UTC
(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?
Comment 5 Scott Furry 2024-04-09 11:37:09 UTC
Created attachment 890058 [details]
mkvtoolnix-83.0 config.log

Attaching requested config.log file.
Comment 6 Alfred Wingate 2024-04-09 13:00:57 UTC
(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
Comment 7 Scott Furry 2024-04-09 13:11:43 UTC
(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.
Comment 8 Agostino Sarubbo gentoo-dev 2024-05-28 06:37:07 UTC
ci has reproduced this issue with version 84.0 - Updating summary.
Comment 9 Scott Furry 2024-05-28 07:19:16 UTC
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.
Comment 10 Alfred Wingate 2024-05-28 12:35:44 UTC
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.
Comment 11 Agostino Sarubbo gentoo-dev 2024-06-09 07:25:41 UTC
ci has reproduced this issue with version 84.0-r1 - Updating summary.