Commit Graph

62 Commits

Author SHA1 Message Date
Martin Kroeker d26caff60c
Add another object signature for classic flang 2024-04-12 14:29:27 +02:00
Martin Kroeker ec46ca7a43
Support Arm Compiler for Linux as classic flang (#4436)
* Support ArmCompilerforLinux as classic flang
2024-01-17 07:33:10 +01:00
Martin Kroeker 1a308a0066
Move OpenMP dependency handling for clang/gfortran combo 2023-11-10 15:27:46 +01:00
Rajalakshmi Srinivasaraghavan a11e1e10f4 powerpc: Fix build errors with xlf
This patch fixes errors when using xlf as fortran compiler on Linux.
Tested with gcc/xlf and clang/xlf compiler combinations.
2023-09-29 10:32:34 -05:00
Martin Kroeker 4de963dc17
Enforce trailing underscores on symbols when IBM xlf is combined with gcc 2023-09-24 10:16:37 +02:00
Martin Kroeker f2c9ae9c33
Identify the new generation of flang that comes with LLVM17 2023-08-04 15:31:03 +02:00
Martin Kroeker 280c8469d4
Fix detection of Cray CCE after detection changes for gfortran on Cray
CCE15 no longer produces a .ident line, so  look for HPE name in a note section as well
2023-03-25 14:18:21 +01:00
Glenn Johnson 59e26f6336 Patch for Intel Fortran compiler
This PR patches the f_check scripts to detect the ifort compiler. With
out this, the value of F_COMPILER is G77 which causes the link phase to
use icc rather than ifort, resulting in missing libifcore.
2022-12-09 16:32:13 -06:00
Martin Kroeker 5e78493d95
Move Cray case after GNU as Cray builds of gfortran have both names in the version string 2022-09-30 11:55:56 +02:00
Martin Kroeker 85fd3c4279
Support compilation with the Cray C and Fortran compilers (#3712)
* Add support for the Cray Fortran compiler
2022-08-04 20:42:18 +02:00
Rajalakshmi Srinivasaraghavan c98d63b637 power10: Fix build issues due to perl scripts conversion
Due to recent perl script conversion, there are some build
errors when compiling openblas with advance toolchain compilers.
2022-06-02 08:11:10 -05:00
Martin Kroeker 19413624d0
Add Intel ifx compiler 2022-05-26 09:31:49 +02:00
Owen Rafferty 42c7a27e6b
rewrite perl scripts in universal shell 2022-05-18 19:00:15 -05:00
Martin Kroeker 0e04710099
filter out libflangmain as well 2022-02-10 23:03:05 +01:00
Martin Kroeker bda8820da7
Use percent instead of ampersand as placeholder for substitutions 2021-05-06 20:20:08 +02:00
Martin Kroeker 0b8a436af9
Add mixed clang/ifort build on OSX to Azure CI (#3185)
* Add mixed clang/ifort build on OSX to the Azure CI config based on https://github.com/oneapi-src/oneapi-ci
(and remove debugging tools from the clang+gfortran job)

* Remove extraneous libgfortran dependency of ifort builds

* remove FEXTRALIB from link line of shared library as ifort keeps track of dependencies (and they are different for a .dylib than what f_check got for an executable)
2021-04-22 02:11:20 +02:00
Martin Kroeker 697e64bbb6
Fix syntax 2021-03-11 23:03:58 +01:00
Martin Kroeker 3c356b1a1f
Support compilation with the NAG Fortran compiler 2021-03-11 11:51:09 +01:00
Martin Kroeker 2d369bd916
fix undefined CC variable 2021-02-26 09:09:43 +01:00
Harmen Stoppels ec6b354c32 use /usr/bin/env perl 2021-02-24 14:07:20 +01:00
Martin Kroeker ece3ce581e
Strip parenthesized (pkgversion) data from GCC version string to avoid misinterpretation 2021-02-10 14:22:59 +01:00
Martin Kroeker b859b6e79d
Add nvfortran 2020-12-19 22:09:57 +01:00
Martin Kroeker b03dc011be
Fix undefined CC variable in clang check 2020-12-14 19:21:52 +01:00
Martin Kroeker a1eecccda2
Update f_check 2020-12-03 23:43:17 +01:00
Martin Kroeker da0c94c76f
Avoid linking both GNU libgomp and LLVM libomp in clang/gfortran builds 2020-12-03 21:25:57 +01:00
Gilles Gouaillardet 358100ec15 add Fujitsu compilers
Co-authored-by: Tomoki Karatsu <karatsu.spack@gmail.com>
2020-11-29 14:35:42 +09:00
User User-User 9fab65e90a add openbsd gfortran 2020-11-01 00:38:08 +02:00
Martin Kroeker 746ad3bd19
Fix vendor match for GCC gfortran 2020-09-13 18:40:59 +02:00
Wileam Phan 9ae154ba89 Patch for building on Summit 2020-07-20 23:30:28 -04:00
Martin Kroeker 86552bf4c7
Update f_check 2020-05-31 15:22:12 +02:00
Martin Kroeker 200296b0f4
remove libomp from link list only for pgfortran
at least the AMD (aocc) flavor of flang wants to link to a (real or dummy) libomp by default
2020-05-29 13:23:51 +02:00
Martin Kroeker 55602fce56
Ignore spurious all-numeric library names derived from mishandled jobserver flags 2020-05-17 15:28:14 +02:00
Martin Kroeker cfe63d8cc2
Remove OpenMP libraries from link list 2020-02-07 16:03:51 +01:00
Martin Kroeker b28db31429
Support two-digit version numbers in gcc version check
fixes #2336 (non-recognition of gcc 10) with patch provided by JeffreyALaw.
2019-12-06 21:23:56 +01:00
Martin Kroeker aeabe0a83f
Fix regex to parse -R options with and without whitespace
Both forms are seen on NetBSD (#2288)
2019-10-25 22:52:30 +02:00
Martin Kroeker 911c3e2f4b
Improve support for g95 and non-GNU ld
Auto-add "-fno-second-underscore" option to make LAPACKE compile (as it calls LAPACK functions that may have gotten a second underscore added otherwise). Also support -R for rpath when parsing compiler directives in f_check
2019-10-24 22:43:27 +02:00
luz.paz daf2fec12d Misc. typo fixes
Found via `codespell -q 3 -w -L ith,als,dum,nd,amin,nto,wis,ba -S ./relapack,./kernel,./lapack-netlib`
2019-04-29 17:03:56 -04:00
François Bissey 0184713e1a Correct link flags for PGI compiler. 2018-11-21 14:24:56 +13:00
Martin Kroeker d2b9389f1b
Fixes for ifort 2018
1. the already deprecated -openmp option was removed in 2018, switch to -fopenmp
2. add leading blank in search for "zho_ge__" symbol to work around misleading tags in the 2018 assembly
Expected to fix #1548
2018-05-08 21:55:37 +02:00
Martin Kroeker 3810a6fd99 (Plain make) build system fixes for AIX
- retry fortran compiler test with aix-specific option if generic -m32/-m64 fails
- pass any custom ARFLAGS to lapack
- no addition of -m32/-m64 to the CFLAGS and FFLAGS on AIX
2017-09-18 01:29:21 +02:00
Christoph Conrads da611dd81a ARM: recognize gfortran pre-releases
Without proper recognition of gfortran versions such as
> GNU Fortran (GCC) 4.9.x 20150123 (prerelease)
OpenBLAS assumes the presence of the G77 compiler. Consequently,
`-lgfortran` is missing from the pkg-config file.

The aforementioned compiler is the gfortran compiler in the Android repo
in a commit tagged as `ndk-r14`, cf. Paul Mustière's gfortran build
instructions for Android at https://github.com/buffer51/android-gfortran
2017-08-10 11:48:29 -04:00
Paul Osmialowski 42bbe74791 build: LLVM: Add Flang compiler support and enable OpenMP for Clang
Signed-off-by: Paul Osmialowski <pawel.osmialowski@arm.com>
2017-05-25 17:03:20 +01:00
Martin Kroeker e7732d9941 Convert --exclude-libs argument to linker flag
Fixes build with TDM-GCC
2016-11-22 09:17:03 +01:00
Shivraj Patil d1c6469283 MIPS n32 ABI support, MSA support detection and rename ARCH, ARCHFLAGS
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
2016-08-08 11:58:01 +05:30
Shivraj Patil 22b9c2747d P6600/I6400 Build fix. Reverted the changes which was done to support for MIPS n32 ABI
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
2016-07-22 18:45:06 +05:30
Zhang Xianyi 9e44f3ddd0 Refs #917 Avoid detecting gfortran bug on IBM POWER + Ubuntu 2016-07-14 13:09:36 -07:00
Vicente Olivert Riera 7f28cd1f88 Complete support for MIPS n32 ABI
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
2016-07-14 17:51:04 +01:00
Shivraj Patil 573d9218f2 build fix for MIPS 32 bit
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
2016-05-09 14:45:12 +05:30
Lauri Tirkkonen d6afac9624 don't pass -Y at all to the linker on illumos
the illumos linker can't understand the "-Y/lib"... form that f_check
generates, and -Wl cannot pass options that include commas
2016-01-25 11:09:34 +02:00
Zhang Xianyi 6d40fa587f Fix f_check bug. 2015-05-19 12:04:45 -05:00