Package Details: flang-classic 20240723-1

Git Clone URL: https://aur.archlinux.org/flang-classic.git (read-only, click to copy)
Package Base: flang-classic
Description: out-of-tree Fortran compiler targeting LLVM
Upstream URL: https://github.com/flang-compiler/flang
Licenses: custom:Apache 2.0 with LLVM Exception
Submitter: xantares
Maintainer: None
Last Packager: xantares
Votes: 0
Popularity: 0.000000
First Submitted: 2023-08-25 22:12 (UTC)
Last Updated: 2025-01-04 18:02 (UTC)

Latest Comments

gurban commented on 2025-03-31 20:56 (UTC) (edited on 2025-03-31 21:06 (UTC) by gurban)

flang-classic-20240723-1 failed for me at (with cmake-4.0.0-1):

[100%] Linking C shared library libpgarch.so
[100%] Built target pgarch
make: Leaving directory '/home/gmt/.cache/yay/flang-classic/src/build_pgmath'
CMake Error at CMakeLists.txt:7 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: flang-classic-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
flang-classic - exit status 4

It seems cmake-4.0 introduces some incompatibilities. I added -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to cmake arguments in my PKGBUILD and build progressed until:

[ 25%] Linking C executable ../../../bin/flang1
[ 25%] Built target flang1
[ 25%] Generating I8_sources/norm2_1.F95, norm2_1.F95
flang: error: unknown argument: '-ffile-prefix-map=/home/gmt/.cache/yay/flang-classic/src=/usr/src/debug/flang-classic'
make[2]: *** [runtime/flang/CMakeFiles/flang_static.dir/build.make:75: runtime/flang/I8_sources/norm2_1.F95] Error 1
make[2]: *** Deleting file 'runtime/flang/I8_sources/norm2_1.F95'
make[1]: *** [CMakeFiles/Makefile2:1174: runtime/flang/CMakeFiles/flang_static.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
make: Leaving directory '/home/gmt/.cache/yay/flang-classic/src/build'
==> ERROR: A failure occurred in build().
    Aborting...