This repository was archived by the owner on May 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 461
This repository was archived by the owner on May 17, 2023. It is now read-only.
Windows build fails under bash with clang #2992
Copy link
Copy link
Open
Labels
Description
System information
- CPU information(
cat /proc/cpuinfo | grep "model name" | uniq): Intel(R) Core(TM) i3-7020U CPU @ 2.30GHz - GPU information(
lspci -nn | grep -E 'VGA|display): Intel HD Graphics 620 - 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
Then execute make:
LP-AKAR+Admin@lp-akar MINGW64 ~/source/repos/msdk/build ((intel-mediasdk-22.6.1))
$ make
[ 0%] Building CXX object api/mfx_dispatch/linux/CMakeFiles/mfx.dir/mfxloader.cpp.obj
clang: error: no such file or directory: '15.0.3" -DMFX_API_VERSION="1.35" -DMFX_GIT_COMMIT="c985462d" -DMEDIA_VERSION_STR="22.6.1" -pipe -fPIC -std=c++11 -Wall -Wformat -Wformat-security -Wno-unknown-pragmas -Wno-unused -g -Xclang -gcodeview -O0 -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd -D_DEBUG -std=gnu++14 -MD -MT api/mfx_dispatch/linux/CMakeFiles/mfx.dir/mfxloader.cpp.obj -MF CMakeFiles\mfx.dir\mfxloader.cpp.obj.d -o CMakeFiles\mfx.dir\mfxloader.cpp.obj -c C:\Users\Admin\source\repos\msdk\api\mfx_dispatch\linux\mfxloader.cpp'
clang: error: no input files
clang++: error: no input files
make[2]: *** [api\mfx_dispatch\linux\CMakeFiles\mfx.dir\build.make:76: api/mfx_dispatch/linux/CMakeFiles/mfx.dir/mfxloader.cpp.obj] Error 1
make[1]: *** [CMakeFiles\Makefile2:729: api/mfx_dispatch/linux/CMakeFiles/mfx.dir/all] Error 2
make: *** [Makefile:135: all] Error 2
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
- What's libva/libva-utils/gmmlib/media-driver/Media SDK version?: 22.6.1
- Could you confirm whether GPU hardware exist or not by
ls /dev/dri?: No - Could you attach dmesg log if it's GPU hang by
dmesg >dmesg.log 2>&1?: No - Could you provide vainfo log if possible by
vainfo -a >vainfo.log 2>&1?: No - Could you provide strace log if possible by
strace YOUR_CMD >strace.log 2>&1?: No - Could you provide libva trace log if possible? Run cmd
export LIBVA_TRACE=/tmp/libva_trace.logfirst then execute the case. : No - Media SDK tracer output (https://github.com/Intel-Media-SDK/MediaSDK/blob/master/tools/tracer/README.md)? : No
- Do you want to contribute a PR? (yes/no): No