Search Criteria
Package Details: flang 21.1.8-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/flang.git (read-only, click to copy) |
|---|---|
| Package Base: | flang |
| Description: | ground-up implementation of a Fortran front end written in modern C++ |
| Upstream URL: | http://llvm.org/ |
| Licenses: | Apache-2.0 WITH LLVM-exception |
| Submitter: | xantares |
| Maintainer: | xantares |
| Last Packager: | xantares |
| Votes: | 5 |
| Popularity: | 0.011185 |
| First Submitted: | 2023-08-25 22:06 (UTC) |
| Last Updated: | 2026-02-15 10:29 (UTC) |
Dependencies (6)
- clang (llvm-gitAUR, clang-minimal-gitAUR, clang17-binAUR)
- llvm-libs (llvm-libs-gitAUR)
- mlirAUR
- cmake (cmake3AUR, cmake-gitAUR) (make)
- llvm (llvm-gitAUR, llvm-minimal-gitAUR) (make)
- python (make)
Required by (0)
Sources (8)
- https://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.8/clang-21.1.8.src.tar.xz
- https://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.8/clang-21.1.8.src.tar.xz.sig
- https://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.8/cmake-21.1.8.src.tar.xz
- https://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.8/cmake-21.1.8.src.tar.xz.sig
- https://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.8/flang-21.1.8.src.tar.xz
- https://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.8/flang-21.1.8.src.tar.xz.sig
- https://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.8/llvm-project-21.1.8.src.tar.xz
- https://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.8/llvm-project-21.1.8.src.tar.xz.sig
Latest Comments
1 2 3 Next › Last »
xantares commented on 2025-11-19 21:06 (UTC) (edited on 2025-11-19 21:06 (UTC) by xantares)
ok for POSITION_INDEPENDENT_CODE
for flang I cannot really throw more than 1 thread because it can blow the RAM
MartinDiehl commented on 2025-11-18 21:27 (UTC)
I've encountered an error when compiling openMPI which I could resolve by adding
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true. I don't know to which of the builds it was really needed and added it to both. I also had to add-DCMAKE_Fortran_FLAGS=''to the flang-rt build because otherwise non-working options for GFortran are used.To speed up the build, I also disabled debug and used 4 threads, so in the end I used
wanghaoran commented on 2025-11-18 17:21 (UTC)
I don't know where the flag came from, but I've made sure my makepkg configure files do not contain it.
gomfol12 commented on 2025-11-18 14:09 (UTC)
Hi @xantares, I had the same problem as @wanghaoran and his suggested fix worked.
xantares commented on 2025-11-13 19:01 (UTC)
hi @wanghaoran maybe you are using old makepkg config files ? I dont see where its defined in makepkg
wanghaoran commented on 2025-11-09 16:54 (UTC)
btw, compilation without "--parallel 1" works for me. It should be much faster.
wanghaoran commented on 2025-11-09 16:39 (UTC)
Hello,
I've encountered a build failure with the current PKGBUILD. The error is:
1 flang-21: error: unknown argument: '-ffile-prefix-map=/home/user/flang/src=/usr/src/debug/flang'
This seems to be caused by makepkg passing the -ffile-prefix-map flag to the flang compiler during the flang-rt build, and this version of flang does not recognize the argument.
I was able to fix this by adding -DCMAKE_Fortran_FLAGS="" to the cmake command for the flang-rt build. This prevents the problematic flag from being passed to the Fortran compiler.
Here is the suggested change to the PKGBUILD:
10 -B build -S "$srcdir"/llvm-project-$pkgver.src/runtimes
Thank you for maintaining this package
krystophny commented on 2025-11-07 20:33 (UTC)
Please bump version.
New PKGBUILD:
xantares commented on 2025-11-02 15:14 (UTC)
I added the flang-rt lib
MartinDiehl commented on 2025-10-30 09:29 (UTC) (edited on 2025-10-30 09:29 (UTC) by MartinDiehl)
compilation of 21.1.4-1 works for me but invoking flang fails with
/usr/bin/ld: cannot find -lflang_rt.runtime: No such file or directory1 2 3 Next › Last »