Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947487 - media-libs/libva-intel-media-driver-24.4.4: Fails to build
Summary: media-libs/libva-intel-media-driver-24.4.4: Fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: VA-API Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-04 13:59 UTC by Christophe B.
Modified: 2025-01-04 22:35 UTC (History)
2 users (show)

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


Attachments
build.log (20250104-build.tar.gz,276.97 KB, application/gzip)
2025-01-04 14:02 UTC, Christophe B.
Details
emerge -pqv (20250104-emerge-pqv,183 bytes, text/plain)
2025-01-04 14:03 UTC, Christophe B.
Details
emerge --info (20250104-emergeinfo,7.38 KB, text/plain)
2025-01-04 14:04 UTC, Christophe B.
Details
environment (20250104-environment,111.18 KB, text/plain)
2025-01-04 14:05 UTC, Christophe B.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe B. 2025-01-04 13:59:57 UTC
Hello,

During compilation, the following error is returned while trying to emerge libva-intel-media-driver: 

ERROR: media-libs/libva-intel-media-driver-24.4.4::gentoo failed (compile phase):
 *   ninja -v -j4 -l5 failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 2574:  Called cmake-multilib_src_compile
 *   environment, line  772:  Called multilib-minimal_src_compile
 *   environment, line 1911:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 *   environment, line 2178:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 1871:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 1869:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 *   environment, line  526:  Called multilib-minimal_abi_src_compile
 *   environment, line 1905:  Called multilib_src_compile
 *   environment, line 2398:  Called cmake_src_compile
 *   environment, line  890:  Called cmake_build
 *   environment, line  857:  Called eninja
 *   environment, line 1339:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"


Disabling ccache does not solve the issue.

Please see attached files for details.

Thanks and regards,

Christophe
Comment 1 Christophe B. 2025-01-04 14:02:50 UTC
Created attachment 915829 [details]
build.log
Comment 2 Christophe B. 2025-01-04 14:03:31 UTC
Created attachment 915830 [details]
emerge -pqv
Comment 3 Christophe B. 2025-01-04 14:04:42 UTC
Created attachment 915831 [details]
emerge --info
Comment 4 Christophe B. 2025-01-04 14:05:04 UTC
Created attachment 915832 [details]
environment
Comment 5 account.disabled.Evaib6ong3eiphohWo4j 2025-01-04 19:16:06 UTC
(In reply to Christophe B. from comment #0)
> Hello,
> 
> During compilation, the following error is returned while trying to emerge
> libva-intel-media-driver: 
> 
> ERROR: media-libs/libva-intel-media-driver-24.4.4::gentoo failed (compile
> phase):
>  *   ninja -v -j4 -l5 failed
>  * 
>  * Call stack:
>  *     ebuild.sh, line  136:  Called src_compile
>  *   environment, line 2574:  Called cmake-multilib_src_compile
>  *   environment, line  772:  Called multilib-minimal_src_compile
>  *   environment, line 1911:  Called multilib_foreach_abi

This is the the phase in which the ebuild stopped and the reason for the failure is:
In file included from /var/tmp/portage/media-libs/libva-intel-media-driver-24.4.4/work/media-driver-intel-media-24.4.4/media_driver/agnostic/common/shared/mediacopy/media_vebox_copy.h:37,
                 from /var/tmp/portage/media-libs/libva-intel-media-driver-24.4.4/work/media-driver-intel-media-24.4.4/media_driver/agnostic/common/shared/mediacopy/media_vebox_copy.cpp:28:
/var/tmp/portage/media-libs/libva-intel-media-driver-24.4.4/work/media-driver-intel-media-24.4.4/media_driver/agnostic/common/shared/mediacopy/media_vebox_copy.cpp: In member function ‘virtual MOS_STATUS VeboxCopyState::CopyMainSurface(PMOS_RESOURCE, PMOS_RESOURCE)’:
/var/tmp/portage/media-libs/libva-intel-media-driver-24.4.4/work/media-driver-intel-media-24.4.4/media_softlet/agnostic/common/shared/mediacopy/media_copy_common.h:49:57: error: ‘VPHAL_MCP_VEBOX_COPY’ was not declared in this scope
   49 | #define VEBOX_COPY                          ((uint32_t)(VPHAL_MCP_VEBOX_COPY))
      |                                                         ^~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/media-libs/libva-intel-media-driver-24.4.4/work/media-driver-intel-media-24.4.4/media_driver/agnostic/common/shared/mediacopy/media_vebox_copy.cpp:151:48: note: in expansion of macro ‘VEBOX_COPY’
  151 |     m_osInterface->pfnSetPerfTag(m_osInterface,VEBOX_COPY);
      |                                                ^~~~~~~~~~
Comment 6 account.disabled.Evaib6ong3eiphohWo4j 2025-01-04 19:19:19 UTC
I see that you're emerging media-libs/libva-intel-media-driver-24.4.4 which is ~amd64 but your system has ACCEPT_KEYWORDS="amd64", could you also add media-libs/gmmlib in package.accept_keywords and then try updating world and see if media driver builds
Comment 7 account.disabled.Evaib6ong3eiphohWo4j 2025-01-04 19:37:37 UTC
Also change the summary to "media-libs/libva-intel-media-driver-24.4.4: Fails to build" so it can show up nicely on https://packages.gentoo.org/packages/media-libs/libva-intel-media-driver/bugs
Comment 8 Christophe B. 2025-01-04 21:54:50 UTC
(In reply to wxviolation from comment #7)
> Also change the summary to "media-libs/libva-intel-media-driver-24.4.4:
> Fails to build" so it can show up nicely on
> https://packages.gentoo.org/packages/media-libs/libva-intel-media-driver/bugs

Hi,

Many thanks for your reply. I have modified the subject for this bug.

I did as you suggested and added ~amd64 keyword for gmmlib in package.accept_keywords. And that has resolved the issue, it seems! I had added it for libva-intel-media-driver to start the build, but it did not occur to me to also add it for gmmlib.

So this is all solved. Many thanks!
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-04 21:57:57 UTC
The package still needs a fixed dependency.
Comment 10 Larry the Git Cow gentoo-dev 2025-01-04 22:35:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae0cd087f711517af2ee23916797aa0b4befd3db

commit ae0cd087f711517af2ee23916797aa0b4befd3db
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2025-01-04 22:35:25 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2025-01-04 22:35:25 +0000

    media-libs/libva-intel-media-driver: Raise required gmmlib dep
    
    Closes: https://bugs.gentoo.org/947487
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 ...driver-24.4.4.ebuild => libva-intel-media-driver-24.4.4-r1.ebuild} | 4 ++--
 .../libva-intel-media-driver/libva-intel-media-driver-9999.ebuild     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)