Display server if rendering to display(X or wayland): N/A
Issue behavior
Windows build fails under bash with clang
Describe the current behavior
Windows build fails under bash with clang here is how to reproduce it:
LP-AKAR+Admin@lp-akar MINGW64 ~/source/repos/msdk/build ((intel-mediasdk-22.6.1))
$ cmake ..
-- Building for: MinGW Makefiles
-- The CXX compiler identification is Clang 15.0.3 with GNU-like command-line
-- The C compiler identification is Clang 15.0.3 with GNU-like command-line
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: C:/Program Files/LLVM/bin/clang.exe
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/LLVM/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/LLVM/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Intel OpenCL SDK was not found (optional). The following will not be built: rotate_opencl plugin.
-- Intel(R) Media SDK was found here C:/Users/Admin/source/repos/msdk
-- Enabling API 1.35 feature set with flags
-- CMAKE_INSTALL_PREFIX=C:/Program Files/mediasdk
-- Global Configuration of Targets
-- CMAKE_INSTALL_PREFIX=/opt/intel/mediasdk
-- MFX_PLUGINS_CONF_DIR=/mfx
-- MFX_MODULES_DIR=/opt/intel/mediasdk/lib
-- Intel OpenCL SDK was not found (optional). The following will not be built: rotate_opencl plugin.
-- libdrm was not found, the following will not be built: metrics_monitor.
-- libdrm was not found, the following will not be built: tutorials.
********************** Media SDK Configuration Summary **********************
MediaSDK:
API (request to use this version) :
API_VERSION : 1.35
API_FLAGS :
MFX_CONFIG_FILE :
See detailed per-component mediasdk configuration in the auto-generated file:
C:/Users/Admin/source/repos/msdk/build/mfxconfig.h
Cmake:
CMAKE_VERSION : 3.24.3
CMAKE_GENERATOR : MinGW Makefiles
CMAKE_BUILD_TOOL : C:/Users/Admin/bin/make/mingw32-make.exe
Target:
CMAKE_SYSTEM_NAME : Windows
CMAKE_SYSTEM_VERSION : 10.0.19044
CMAKE_SYSTEM_PROCESSOR : AMD64
General:
CMAKE_BUILD_TYPE : Debug
CMAKE_TOOLCHAIN_FILE :
CMAKE_C_COMPILER : C:/Program Files/LLVM/bin/clang.exe
CMAKE_CXX_COMPILER : C:/Program Files/LLVM/bin/clang++.exe
Building architecture : 64-bit
Flags:
CMAKE_C_FLAGS : -DMFX_BUILD_INFO="\"Windows 10.0.19044 | Clang 15.0.3\"" -DMFX_API_VERSION="\"1.35\"" -DMFX_GIT_COMMIT="\"c985462d\"" -DMEDIA_VERSION_STR="\"22.6.1\""
CMAKE_CXX_FLAGS : -DMFX_BUILD_INFO="\"Windows 10.0.19044 | Clang 15.0.3\"" -DMFX_API_VERSION="\"1.35\"" -DMFX_GIT_COMMIT="\"c985462d\"" -DMEDIA_VERSION_STR="\"22.6.1\""
Release flags:
CMAKE_C_FLAGS_RELEASE : -O3 -DNDEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrt
CMAKE_CXX_FLAGS_RELEASE : -O3 -DNDEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrt
Debug flags:
CMAKE_C_FLAGS_DEBUG : -g -Xclang -gcodeview -O0 -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd
CMAKE_CXX_FLAGS_DEBUG : -g -Xclang -gcodeview -O0 -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd
Install:
CMAKE_INSTALL_PREFIX : /opt/intel/mediasdk
CMAKE_INSTALL_FULL_INCLUDEDIR :
CMAKE_INSTALL_FULL_LIBDIR :
CMAKE_INSTALL_FULL_DATADIR :
Enable:
ENABLE_OPENCL : ON
ENABLE_ITT : OFF
ENABLE_TEXTLOG : OFF
ENABLE_STAT : OFF
Build:
BUILD_RUNTIME : ON
BUILD_DISPATCHER : ON
BUILD_SAMPLES : ON
BUILD_TUTORIALS : ON
BUILD_TESTS : OFF
BUILD_TOOLS : OFF
BUILD_KERNELS : OFF
*****************************************************************************
-- Configuring done
System information
cat /proc/cpuinfo | grep "model name" | uniq
): Intel(R) Core(TM) i3-7020U CPU @ 2.30GHzlspci -nn | grep -E 'VGA|display
): Intel HD Graphics 620Issue behavior
Windows build fails under bash with clang
Describe the current behavior
Windows build fails under bash with clang here is how to reproduce it:
Then execute
make
:What seems to be happening is some kind of bad path construction or bad interpretation by the makefile.
Describe the expected behavior
Media SDK should build normally.
Debug information
ls /dev/dri
?: Nodmesg >dmesg.log 2>&1
?: Novainfo -a >vainfo.log 2>&1
?: Nostrace YOUR_CMD >strace.log 2>&1
?: Noexport LIBVA_TRACE=/tmp/libva_trace.log
first then execute the case. : No