Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SYCL Pre Commit on Linux / test (AMD/HIP, ["Linux", "amdgpu"] - fails #13612

Closed
YuriPlyakhin opened this issue May 1, 2024 · 1 comment · Fixed by #13619
Closed

SYCL Pre Commit on Linux / test (AMD/HIP, ["Linux", "amdgpu"] - fails #13612

YuriPlyakhin opened this issue May 1, 2024 · 1 comment · Fixed by #13619
Labels
bug Something isn't working hip Issues related to execution on HIP backend.

Comments

@YuriPlyakhin
Copy link
Contributor

Describe the bug

Examples:
https://github.com/intel/llvm/actions/runs/8902304706/job/24448240388
https://github.com/intel/llvm/actions/runs/8901979915/job/24447200947
https://github.com/intel/llvm/actions/runs/8901229785/job/24445348363

CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:62 (message):
  The C++ compiler

-- Check for working CXX compiler: /__w/llvm/llvm/toolchain/bin//clang++ - broken
    "/__w/llvm/llvm/toolchain/bin//clang++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /__w/llvm/llvm/build-e2e/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/ninja cmTC_6b983 && [1/2] Building CXX object CMakeFiles/cmTC_6b983.dir/testCXXCompiler.cxx.o
    [2/2] Linking CXX executable cmTC_6b983
    FAILED: cmTC_6b983 
    : && /__w/llvm/llvm/toolchain/bin//clang++   CMakeFiles/cmTC_6b983.dir/testCXXCompiler.cxx.o -o cmTC_6b983   && :
    /usr/bin/ld: cannot find -lstdc++: No such file or directory
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    ninja: build stopped: subcommand failed.

To reproduce

No response

Environment

No response

Additional context

No response

@YuriPlyakhin YuriPlyakhin added bug Something isn't working hip Issues related to execution on HIP backend. labels May 1, 2024
@JackAKirk
Copy link
Contributor

The precommit is now passing on #13619 which I think is a good sign this issue may be fixed there.

martygrant pushed a commit that referenced this issue May 9, 2024
Fixes #13612

#13612 was caused by these issues:

ROCm/ROCm#2949
ROCm/HIP#3406

To fix this gcc/g++12 is installed manually and set as the preferred
version.

---------

Signed-off-by: JackAKirk <jack.kirk@codeplay.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hip Issues related to execution on HIP backend.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants