Skip to content

CMake error building from source #130

Closed
@Vexu

Description

@Vexu

I tried to build Windows tarball for ziglang/zig#12994 but got

ld: cannot find -lzstd.so.1.5.2: No such file or directory

I fixed this with

diff --git a/build b/build
index 96286dd72..35686a7a2 100755
--- a/build
+++ b/build
@@ -36,6 +36,7 @@ cmake "$ROOTDIR/llvm" \
   -DLLVM_ENABLE_BINDINGS=OFF \
   -DLLVM_ENABLE_OCAMLDOC=OFF \
   -DLLVM_ENABLE_Z3_SOLVER=OFF \
+  -DLLVM_ENABLE_ZSTD=OFF \
   -DCLANG_BUILD_TOOLS=OFF \
   -DCLANG_INCLUDE_DOCS=OFF \
   -DLLVM_INCLUDE_DOCS=OFF \

but I'm not sure how correct that is.

I ran into #127 which I was able to fix by applying ziglang/zig#12898 after which I ran into:

CMake Error at /usr/share/cmake/Modules/CMakeDetermineRCCompiler.cmake:47 (get_filename_component):
  get_filename_component unknown component windres
Call Stack (most recent call first):
  /usr/share/cmake/Modules/Platform/Windows-GNU.cmake:163 (enable_language)
  /usr/share/cmake/Modules/Platform/Windows-Clang.cmake:217 (__windows_compiler_gnu)
  /usr/share/cmake/Modules/Platform/Windows-Clang.cmake:227 (__windows_compiler_clang_base)
  /usr/share/cmake/Modules/Platform/Windows-Clang-C.cmake:2 (__windows_compiler_clang)
  /usr/share/cmake/Modules/CMakeCInformation.cmake:48 (include)
  CMakeLists.txt:4 (project)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions