Cannot compile example_mnorm.f90
Description
On Windows,
python config/fypp_deployment.py --maxrank 2 --build
gave
...
example_matrix_exp.f90 done.
example_mnorm.f90 failed.
[ 41%] Compiling...
example\linalg\example_mnorm.f90:22:9:
22 | nb = mnorm(b, 'inf', dim=[1,2])
| 1
Error: There is no specific function for the generic 'mnorm' at (1)
<ERROR> Compilation failed for object " example_linalg_example_mnorm.f90.o "
<ERROR> stopping due to failed compilation
STOP 1
Traceback (most recent call last):
File "c:\fortran\public_domain\github\stdlib\config\fypp_deployment.py", line 165, in <module>
fpm_build(args,unknown)
~~~~~~~~~^^^^^^^^^^^^^^
File "c:\fortran\public_domain\github\stdlib\config\fypp_deployment.py", line 124, in fpm_build
subprocess.run("fpm build"+
~~~~~~~~~~~~~~^^^^^^^^^^^^^
" --compiler "+FPM_FC+
^^^^^^^^^^^^^^^^^^^^^^
" --c-compiler "+FPM_CC+
^^^^^^^^^^^^^^^^^^^^^^^^
" --cxx-compiler "+FPM_CXX+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
" --flag \"{}\"".format(flags), shell=True, check=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Programs\Python313\Lib\subprocess.py", line 577, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'fpm build --compiler gfortran --c-compiler gcc --cxx-compiler gcc --flag "-cpp "' returned non-zero exit status 1.
Expected Behaviour
to compile
Version of stdlib
940bba4476ecbabea87d58df3faacacbd94dd144
Platform and Architecture
Windows
Additional Information
No response
I think #1223 should fix this issue. Could you retry ?
@jalvesz i checked #1223 out With gfortran 15.3.1 and FPM 0.13.0 on Linux, python3 config/fypp_deployment.py --maxrank 2 --build still fails at example_mnorm.f90:22 with the same error. Changing --maxrank to 3 builds successfully, and the example runs correctly. It uses a rank-3 array, but --maxrank 2 leaves out the matching mnorm interface. #1223 only changes the indexing in the test file, so it doesn’t address this example build failure.
Hello, I’m interested in investigating this compilation failure. I would first reproduce the example_mnorm.f90 failure with the affected compiler/build configuration, compare it with the successful --maxrank 3 case, and then propose a focused fix with regression coverage. Is this issue available, and may I work on it?
4. Hello, I’m interested in investigating this compilation failure. I would first reproduce the example_mnorm.f90 failure with the affected compiler/build configuration, compare it with the successful --maxrank 3 case, and then propose a focused fix with regression coverage. Is this issue available, and may I work on it?
Hi Rohit, sorry but I'm already working on it.