https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104006

--- Comment #17 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> --- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> The version file is now fixed.

Thanks.

> Can you perhaps rm -rf the libgfortran build directories and retry, if it
> wasn't some weird BUILT_SOURCES problem caused by it failing early because of
> the gfortran version file failure?  Have you ever seen such failures before?

I believe I've tried that before and now did again with just the version
file fix: no dice.

And no, this is the first time ever that I had such an issue.

> As documented in automake, BUILT_SOURCES is only for all, check and install
> goals, if one does make fpu.lo it will not work.

After the fresh built, among others with

/vol/gcc/src/hg/master/local/libgfortran/ieee/ieee_exceptions.F90:28:2:

   28 | #include "c99_protos.inc"
      |  1~~~~~~~~~~
Fatal Error: kinds.inc: No such file or directory

I compared make --debug=verbose for that file and bounds.lo: one glaring
difference is that for bounds.lo the debug output lists

Considering target file 'bounds.lo'.
 File 'bounds.lo' does not exist.
  Considering target file
'/vol/gcc/src/hg/master/local/libgfortran/runtime/bounds.c'.
   Finished prerequisites of target file
'/vol/gcc/src/hg/master/local/libgfortran/runtime/bounds.c'.
  No need to remake target
'/vol/gcc/src/hg/master/local/libgfortran/runtime/bounds.c'.
  Pruning file '/vol/gcc/src/hg/master/local/libgfortran/runtime/bounds.c'.
  Considering target file
'/vol/gcc/src/hg/master/local/libgfortran/libgfortran.h'.
   Finished prerequisites of target file
'/vol/gcc/src/hg/master/local/libgfortran/libgfortran.h'.
[...]

while ieee_exceptions.lo has only

Considering target file 'ieee_exceptions.lo'.
 File 'ieee_exceptions.lo' does not exist.
  Considering target file 'ieee/ieee_exceptions.F90'.
   Finished prerequisites of target file 'ieee/ieee_exceptions.F90'.
  No need to remake target 'ieee/ieee_exceptions.F90'; using VPATH name
'/vol/gcc/src/hg/master/local/libgfortran/ieee/ieee_exceptions.F90'.
 Finished prerequisites of target file 'ieee_exceptions.lo'.
Must remake target 'ieee_exceptions.lo'.

i.e. it lists no prerequisites beside the source itself.  The bounds.lo
prerequisites are both from the Makefile proper and .deps/bounds.Plo
while .deps/ieee_exceptions.Plo doesn't exist/isn't generated.

The compile command for bounds.lo includes -MF $(DEPDIR)/bounds.Tpo has
nothing of the kind.  No idea why.  Maybe a difference between C and
Fortran sources in Automake?

Reply via email to