[llvm-branch-commits] [clang] [flang] [llvm] [Flang] LLVM_ENABLE_RUNTIMES=flang-rt (PR #110217)

Michael Kruse via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jan 30 08:43:00 PST 2025


Meinersbur wrote:

> On linux (without rebuilding `compiler-rt`), I still see
> 
> ```
> [72/72] Linking CXX static library flang-rt/lib/libflang_rt.a
> + cmake --install .
> Install configuration: "Release"
> Installing: $PREFIX/lib/clang/20/lib/x86_64-unknown-linux-gnu/libflang_rt.a
> ```
> 
> (which then leads to the library not being found.)
> 
> The outputs you asked for are
> 
> ```
> LLVM_TREE_AVAILABLE: OFF
> toolchain_lib_subdir: lib/x86_64-unknown-linux-gnu
> FLANG_RT_OUTPUT_RESOURCE_DIR: $SRC_DIR/build/flang-rt
> FLANG_RT_INSTALL_RESOURCE_PATH: lib/clang/20
> FLANG_RT_OUTPUT_RESOURCE_LIB_DIR: $SRC_DIR/build/flang-rt/lib
> FLANG_RT_INSTALL_RESOURCE_LIB_PATH: lib/clang/20/lib/x86_64-unknown-linux-gnu
> ```

Are these the literal outputs or did you edit them? Please don't. There should be no "$" in those outputs. What I get:
```
LLVM_TREE_AVAILABLE: OFF
toolchain_lib_subdir: lib/x86_64-unknown-linux-gnu
FLANG_RT_OUTPUT_RESOURCE_DIR: /home/meinersbur/build/llvm-project-flangrt/release_runtimes/runtimes/flang-rt
FLANG_RT_INSTALL_RESOURCE_PATH: lib/clang/21
FLANG_RT_OUTPUT_RESOURCE_LIB_DIR: /home/meinersbur/build/llvm-project-flangrt/release_runtimes/runtimes/flang-rt/lib
FLANG_RT_INSTALL_RESOURCE_LIB_PATH: lib/clang/21/lib/x86_64-unknown-linux-gnu
...
[ 98%/2.675s :: 0->1->72 (of 73)] Install the project...
-- Install configuration: "Release"
-- Installing: /home/meinersbur/build/llvm-project-flangrt/release_runtimes/install/lib/clang/21/lib/x86_64-unknown-linux-gnu/libflang_rt.a
...
$ /home/meinersbur/build/llvm-project-flangrt/release_runtimes/install/bin/flang hello.f90 -o hello && ./hello
 Hello, World!  
```
If I use `-DCMAKE_INSTALL_PREFIX="\\\$PREFIX"` I do get different output (that does not work).

https://github.com/llvm/llvm-project/pull/110217


More information about the llvm-branch-commits mailing list