Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927636 - media-libs/mesa-24.0.3 - /usr/include/directx/dxcore_interface.h:90:5: error: expected identifier before numeric constant
Summary: media-libs/mesa-24.0.3 - /usr/include/directx/dxcore_interface.h:90:5: error:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 927924 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-23 16:32 UTC by Martin Mokrejš
Modified: 2024-03-28 16:05 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge-info.txt,9.54 KB, text/plain)
2024-03-23 16:32 UTC, Martin Mokrejš
Details
build.log.bz2 (build.log.bz2,51.24 KB, application/octet-stream)
2024-03-23 16:33 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2024-03-23 16:32:17 UTC
Created attachment 888289 [details]
emerge --info

x86_64-pc-linux-gnu-g++ -Isrc/microsoft/vulkan/libvulkan_dzn.so.p -Isrc/microsoft/vulkan -I../mesa-24.0.3/src/microsoft/vulkan -Iinclude -I../mesa-24.0.3/include -Isrc -I../mesa-24.0.3/src -Isrc/microsoft/compiler -I../mesa-24.0.3/src/m
icrosoft/compiler -Isrc/microsoft/spirv_to_dxil -I../mesa-24.0.3/src/microsoft/spirv_to_dxil -Isrc/compiler/nir -I../mesa-24.0.3/src/compiler/nir -Isrc/compiler -I../mesa-24.0.3/src/compiler -Isrc/vulkan/util -I../mesa-24.0.3/src/vulkan
/util -Isrc/vulkan/runtime -I../mesa-24.0.3/src/vulkan/runtime -Isrc/vulkan/wsi -I../mesa-24.0.3/src/vulkan/wsi -I/usr/lib64/libffi/include -I/usr/include/libdrm -I/usr/include/wsl/stubs -I/usr/include/directx -fvisibility=hidden -fdiag
nostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="24.0.3"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/
mesa/mesa/-/issues"' -DHAVE_OPENGL=1 -DHAVE_OPENGL_ES_1=0 -DHAVE_OPENGL_ES_2=1 -DHAVE_CROCUS -DHAVE_D3D12 -DHAVE_I915 -DHAVE_IRIS -DHAVE_SVGA -DHAVE_SWRAST -DUSE_VK_COMPILER=1 -DVIDEO_CODEC_VC1DEC=1 -DVIDEO_CODEC_H264DEC=1 -DVIDEO_CODEC
_H264ENC=1 -DVIDEO_CODEC_H265DEC=1 -DVIDEO_CODEC_H265ENC=1 -DVIDEO_CODEC_AV1DEC=1 -DVIDEO_CODEC_AV1ENC=1 -DVIDEO_CODEC_VP9DEC=1 -DHAVE_X11_PLATFORM -DHAVE_WAYLAND_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_XCB_PLATF
ORM -DHAVE_GALLIUM_D3D12_VIDEO -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DHAVE_VA_SURFACE_ATTRIB_DRM_FORMAT_MODIFIERS -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DGLAPI_EXPORT_PROTO_ENTRY_POINTS=0 -DALLOW_
KCMP -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT 
-DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED 
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_A
TTRIBUTE_VISIBILITY -DHAVE_UINT128 -DHAVE_REALLOCARRAY -DHAVE_FMEMOPEN -D_GNU_SOURCE -DUSE_SSE41 -DHAVE___BUILTIN_IA32_CLFLUSHOPT -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_64_ASM -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H -DHAS_SCHED_GETAFFINITY -DHA
VE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_SYS_INOTIFY_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_POSIX_FALLOCATE -D
HAVE_SECURE_GETENV -DHAVE_GNU_QSORT_R -DHAVE_STRUCT_TIMESPEC -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_ISSIGNALING -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DSUPPORT_INTEL_INTEGRATED_GP
US -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DHAVE_LIBUDEV '-DMESA_LLVM_VERSION_STRING="17.0.6"' -DLLVM_IS_SHARED=1 -DLLVM_AVAILABLE=1 -DDRAW_LLVM_AVAILABLE=1 -DUSE_LIBELF -DUSE_
LIBGLVND=1 -DHAVE_LIBUNWIND -DWL_HIDE_DEPRECATED -DHAVE_OPENMP -DXCB_KEYSYMS_AVAILABLE -DHAVE_DRI -DHAVE_DRI2 -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DHAVE_DRISW_KMS -DHAVE_LIBSENSORS=1 -mtls-dialect=gnu2 -Werror=return-type -Werror=empty-bo
dy -Wmisleading-indentation -Wno-non-virtual-dtor -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -flifetime-dse=1 -Wno-unknown-pragmas -Werror=format -Wformat-security -ffunction-sections -fdat
a-sections -Wno-unused-variable -Wno-unused-but-set-variable -O2 -pipe -march=native -ftree-vectorize -fPIC -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_XLIB_KHR -DVK_USE_PLATFORM_WAYLAND_KHR -DVK_USE_PLATFORM_DISPLAY_KHR -DVK_USE_PLATFO
RM_XLIB_XRANDR_EXT -pthread -Wno-error=unused-value -MD -MQ src/microsoft/vulkan/libvulkan_dzn.so.p/dzn_dxcore.cpp.o -MF src/microsoft/vulkan/libvulkan_dzn.so.p/dzn_dxcore.cpp.o.d -o src/microsoft/vulkan/libvulkan_dzn.so.p/dzn_dxcore.cp
p.o -c ../mesa-24.0.3/src/microsoft/vulkan/dzn_dxcore.cpp
In file included from /usr/include/X11/Xlib.h:44,
                 from ../mesa-24.0.3/include/vulkan/vulkan.h:58,
                 from ../mesa-24.0.3/src/microsoft/vulkan/dzn_physical_device_enum.h:27,
                 from ../mesa-24.0.3/src/microsoft/vulkan/dzn_dxcore.cpp:24:
/usr/include/directx/dxcore_interface.h:90:5: error: expected identifier before numeric constant
   90 |     None = 0x0,
      |     ^~~~
/usr/include/directx/dxcore_interface.h:90:5: error: expected ‘}’ before numeric constant
In file included from /usr/include/directx/dxcore.h:12,
                 from ../mesa-24.0.3/src/microsoft/vulkan/dzn_dxcore.cpp:25:
/usr/include/directx/dxcore_interface.h:89:1: note: to match this ‘{’
   89 | {
      | ^
/usr/include/directx/dxcore_interface.h:90:5: error: expected unqualified-id before numeric constant
   90 |     None = 0x0,
      |     ^~~~
/usr/include/directx/dxcore_interface.h:93:1: error: expected declaration before ‘}’ token
   93 | };
      | ^
/usr/include/directx/dxcore_interface.h:99:5: error: expected identifier before numeric constant
   99 |     None = 0x0,
      |     ^~~~
/usr/include/directx/dxcore_interface.h:99:5: error: expected ‘}’ before numeric constant
/usr/include/directx/dxcore_interface.h:98:1: note: to match this ‘{’
   98 | {
      | ^
/usr/include/directx/dxcore_interface.h:99:5: error: expected unqualified-id before numeric constant
   99 |     None = 0x0,
      |     ^~~~
/usr/include/directx/dxcore_interface.h:104:1: error: expected declaration before ‘}’ token
  104 | };
      | ^
ninja: build stopped: subcommand failed.
Comment 1 Martin Mokrejš 2024-03-23 16:33:03 UTC
Created attachment 888290 [details]
build.log.bz2
Comment 2 Martin Mokrejš 2024-03-23 16:42:15 UTC
Obviously omitting d3d12 from VIDEO_CARDS works around the issue.
Comment 3 Maurizio Contu 2024-03-23 18:54:30 UTC
It's a bug with =>dev-util/directx-headers-1.613.1
You can read more here https://gitlab.freedesktop.org/mesa/mesa/-/issues/10803
In my sistem I downgrade the directx-hearder to =>dev-util/directx-headers-1.611.0 and compile without any errors.
Comment 4 Martin Mokrejš 2024-03-24 20:41:23 UTC
(In reply to Maurizio Contu from comment #3)
> In my sistem I downgrade the directx-hearder to
> =>dev-util/directx-headers-1.611.0 and compile without any errors.

Right. Thank you!
Comment 5 Matt Turner gentoo-dev 2024-03-25 19:49:15 UTC
I suspect this is the same issue as was reported upstream here: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10803
Comment 6 Matt Turner gentoo-dev 2024-03-28 15:56:26 UTC
*** Bug 927924 has been marked as a duplicate of this bug. ***
Comment 7 Larry the Git Cow gentoo-dev 2024-03-28 16:05:37 UTC
The bug has been closed via the following commit(s):

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

commit d0bae4a0682e777ae19d3ac501cfc1fb42432210
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2024-03-28 16:04:37 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2024-03-28 16:05:33 +0000

    media-libs/mesa: Fix build with new directx-headers
    
    Closes: https://bugs.gentoo.org/927636
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 ...-vulkan_core.h-instead-of-vulkan.h-in-the.patch | 31 ++++++++++++++++++++++
 media-libs/mesa/mesa-24.0.4.ebuild                 |  4 +++
 2 files changed, 35 insertions(+)