Closed hydra3333 closed 4 years ago
Hello.
I have a build script which apparently last worked successfully a few weeks ago but when run tonight 20/8/2020 it failed as shown in the log below.
Suggestions would be welcomed.
Configure options:
'configure_options': '. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DOPENCL_ICD_LOADER_REQUIRE_WDK=OFF -DOPENCL_ICD_LOADER_DISABLE_OPENCLON12=ON', # build only symbols https://github.com/KhronosGroup/OpenCL-ICD-Loader/commit/bb98ad9a9c264d63ad2204c1eeee0a3a1e724e20
Thank you.
Changing dir from /home/u/Desktop/_working/workdir to /home/u/Desktop/_working/workdir/x86_64 [08:34:30][DEBUG] cd /home/u/Desktop/_working/workdir/x86_64 [08:34:30][INFO] Git Cloning 'https://github.com/KhronosGroup/OpenCL-ICD-Loader.git' to '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' [08:34:30][DEBUG] git clone --progress "https://github.com/KhronosGroup/OpenCL-ICD-Loader.git" "OpenCL-ICD-Loader_git.tmp" [08:34:30][DEBUG] Running 'git clone --progress "https://github.com/KhronosGroup/OpenCL-ICD-Loader.git" "OpenCL-ICD-Loader_git.tmp"' in '/home/u/Desktop/_working/workdir/x86_64' Cloning into 'OpenCL-ICD-Loader_git.tmp'... remote: Enumerating objects: 68, done. remote: Counting objects: 100% (68/68), done. remote: Compressing objects: 100% (35/35), done. remote: Total 408 (delta 37), reused 54 (delta 33), pack-reused 340 Receiving objects: 100% (408/408), 251.29 KiB | 425.00 KiB/s, done. Resolving deltas: 100% (228/228), done. [08:34:32][DEBUG] mv "OpenCL-ICD-Loader_git.tmp" "OpenCL-ICD-Loader_git" [08:34:32][DEBUG] Running 'mv "OpenCL-ICD-Loader_git.tmp" "OpenCL-ICD-Loader_git"' in '/home/u/Desktop/_working/workdir/x86_64' [08:34:32][INFO] Finished GIT cloning 'https://github.com/KhronosGroup/OpenCL-ICD-Loader.git' to 'OpenCL-ICD-Loader_git' Changing dir from /home/u/Desktop/_working/workdir/x86_64 to OpenCL-ICD-Loader_git [08:34:32][DEBUG] cd OpenCL-ICD-Loader_git [08:34:32][DEBUG] git clean -ffdx [08:34:32][DEBUG] Running 'git clean -ffdx' in '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' [08:34:32][DEBUG] git submodule foreach --recursive git clean -ffdx [08:34:32][DEBUG] Running 'git submodule foreach --recursive git clean -ffdx' in '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' [08:34:32][DEBUG] git reset --hard [08:34:32][DEBUG] Running 'git reset --hard' in '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' HEAD is now at 862eebe correctly pass user_data to destructor callbacks [08:34:32][DEBUG] git submodule foreach --recursive git reset --hard [08:34:32][DEBUG] Running 'git submodule foreach --recursive git reset --hard' in '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' [08:34:32][DEBUG] git submodule update --init --recursive [08:34:32][DEBUG] Running 'git submodule update --init --recursive' in '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' [08:34:32][DEBUG] Applying patch 'opencl/0002-OpenCL-git-header.patch' in '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' [08:34:32][INFO] Copying patch from '/home/u/Desktop/_working/patches/opencl/0002-OpenCL-git-header.patch' to '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git/0002-OpenCL-git-header.patch' [08:34:32][DEBUG] cp -f "/home/u/Desktop/_working/patches/opencl/0002-OpenCL-git-header.patch" "/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git/0002-OpenCL-git-header.patch" # copy file [08:34:32][INFO] Patching source using: '0002-OpenCL-git-header.patch' [08:34:32][DEBUG] patch -p1 < "0002-OpenCL-git-header.patch" [08:34:32][DEBUG] Running 'patch -p1 < "0002-OpenCL-git-header.patch"' in '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' patching file loader/windows/icd_windows_hkr.h [08:34:32][INFO] Running run_post_regexreplace-command: 'sed -i.bak 's/project (OpenCL-ICD-Loader VERSION 1.2)/project (OpenCL-ICD-Loader)/g' "CMakeLists.txt"' [08:34:32][DEBUG] Running 'sed -i.bak 's/project (OpenCL-ICD-Loader VERSION 1.2)/project (OpenCL-ICD-Loader)/g' "CMakeLists.txt"' in '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' [08:34:32][INFO] Running run_post_regexreplace-command: 'sed -i.bak 's/set_target_properties (OpenCL PROPERTIES VERSION "1.2" SOVERSION "1")/set_target_properties (OpenCL PROPERTIES PREFIX "")/g' "CMakeLists.txt"' [08:34:32][DEBUG] Running 'sed -i.bak 's/set_target_properties (OpenCL PROPERTIES VERSION "1.2" SOVERSION "1")/set_target_properties (OpenCL PROPERTIES PREFIX "")/g' "CMakeLists.txt"' in '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' [08:34:32][INFO] C-Making 'opencl_icd' with: . -DCMAKE_TOOLCHAIN_FILE="/home/u/Desktop/_working/workdir/mingw_toolchain.cmake" -G"Ninja" -DCMAKE_INSTALL_PREFIX=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32 -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DOPENCL_ICD_LOADER_REQUIRE_WDK=OFF -DOPENCL_ICD_LOADER_DISABLE_OPENCLON12=ON [08:34:32][DEBUG] cmake . -DCMAKE_TOOLCHAIN_FILE="/home/u/Desktop/_working/workdir/mingw_toolchain.cmake" -G"Ninja" -DCMAKE_INSTALL_PREFIX=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32 -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DOPENCL_ICD_LOADER_REQUIRE_WDK=OFF -DOPENCL_ICD_LOADER_DISABLE_OPENCLON12=ON [08:34:32][DEBUG] Running 'cmake . -DCMAKE_TOOLCHAIN_FILE="/home/u/Desktop/_working/workdir/mingw_toolchain.cmake" -G"Ninja" -DCMAKE_INSTALL_PREFIX=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32 -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DOPENCL_ICD_LOADER_REQUIRE_WDK=OFF -DOPENCL_ICD_LOADER_DISABLE_OPENCLON12=ON' in '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' -- The C compiler identification is GNU 10.2.0 -- The CXX compiler identification is GNU 10.2.0 -- Check for working C compiler: /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc -- Check for working C compiler: /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-g++ -- Check for working CXX compiler: /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Looking for secure_getenv -- Looking for secure_getenv - not found -- Looking for __secure_getenv -- Looking for __secure_getenv - not found -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: OPENCL_ICD_LOADER_REQUIRE_WDK -- Build files have been written to: /home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git [08:34:33][DEBUG] make clean [08:34:33][DEBUG] Running 'make clean' in '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' make: *** No rule to make target 'clean'. Stop. ############################## [08:34:33][INFO][NINJA] Building 'opencl_icd' with 'build_options': '' in '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' [08:34:33][DEBUG] ninja -j 4 [08:34:33][DEBUG] Running 'ninja -j 4 ' in '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' [1/9] Building C object CMakeFiles/OpenCL.dir/loader/windows/icd_windows_dxgk.c.obj [2/9] Building C object CMakeFiles/OpenCL.dir/loader/windows/icd_windows.c.obj In file included from loader/windows/icd_windows.c:21: loader/windows/icd_windows_hkr.h:40:19: warning: 'DEVPKEY_Device_ClassGuid' initialized and declared 'extern' 40 | DEFINE_DEVPROPKEY(DEVPKEY_Device_ClassGuid, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 10); // DEVPROP_TYPE_GUID | ^~~~~~~~~~~~~~~~~~~~~~~~ loader/windows/icd_windows_hkr.h:38:126: note: in definition of macro 'DEFINE_DEVPROPKEY' 38 | #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) extern const DEVPROPKEY_2 DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid } | ^~~~ loader/windows/icd_windows.c: In function 'khrIcdOsVendorsEnumerate': loader/windows/icd_windows.c:195:64: warning: passing argument 2 of 'pCreateDXGIFactory' from incompatible pointer type [-Wincompatible-pointer-types] 195 | HRESULT hr = pCreateDXGIFactory(&IID_IDXGIFactory, &pFactory); | ^~~~~~~~~ | | | IDXGIFactory ** loader/windows/icd_windows.c:195:64: note: expected 'void **' but argument is of type 'IDXGIFactory **' [3/9] Building C object CMakeFiles/OpenCL.dir/loader/icd.c.obj [4/9] Building C object CMakeFiles/OpenCL.dir/loader/windows/icd_windows_envvars.c.obj [5/9] Building RC object CMakeFiles/OpenCL.dir/loader/windows/OpenCL.rc.res [6/9] Building C object CMakeFiles/OpenCL.dir/loader/windows/icd_windows_hkr.c.obj FAILED: CMakeFiles/OpenCL.dir/loader/windows/icd_windows_hkr.c.obj /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc --sysroot=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32 -DCL_TARGET_OPENCL_VERSION=220 -DOPENCL_ICD_LOADER_DISABLE_OPENCLON12 -DOpenCL_EXPORTS -I. -Iloader -isystem inc -O3 -fstack-protector-all -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -MD -MT CMakeFiles/OpenCL.dir/loader/windows/icd_windows_hkr.c.obj -MF CMakeFiles/OpenCL.dir/loader/windows/icd_windows_hkr.c.obj.d -o CMakeFiles/OpenCL.dir/loader/windows/icd_windows_hkr.c.obj -c loader/windows/icd_windows_hkr.c In file included from loader/windows/icd_windows_hkr.c:20: loader/windows/icd_windows_hkr.h:40:19: warning: 'DEVPKEY_Device_ClassGuid' initialized and declared 'extern' 40 | DEFINE_DEVPROPKEY(DEVPKEY_Device_ClassGuid, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 10); // DEVPROP_TYPE_GUID | ^~~~~~~~~~~~~~~~~~~~~~~~ loader/windows/icd_windows_hkr.h:38:126: note: in definition of macro 'DEFINE_DEVPROPKEY' 38 | #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) extern const DEVPROPKEY_2 DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid } | ^~~~ In file included from /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/include/devpkey.h:19, from loader/windows/icd_windows_hkr.c:27: /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/include/devpkey.h:28:1: error: conflicting types for 'DEVPKEY_Device_ClassGuid' 28 | DEFINE_DEVPROPKEY(DEVPKEY_Device_ClassGuid, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 10); | ^~~~~~~~~~~~~~~~~ In file included from loader/windows/icd_windows_hkr.c:20: loader/windows/icd_windows_hkr.h:40:19: note: previous definition of 'DEVPKEY_Device_ClassGuid' was here 40 | DEFINE_DEVPROPKEY(DEVPKEY_Device_ClassGuid, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 10); // DEVPROP_TYPE_GUID | ^~~~~~~~~~~~~~~~~~~~~~~~ loader/windows/icd_windows_hkr.h:38:126: note: in definition of macro 'DEFINE_DEVPROPKEY' 38 | #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) extern const DEVPROPKEY_2 DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid } | ^~~~ [7/9] Building C object CMakeFiles/OpenCL.dir/loader/icd_dispatch.c.obj [8/9] Building CXX object CMakeFiles/OpenCL.dir/loader/windows/icd_windows_apppackage.cpp.obj ninja: build stopped: subcommand failed. [08:34:35][ERROR] Error [1] running process: 'ninja -j 4 ' in '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' [08:34:35][ERROR] You can try deleting the product/dependency folder: '/home/u/Desktop/_working/workdir/x86_64/OpenCL-ICD-Loader_git' and re-run the script
Ah. Reverted to a slightly earlier commit of Mingw64 and now it works. 4e51dfbf9baa34af596691342420bff4b5e3ded3
Bug Report https://sourceforge.net/p/mingw-w64/bugs/850/
reolved
Hello.
I have a build script which apparently last worked successfully a few weeks ago but when run tonight 20/8/2020 it failed as shown in the log below.
Suggestions would be welcomed.
Configure options:
Thank you.