h5fc broken (or changed) in the hdf5_1_14-9f7b987 snapshot #4308
Labels
Component - Fortran
Fortran wrappers
Component - Tools
Command-line tools like h5dump, includes high-level tools
Priority - 0. Blocker ⛔
This MUST be merged for the release to happen
Type - Bug / Bugfix
Please report security issues to [email protected] instead of creating an issue on GitHub
Milestone
Describe the bug
h5fc repeats the source and object filenames in the wrong place in the argument list, resulting in attempting to use the output object as the input file.
gfortran: fatal error: input file 'const_glob_mod.o' is the same as output file
Expected behavior
Normal compilation
Platform (please complete the following information)
Additional context
using the -show argument (to see the compile command) with h5fc in 1.10.8:
../../../base_libs/bin/h5fc -show -J../../modules -fPIC -cpp -DHDF5_1_10 -O2 -g -Wall -Wno-surprising -fcheck=all -fimplicit-none -fbacktrace -ffpe-trap=zero,overflow,invalid -I. -I../../modules -I../../../common_libs/modules -I../../../base_libs/include -c const_glob_mod.f90 -o const_glob_mod.o
yields:
gfortran -I/Users/jelee1/Development/asas_hotfix/base_libs/include -J../../modules -fPIC -cpp -DHDF5_1_10 -O2 -g -Wall -Wno-surprising -fcheck=all -fimplicit-none -fbacktrace -ffpe-trap=zero,overflow,invalid -I. -I../../modules -I../../../common_libs/modules -I../../../base_libs/include -c const_glob_mod.f90 -o const_glob_mod.o
using the -show argument (to see the compile command) with h5fc in 1_14-9f7b987
../../../base_libs/bin/h5fc -show -J../../modules -fPIC -cpp -DHDF5_1_10 -O2 -g -Wall -Wno-surprising -fcheck=all -fimplicit-none -fbacktrace -ffpe-trap=zero,overflow,invalid -I. -I../../modules -I../../../common_libs/modules -I../../../base_libs/include -c const_glob_mod.f90 -o const_glob_mod.o
gfortran -I/Users/jelee1/Development/asas/base_libs/include -J../../modules -fPIC -cpp -DHDF5_1_10 -O2 -g -Wall -Wno-surprising -fcheck=all -fimplicit-none -fbacktrace -ffpe-trap=zero,overflow,invalid -I. -I../../modules -I../../../common_libs/modules -I../../../base_libs/include const_glob_mod.f90 const_glob_mod.o -J../../modules -fPIC -cpp -DHDF5_1_10 -O2 -g -Wall -Wno-surprising -fcheck=all -fimplicit-none -fbacktrace -ffpe-trap=zero,overflow,invalid -I. -I../../modules -I../../../common_libs/modules -I../../../base_libs/include -c const_glob_mod.f90 -o const_glob_mod.o:
Notice the object and source filenames are repeated in the middle of the options strings.
The text was updated successfully, but these errors were encountered: