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

Not able to build SPDM EMU in Windows using CLANG #255

Open
PrakashK94 opened this issue Jun 2, 2023 · 3 comments
Open

Not able to build SPDM EMU in Windows using CLANG #255

PrakashK94 opened this issue Jun 2, 2023 · 3 comments
Assignees

Comments

@PrakashK94
Copy link

Getting following error,

E:\June1\spdm-emu\build>cmake -G"NMake Makefiles" -DARCH=x64 -DTOOLCHAIN=CLANG -DTARGET=Release -DCRYPTO=mbedtls ..
-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
The CMAKE_C_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_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 "E:/June1/spdm-emu/build/CMakeFiles/CMakeOutput.log".
See also "E:/June1/spdm-emu/build/CMakeFiles/CMakeError.log".

Any help is appreciated.

@PrakashK94
Copy link
Author

Any update on this?

@steven-bellock
Copy link
Contributor

See comments in DMTF/libspdm#20.

@Wenxing-hou
Copy link
Contributor

Any update on this?

Hi @PrakashK94. The solution is same with DMTF/libspdm#2089.
Please add the LLVM path such as C:\LLVM\bin in the environment for CLANG build on Windows.
The build will pass. Thanks.

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

No branches or pull requests

3 participants