Zilliqa / scilla

Scilla - A Smart Contract Intermediate Level Language
https://scilla-lang.org
GNU General Public License v3.0
241 stars 79 forks source link

Installation guide does not work for macOS since introducing vcpkg #1194

Open anton-trunov opened 1 year ago

anton-trunov commented 1 year ago

The installation instructions fail at

$VCPKG_ROOT/vcpkg install --triplet x64-linux-dynamic

The error:

$VCPKG_ROOT/vcpkg install --triplet x64-linux-dynamic
Detecting compiler hash for triplet x64-linux-dynamic...
error: while detecting compiler information:
The log file content at "/Users/anton/vcpkg/buildtrees/detect_compiler/stdout-x64-linux-dynamic.log" is:
-- Found external ninja('1.11.1').
-- Configuring x64-linux-dynamic-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:96 (message):
    Command failed: /usr/local/Cellar/cmake/3.24.2/bin/cmake /Users/anton/vcpkg/scripts/detect_compiler -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/Users/anton/vcpkg/packages/detect_compiler_x64-linux-dynamic -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DCMAKE_SYSTEM_NAME=Linux -DBUILD_SHARED_LIBS=ON -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/anton/vcpkg/scripts/toolchains/linux.cmake -DVCPKG_TARGET_TRIPLET=x64-linux-dynamic -DVCPKG_SET_CHARSET_FLAG=ON -DVCPKG_PLATFORM_TOOLSET=external -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE -DCMAKE_VERBOSE_MAKEFILE=ON -DVCPKG_APPLOCAL_DEPS=OFF -DCMAKE_TOOLCHAIN_FILE=/Users/anton/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON -DVCPKG_CXX_FLAGS= -DVCPKG_CXX_FLAGS_RELEASE= -DVCPKG_CXX_FLAGS_DEBUG= -DVCPKG_C_FLAGS= -DVCPKG_C_FLAGS_RELEASE= -DVCPKG_C_FLAGS_DEBUG= -DVCPKG_CRT_LINKAGE=dynamic -DVCPKG_LINKER_FLAGS= -DVCPKG_LINKER_FLAGS_RELEASE= -DVCPKG_LINKER_FLAGS_DEBUG= -DVCPKG_TARGET_ARCHITECTURE=x64 -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -D_VCPKG_ROOT_DIR=/Users/anton/vcpkg -DZ_VCPKG_ROOT_DIR=/Users/anton/vcpkg -D_VCPKG_INSTALLED_DIR=/Users/anton/zilliqa/scilla/vcpkg_installed -DVCPKG_MANIFEST_INSTALL=OFF
    Working Directory: /Users/anton/vcpkg/buildtrees/detect_compiler/x64-linux-dynamic-rel
    Error code: 1
    See logs for more information:
      /Users/anton/vcpkg/buildtrees/detect_compiler/config-x64-linux-dynamic-rel-CMakeCache.txt.log
      /Users/anton/vcpkg/buildtrees/detect_compiler/config-x64-linux-dynamic-rel-out.log
      /Users/anton/vcpkg/buildtrees/detect_compiler/config-x64-linux-dynamic-rel-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_cmake.cmake:338 (vcpkg_execute_required_process)
  scripts/detect_compiler/portfile.cmake:18 (vcpkg_configure_cmake)
  scripts/ports.cmake:147 (include)

Related PR: https://github.com/Zilliqa/scilla/pull/1203