Hi Sir,
I am writing to request assistance with setting up a Swift repository on my local machine. Despite following the instructions provided in the documentation, I continue to encounter errors while building the same code.
This error arises when I used to build swift.
Could you kindly assist me in resolving this issue?
I have already installed all the required dependencies (cmake, cmake-gfm, Ninja, sccache) using Homebrew.
[main] Building folder: /Volumes/Vivek/Swift/build
[main] Configuring project: Swift
[proc] Executing command: /opt/homebrew/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ --no-warn-unused-cli -S/Volumes/Vivek/Swift -B/Volumes/Vivek/Swift/build -G "Unix Makefiles"
[cmake] CMake Deprecation Warning at CMakeLists.txt:10 (cmake_policy):
[cmake] The OLD behavior for policy CMP0068 will be removed from a future version
[cmake] of CMake.
[cmake]
[cmake] The cmake-policies(7) manual explains that the OLD behaviors of all
[cmake] policies are deprecated and that a policy should be set to OLD only under
[cmake] specific short-term circumstances. Projects should be ported to the NEW
[cmake] behavior and not rely on setting a policy to OLD.
[cmake]
[cmake]
[cmake] Not searching for unused variables given on the command line.
[cmake] CMake Warning (dev) at CMakeLists.txt:46 (enable_language):
[cmake] project() should be called prior to this enable_language() call.
[cmake] This warning is for project developers. Use -Wno-dev to suppress it.
[cmake]
[cmake] CMake Warning (dev) at CMakeLists.txt:47 (enable_language):
[cmake] project() should be called prior to this enable_language() call.
[cmake] This warning is for project developers. Use -Wno-dev to suppress it.
[cmake]
[cmake] CMake Warning (dev) at CMakeLists.txt:68 (enable_language):
[cmake] project() should be called prior to this enable_language() call.
[cmake] This warning is for project developers. Use -Wno-dev to suppress it.
[cmake]
[cmake] CMake Warning at CMakeLists.txt:111 (message):
[cmake] Swift compiler not found on path.
[cmake]
[cmake] Cannot build compiler sources written in Swift.
[cmake] If this is unexpected, please pass the path to the swiftc binary by defining the `CMAKE_Swift_COMPILER` variable.
[cmake]
[cmake]
[cmake] CMake Warning at CMakeLists.txt:816 (message):
[cmake] Force setting SWIFT_BUILD_REGEX_PARSER_IN_COMPILER=OFF because Swift parser
[cmake] integration is disabled
[cmake]
[cmake]
[cmake] -- CMake (/opt/homebrew/Cellar/cmake/3.30.5/bin/cmake) Version: 3.30.5
[cmake] -- CMake Make Program (/usr/bin/make) Version: GNU Make 3.81
[cmake] Copyright (C) 2006 Free Software Foundation, Inc.
[cmake] This is free software; see the source for copying conditions.
[cmake] There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
[cmake] PARTICULAR PURPOSE.
[cmake]
[cmake] This program built for i386-apple-darwin11.3.0
[cmake] -- C Compiler (/usr/bin/clang) Version: 16.0.0.16000026
[cmake] -- C++ Compiler (/usr/bin/clang++) Version: 16.0.0.16000026
[cmake] -- Assembler (/Library/Developer/CommandLineTools/usr/bin/clang) Version:
[cmake] -- Swift Compiler (None).
[cmake] CMake Error at CMakeLists.txt:889 (find_package):
[cmake] Could not find a package configuration file provided by "cmark-gfm" with
[cmake] any of the following names:
[cmake]
[cmake] cmark-gfmConfig.cmake
[cmake] cmark-gfm-config.cmake
[cmake]
[cmake] Add the installation prefix of "cmark-gfm" to CMAKE_PREFIX_PATH or set
[cmake] "cmark-gfm_DIR" to a directory containing one of the above files. If
[cmake] "cmark-gfm" provides a separate development package or SDK, be sure it has
[cmake] been installed.
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[proc] The command: /opt/homebrew/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ --no-warn-unused-cli -S/Volumes/Vivek/Swift -B/Volumes/Vivek/Swift/build -G "Unix Makefiles" exited with code: 1