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

CMake: Detecting C compiler ABI info - failed #2488

Open
Yagodnik opened this issue Feb 1, 2024 · 0 comments
Open

CMake: Detecting C compiler ABI info - failed #2488

Yagodnik opened this issue Feb 1, 2024 · 0 comments

Comments

@Yagodnik
Copy link

Yagodnik commented Feb 1, 2024

Hi there! I was trying to build project with CMake and ZCC compiler, but I ran into some problems.
Here part of cmake logs:

-- Building for: Visual Studio 17 2022
zcc - Frontend for the z88dk Cross-C Compiler
See https://github.com/z88dk/z88dk/wiki/CMake for more information
zcc - Frontend for the z88dk Cross-C Compiler
See https://github.com/z88dk/z88dk/wiki/CMake for more information
-- The C compiler identification is MSVC 19.38.33135.0
-- Detecting C compiler ABI info
zcc - Frontend for the z88dk Cross-C Compiler
See https://github.com/z88dk/z88dk/wiki/CMake for more information
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe
zcc - Frontend for the z88dk Cross-C Compiler
See https://github.com/z88dk/z88dk/wiki/CMake for more information
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:69 (message):
  The C compiler

    "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe"
  is not able to compile a simple test program.
...

CMake fails to detect ABI information. I tried last release and nightly build but they all failed too.
My only assumption is that I use Windows instead of Linux in docs examples. Can I fix it or I should use WSL or something like this?

My CMake code:

project(test2 C)
add_executable(test2bin main.c)
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

1 participant