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

Michael Kruse via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jan 8 16:31:17 PST 2025


Meinersbur wrote:

> The library is present under
> 
> ```
> $PREFIX/flang-rt/lib/x86_64-unknown-linux-gnu/libflang_rt.a
> ```
> 
> (where it got installed through the changes in this PR, without any specific overrides).

If `$PREFIX` is `CMAKE_INSTALL_DIR`, it is the wrong location. it should be in `$PREFIX/lib/clang/20/lib/x86_64-unknown-linux-gnu/libflang_rt.a`. I don't see how the `flang_rt` dir could get in there. Can you try with the latest update?

If `$PREFIX` is CMake's build directory, are you using a runtimes-standalone (non-bootstrap) build and running flang from there? Then `$PREFIX` for flang an flang-rt are different. `flang` looks into its own buildir only. You will have to `-L` to that directory or install them into the same `CMAKE_INSTALL_DIR`.

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


More information about the llvm-branch-commits mailing list