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

How to build the repo? #4

Open
MikhailBurdukov opened this issue Feb 4, 2025 · 4 comments
Open

How to build the repo? #4

MikhailBurdukov opened this issue Feb 4, 2025 · 4 comments

Comments

@MikhailBurdukov
Copy link

Hi!
RN there are no how to build docs. I tried to build the repo the same way as main repo: https://github.com/ytsaurus/ytsaurus

cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../ytsaurus-cpp-sdk/clang.toolchain -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=../ytsaurus-cpp-sdk/cmake/conan_provider.cmake ../ytsaurus-cpp-sdk

But got such error:

  Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
  CMakeLists.txt:4 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:4 (project):
  The CMAKE_C_COMPILER:

    /usr/bin/clang-16;

  is not a full path to an existing compiler tool.

  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!

zlib/1.3.1: ERROR: 
Package '0d992ed9f90f1c38fd1c3eac3fccc60c755490e2' build failed
zlib/1.3.1: WARN: Build folder /home/mburdukov/.conan2/p/b/zlib284f668334a77/b/build/Release
ERROR: zlib/1.3.1: Error in build() method, line 85
        cmake.configure()
        ConanException: Error 1 while executing
CMake Error at cmake/conan_provider.cmake:508 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  cmake/conan_provider.cmake:616 (conan_install)
  cmake/archive.cmake:1 (find_package)
  CMakeLists.txt:40 (include)

Are there any ways how to fix this? Thanks in advance!

@Kontakter
Copy link
Contributor

It looks like missing clang-16 compiler.

Do you install clang-16 compiler as it described in third step of this instruction https://github.com/ytsaurus/ytsaurus/blob/main/BUILD.md?

@MikhailBurdukov
Copy link
Author

MikhailBurdukov commented Feb 5, 2025

Do you install clang-16 compiler as it described in third step of this instruction

AFAIR - yes.

$ ls -la /usr/bin/clang-16
lrwxrwxrwx 1 root root 24 Nov 12  2023 /usr/bin/clang-16 -> ../lib/llvm-16/bin/clang

$ /usr/lib/llvm-16/bin/clang --version
Ubuntu clang version 16.0.6 (++20231112100510+7cbf1a259152-1~exp1~20231112100554.106)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-16/bin

Actually the main repo builds fine. Maybe the problem somewhere in my configuration. I will try to reinstall dependency. Just wondering if this documentation is valid for this repo.

Is there any objections or I can add the link to [how to build]((https://github.com/ytsaurus/ytsaurus/blob/main/BUILD.md) into README for transparency?

@Kontakter
Copy link
Contributor

It is overall valid, but there are some differences in final steps, for cpp-sdk repo we suppose to specify stdlib flag and tooling version: https://github.com/ytsaurus/ytsaurus-cpp-sdk/blob/main/.github/workflows/run-check.yaml#L85-L86

@Kontakter
Copy link
Contributor

I create as issue to write a separate build instruction for this repo: #5

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

2 participants