I can't see the code so I can't really say for sure. You could just try
toolchainopts = {
'extra_fflags': '-fallow-argument-mismatch',
'extra_f90flags': '-fallow-argument-mismatch',
}
Take a look at what is done in
https://github.com/easybuilders/easybuild-easyconfigs/blob/develop/easybuild/easyconfigs/b/BigDFT/BigDFT-1.9.1-foss-2021b.eb
On 27-Aug-25 1:45 PM, Loris Bennett wrote:
Hi Alan, Alan O'Cais <[email protected]> writes:Hi Loris, Remember that it will only get propagated if the software actually uses FFLAGS, perhaps it listens to F90FLAGS or something else? You may even need to use preconfigopts to set something that works?Good point. Grepping for F90FLAGS turns up some hits in m4 files. So what kind of thing might I need to set via preconfigopts? Cheers, LorisAlan On 26-Aug-25 4:55 PM, Loris Bennett wrote:Hi, I am compiling some old Fortan code (CFOUR) and am getting the error Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(8)/REAL(8)) as also discussed here: https://github.com/easybuilders/easybuild-easyconfigs/issues/15770 I have added toolchainopts = { 'extra_fflags': '-fallow-argument-mismatch', } to my EC, but I still get Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(8)/REAL(8)). gfortran -O2 -ftree-vectorize -march=native -fno-math-errno -cpp -ffixed-line-length-none -ffree-line-length-none -fdefault-integer-8 -DINT64 -I.. -I.././include -c dgedi.f Apparently the extra option for FFLAGS is not being propagated. What am I doing wrong? Cheers, Loris
smime.p7s
Description: S/MIME Cryptographic Signature

