intel / intel/llvm

obj2yaml check-sycl tests fail when compiler is built with icx

Open
#22,619 2 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

### Describe the bug

```
FAIL: LLVM :: tools/obj2yaml/DXContainer/SRCIPart-multi-source-compute.yaml (63457 of 68308)
******************** TEST 'LLVM :: tools/obj2yaml/DXContainer/SRCIPart-multi-source-compute.yaml' FAILED ********************
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
d:\github\_work\llvm\llvm\build\bin\yaml2obj.exe D:\github\_work\llvm\llvm\src\llvm\test\tools\obj2yaml\DXContainer\SRCIPart-multi-source-compute.yaml | d:\github\_work\llvm\llvm\build\bin\obj2yaml.exe | d:\github\_work\llvm\llvm\build\bin\filecheck.exe D:\github\_work\llvm\llvm\src\llvm\test\tools\obj2yaml\DXContainer\SRCIPart-multi-source-compute.yaml
# executed command: 'd:\github\_work\llvm\llvm\build\bin\yaml2obj.exe' 'D:\github\_work\llvm\llvm\src\llvm\test\tools\obj2yaml\DXContainer\SRCIPart-multi-source-compute.yaml'
# executed command: 'd:\github\_work\llvm\llvm\build\bin\obj2yaml.exe'
# .---command stderr------------
# | Error reading file: : size of SRCI section Args (#2 - 40 bytes) does not match size specified in generic header (36 bytes)
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'd:\github\_work\llvm\llvm\build\bin\filecheck.exe' 'D:\github\_work\llvm\llvm\src\llvm\test\tools\obj2yaml\DXContainer\SRCIPart-multi-source-compute.yaml'
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: d:\github\_work\llvm\llvm\build\bin\filecheck.exe D:\github\_work\llvm\llvm\src\llvm\test\tools\obj2yaml\DXContainer\SRCIPart-multi-source-compute.yaml
# `-----------------------------
# error: command failed with exit status: 2
--
********************
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90
FAIL: LLVM :: tools/obj2yaml/DXContainer/SRCIPart-compute.yaml (63764 of 68308)
******************** TEST 'LLVM :: tools/obj2yaml/DXContainer/SRCIPart-compute.yaml' FAILED ********************
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
d:\github\_work\llvm\llvm\build\bin\yaml2obj.exe D:\github\_work\llvm\llvm\src\llvm\test\tools\obj2yaml\DXContainer\SRCIPart-compute.yaml | d:\github\_work\llvm\llvm\build\bin\obj2yaml.exe | d:\github\_work\llvm\llvm\build\bin\filecheck.exe D:\github\_work\llvm\llvm\src\llvm\test\tools\obj2yaml\DXContainer\SRCIPart-compute.yaml
# executed command: 'd:\github\_work\llvm\llvm\build\bin\yaml2obj.exe' 'D:\github\_work\llvm\llvm\src\llvm\test\tools\obj2yaml\DXContainer\SRCIPart-compute.yaml'
# executed command: 'd:\github\_work\llvm\llvm\build\bin\obj2yaml.exe'
# .---command stderr------------
# | Error reading file: : size of SRCI section Args (#2 - 40 bytes) does not match size specified in generic header (36 bytes)
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'd:\github\_work\llvm\llvm\build\bin\filecheck.exe' 'D:\github\_work\llvm\llvm\src\llvm\test\tools\obj2yaml\DXContainer\SRCIPart-compute.yaml'
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: d:\github\_work\llvm\llvm\build\bin\filecheck.exe D:\github\_work\llvm\llvm\src\llvm\test\tools\obj2yaml\DXContainer\SRCIPart-compute.yaml
# `-----------------------------
# error: command failed with exit status: 2
--
********************

```

### To reproduce

1. Include a code snippet that is as short as possible
2. Specify the command which should be used to compile the program
3. Specify the command which should be used to launch the program
4. Indicate what is wrong and what was expected

### Environment

- OS: [e.g Windows/Linux]
- Target device and vendor: [e.g. Intel GPU]
- DPC++ version: [e.g. commit hash or output of `clang++ --version`]
- Dependencies version: [e.g. the output of `sycl-ls --verbose`]

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with llvm/test/tools/obj2yaml/DXContainer/SRCIPart-multi-source-compute.yaml and SRCIPart-compute.yaml, then reproduce the shown yaml2obj.exe | obj2yaml.exe | filecheck.exe pipeline using an icx-built compiler. Compare the SRCI Args size in the generated output with the generic header; done means both FileCheck tests pass without the reported size mismatch.

Written by the indexing model from the issue text.

Assessment

Domain
compilers, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.