Skip to content

Analyze by Clangでclang-cl.exeのフルパスが違うためエラーになる #1093

Description

@n-kawauchi

Describe the bug

Starting: Analyze by Clang
==============================================================================
Task         : Command line
Description  : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
Version      : 2.212.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
==============================================================================
Generating script.
========================== Starting Command Output ===========================
"C:\Windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\04c58197-017f-49ca-ad4b-658878e09ac3.cmd""
The system cannot find the path specified.
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
  The CMAKE_CXX_COMPILER:

    C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/Llvm/bin/clang-cl.exe

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "D:/a/1/s/build/CMakeFiles/CMakeOutput.log".
See also "D:/a/1/s/build/CMakeFiles/CMakeError.log".
ninja: error: loading 'build.ninja': The system cannot find the file specified.


##[error]Cmd.exe exited with code '1'.
Finishing: Analyze by Clang
  • azure-pipelines.ymlで指定しているパスが関係しているのか?
    vcPath: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC'

Reproducibility
最近のPRマージの際に発生している

Environment

  • OS: Windows server 2022
2023-03-14T07:09:24.1105180Z ##[section]Starting: Analyze
2023-03-14T07:09:24.6438142Z ##[section]Starting: Initialize job
2023-03-14T07:09:24.6440917Z Agent name: 'Hosted Agent'
2023-03-14T07:09:24.6441450Z Agent machine name: 'WIN-RK0UQGU8LOI'
2023-03-14T07:09:24.6441723Z Current agent version: '2.217.2'
2023-03-14T07:09:24.6554308Z ##[group]Operating System
2023-03-14T07:09:24.6554578Z Microsoft Windows Server 2022
2023-03-14T07:09:24.6557097Z 10.0.20348
  • OpenRTM-aist Version 2.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions