intel / intel/llvm

[GHA] Windows build step reports incorrect status.

Open
#8,094 5 comments 0 reactions 0 assignees View on GitHub
bug confirmed
Dominant language
LLVM
Stars
1.5k
Forks
854
Avg merge
3d 17h
Merged PRs (30d)
137

Description

Here [Windows post-commit report](https://github.com/intel/llvm/actions/runs/4000702385/jobs/6866148083), where build step has following lines in the log:
```
[3010/4189] Building CXX object tools\sycl\source\CMakeFiles\sycld_object.dir\detail\pi.cpp.obj
FAILED: tools/sycl/source/CMakeFiles/sycld_object.dir/detail/pi.cpp.obj
sccache C:\PROGRA~1\MICROS~2\2022\PROFES~1\VC\Tools\MSVC\1434~1.31~\bin\Hostx64\x64\cl.exe /nologo /TP -DCL_TARGET_OPENCL_VERSION=220 -DSYCL2020_DISABLE_DEPRECATION_WARNINGS -DUNICODE -DXPTI_ENABLE_INSTRUMENTATION -DXPTI_STATIC_LIBRARY -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__SYCL_BUILD_SYCL_DLL -D__SYCL_INTERNAL_API -ID:\github\_work\llvm\llvm\build\tools\sycl\source -ID:\github\_work\llvm\llvm\src\sycl\source -ID:\github\_work\llvm\llvm\build\include -ID:\github\_work\llvm\llvm\src\llvm\include -ID:\github\_work\llvm\llvm\src\xpti\include -ID:\github\_work\llvm\llvm\src\sycl\include -ID:\github\_work\llvm\llvm\build\_deps\ocl-headers-src /WX /W4 /DWIN32 /D_WINDOWS /Zc:inline /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /Gw /EHsc /Z7 /O2 /Ob2 -wd4996 -UNDEBUG /MDd -std:c++17 /showIncludes /Fotools\sycl\source\CMakeFiles\sycld_object.dir\detail\pi.cpp.obj /Fdtools\sycl\source\CMakeFiles\sycld_object.dir\ /FS -c D:\github\_work\llvm\llvm\src\sycl\source\detail\pi.cpp
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\iostream(39): error C2370: 'std::cin': redefinition; different storage class
D:\github\_work\llvm\llvm\build\include\sycl/detail/iostream_proxy.hpp(19): note: see declaration of 'std::cin'
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\iostream(40): error C2370: 'std::cout': redefinition; different storage class
D:\github\_work\llvm\llvm\build\include\sycl/detail/iostream_proxy.hpp(21): note: see declaration of 'std::cout'
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\iostream(41): error C2370: 'std::cerr': redefinition; different storage class
D:\github\_work\llvm\llvm\build\include\sycl/detail/iostream_proxy.hpp(23): note: see declaration of 'std::cerr'
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\iostream(42): error C2370: 'std::clog': redefinition; different storage class
D:\github\_work\llvm\llvm\build\include\sycl/detail/iostream_proxy.hpp(25): note: see declaration of 'std::clog'
D:\github\_work\llvm\llvm\src\sycl\source\detail\pi.cpp(420): error C2088: '<<': illegal for class
D:\github\_work\llvm\llvm\src\sycl\source\detail\pi.cpp(435): error C2088: '<<': illegal for class
D:\github\_work\llvm\llvm\src\sycl\source\detail\pi.cpp(445): error C2088: '<<': illegal for class
D:\github\_work\llvm\llvm\src\sycl\source\detail\pi.cpp(454): error C2088: '<<': illegal for class
D:\github\_work\llvm\llvm\src\sycl\source\detail\pi.cpp(543): error C2088: '<<': illegal for class
...
ninja: build stopped: subcommand failed.
```
At the same time the status of this step is "pass".

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.