Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908592 - media-libs/gmmlib-22.3.7: error: ambiguating new declaration
Summary: media-libs/gmmlib-22.3.7: error: ambiguating new declaration
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: VA-API Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-06-16 08:51 UTC by Andrew Ammerlaan
Modified: 2023-06-17 05:42 UTC (History)
0 users

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


Attachments
Build log (build.log,114.05 KB, text/plain)
2023-06-16 08:51 UTC, Andrew Ammerlaan
Details
patch to fix ambiguating new declaration build error (gmminfo.patch,887 bytes, patch)
2023-06-17 00:24 UTC, Nicholas Santos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Ammerlaan gentoo-dev 2023-06-16 08:51:03 UTC
Created attachment 863917 [details]
Build log

andrew-gentoo-pc andrew # emerge -pqv '=media-libs/gmmlib-22.3.7::gentoo'

Local copy of remote index is up-to-date and will be used.
[ebuild     U ] media-libs/gmmlib-22.3.7 [22.3.5] USE="custom-cflags -test" ABI_X86="32 (64) (-x32)"

Fails with:
FAILED: Source/GmmLib/CMakeFiles/igfx_gmmumd_dll.dir/GlobalInfo/GmmInfo.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse -DGMM_LIB_DLL -DGMM_LIB_DLL_EXPORTS -DGMM_UNIFIED_LIB -DGMM_UNIFY_DAF_API -DISTDLIB_UMD -DSMALL_POOL_ALLOC -DUNUSED_ISTDLIB_MT -D_ATL_NO_WIN_SUPPORT -D__GFX_MACRO_C__ -D__GMM -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -D__UMD -Digfx_gmmumd_dll_EXPORTS -I/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib -I/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/Utility/GmmLog -I/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/inc -I/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/Utility -I/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/GlobalInfo -I/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/Texture -I/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/Resource -I/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/Platform -I/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/util -I/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/inc -I/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/inc/common -I/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/inc/umKmInc -I/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/install  -O2 -pipe -march=skylake -mtune=skylake -Wno-reorder -Wsign-promo -Wnon-virtual-dtor -Wno-invalid-offsetof -fvisibility-inlines-hidden -fno-use-cxa-atexit -fno-rtti -fexceptions -fcheck-new -std=c++11 -pthread -Werror=non-virtual-dtor -fPIC -Wall -Winit-self -Winvalid-pch -Wpointer-arith -Wno-unused -Wno-unknown-pragmas -Wno-comments -Wno-narrowing -Wno-overflow -Wno-parentheses -Wno-missing-braces -Wno-sign-compare -Wno-enum-compare -Werror=address -Werror=format-security -Werror=return-type -msse4.1 -mfpmath=sse -finline-functions -fno-short-enums -Wa,--noexecstack -fno-strict-aliasing -fstack-protector -fdata-sections -ffunction-sections -fmessage-length=0 -fvisibility=hidden -fPIC -funswitch-loops -Wl,--no-undefined -Wl,--no-as-needed -Wl,--gc-sections -MD -MT Source/GmmLib/CMakeFiles/igfx_gmmumd_dll.dir/GlobalInfo/GmmInfo.cpp.o -MF Source/GmmLib/CMakeFiles/igfx_gmmumd_dll.dir/GlobalInfo/GmmInfo.cpp.o.d -o Source/GmmLib/CMakeFiles/igfx_gmmumd_dll.dir/GlobalInfo/GmmInfo.cpp.o -c /tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/GlobalInfo/GmmInfo.cpp
/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/GlobalInfo/GmmInfo.cpp:628:24: error: ambiguating new declaration of ‘GMM_STATUS GmmLib::GmmMultiAdapterContext::LockMAContextSyncMutex()’
628 | GMM_STATUS GMM_STDCALL GmmLib::GmmMultiAdapterContext::LockMAContextSyncMutex()
|                        ^~~~~~
In file included from /tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/inc/External/Common/GmmInfoExt.h:25,
from /tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/inc/../Texture/GmmTexture.h:27,
from /tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/inc/Internal/Common/GmmLibInc.h:52,
from /tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/GlobalInfo/GmmInfo.cpp:23:
/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/inc/External/Common/GmmInfo.h:630:41: note: old declaration ‘GMM_STATUS GmmLib::GmmMultiAdapterContext::LockMAContextSyncMutex()’
630 |         GMM_STATUS                      LockMAContextSyncMutex();
|                                         ^~~~~~~~~~~~~~~~~~~~~~
/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/GlobalInfo/GmmInfo.cpp:639:24: error: ambiguating new declaration of ‘GMM_STATUS GmmLib::GmmMultiAdapterContext::UnLockMAContextSyncMutex()’
639 | GMM_STATUS GMM_STDCALL GmmLib::GmmMultiAdapterContext::UnLockMAContextSyncMutex()
|                        ^~~~~~
/tmp/portage/media-libs/gmmlib-22.3.7/work/gmmlib-intel-gmmlib-22.3.7/Source/GmmLib/inc/External/Common/GmmInfo.h:631:41: note: old declaration ‘GMM_STATUS GmmLib::GmmMultiAdapterContext::UnLockMAContextSyncMutex()’
631 |         GMM_STATUS                      UnLockMAContextSyncMutex();
|                                         ^~~~~~~~~~~~~~~~~~~~~~~~
Comment 1 Nicholas Santos 2023-06-17 00:24:49 UTC
Created attachment 863986 [details, diff]
patch to fix ambiguating new declaration build error

Upstream patch from https://github.com/intel/gmmlib/issues/103
Comment 2 Larry the Git Cow gentoo-dev 2023-06-17 05:42:38 UTC
The bug has been closed via the following commit(s):

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

commit 346510d96fcfdc79f4b4448135bbf58679120f53
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-17 05:10:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-17 05:40:38 +0000

    media-libs/gmmlib: fix build error
    
    Closes: https://bugs.gentoo.org/908592
    Signed-off-by: Sam James <sam@gentoo.org>

 .../gmmlib/files/gmmlib-22.3.7_ambiguating.patch   | 27 ++++++++++++++++++++++
 media-libs/gmmlib/gmmlib-22.3.7.ebuild             |  1 +
 2 files changed, 28 insertions(+)