Skip to content

Conversation

@dm-vodopyanov
Copy link
Contributor

This patch fixes an issue found in the internal compiler: tests which use llvm-link failed due to the fact that llvm-link was taken from llorg compiler pre-installed on testing machines. This patch forces searching for ours llvm-link, with SYCL-related features.

This patch fixes an issue found in the internal compiler: tests which use
`llvm-link` failed due to the fact that `llvm-link` was taken from llorg
compiler pre-installed on testing machines. This patch forces searching
for ours `llvm-link`, with SYCL-related features.
Comment on lines +657 to +662
llvm_link = FindTool("llvm-link").resolve(
llvm_config, os.pathsep.join([config.dpcpp_bin_dir, config.llvm_tools_dir])
)
if not llvm_link:
lit_config.fatal("can't find `llvm-link`")

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ToolSubst can accept FindTool as a command and unresolved can be set to fatal - all functionality is already there, why do we need a manual error message?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Separate call to FindTool::resolve() is needed to tell scripts to look only in our folders, not everywhere in env on a testing machine, and I guess if llvm_link variable is None, ToolSubst on line 842 will start looking for the tool we pass as the first arg - for "llvm-link", and it will find it in the path (it will find llorg's llvm-link), and overall ToolSubst will not fail even if change unresolved= from "ignore" to "fatal" , so we need to prevent that situation by throwing error earlier, which was done on line 661.

@dm-vodopyanov
Copy link
Contributor Author

@uditagarwal97, friendly ping

@dm-vodopyanov
Copy link
Contributor Author

dm-vodopyanov commented Aug 27, 2025

Test d:\github\_work\llvm\llvm\build-e2e\subgroup\output\scan_fp64.cpp.tmp.out hung!

Not related to this patch, submitted #19903

@dm-vodopyanov dm-vodopyanov merged commit 51a15ec into intel:sycl Aug 27, 2025
42 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants