Skip to content
New issue

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

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

Already on GitHub? # to your account

CMake Error #22

Open
Wirtexxx opened this issue May 6, 2023 · 1 comment
Open

CMake Error #22

Wirtexxx opened this issue May 6, 2023 · 1 comment

Comments

@Wirtexxx
Copy link

Wirtexxx commented May 6, 2023

CMake Error at /usr/local/Cellar/cmake/3.25.2/share/cmake/Modules/CMakeTestCCompiler.cmake:70 (message):
The C compiler

"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /Users/thunderstorm/Desktop/aseprite/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-pfVWkr

Run Build Command(s):/Users/thunderstorm/Desktop/aseprite/deps/depot_tools/ninja cmTC_402b9 && [1/2] Building C object CMakeFiles/cmTC_402b9.dir/testCCompiler.c.o
[2/2] Linking C executable cmTC_402b9
FAILED: cmTC_402b9 
: && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -arch x86_64 -mmacosx-version-min=10.9 -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/cmTC_402b9.dir/testCCompiler.c.o -o cmTC_402b9   && :
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:32 (project)

-- Configuring incomplete, errors occurred!
See also "/Users/thunderstorm/Desktop/aseprite/aseprite/build/CMakeFiles/CMakeOutput.log".
See also "/Users/thunderstorm/Desktop/aseprite/aseprite/build/CMakeFiles/CMakeError.log".
Something went wrong

@akatopo
Copy link

akatopo commented Oct 17, 2023

Had a similar (or maybe the same) error as this. The solution was to correct the path that POSTFIXPATH_SDKROOT was pointing to.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants