SerenityOS / jakt

The Jakt Programming Language
BSD 2-Clause "Simplified" License
2.77k stars 244 forks source link

I got an error of changing an RPATH from the build tree #1561

Closed YFJiang closed 1 month ago

YFJiang commented 1 month ago

$ cmake -B build -GNinja -DCMAKE_CXX_COMPILER=clang++-15

-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")

-- Using clang as the cpp import processor (using Clang=ON, resource dir=/usr/lib/llvm-15/lib/clang/15.0.7)

-- Making the jakt runtime available for x86_64-unknown-linux-unknown

-- Building for target x86_64-unknown-linux-unknown

-- Configuring done (104.1s)

CMake Error at CMakeLists.txt:138 (add_executable):

The install of the jakt_stage0 target requires changing an RPATH from the

build tree, but this is not supported with the Ninja generator unless on an

ELF-based or XCOFF-based platform. The CMAKE_BUILD_WITH_INSTALL_RPATH

variable may be set to avoid this relinking step.

CMake Error at cmake/jakt-executable.cmake:147 (add_executable):

The install of the jakt_stage1 target requires changing an RPATH from the

build tree, but this is not supported with the Ninja generator unless on an

ELF-based or XCOFF-based platform. The CMAKE_BUILD_WITH_INSTALL_RPATH

variable may be set to avoid this relinking step.

Call Stack (most recent call first):

CMakeLists.txt:231 (add_jakt_executable)

-- Generating done (0.0s)

CMake Generate step failed. Build files cannot be regenerated correctly.