[bug #62084] Parallel build failure: fatal error: cannot load 'DESC' description file for device 'ps'

2022-05-03 Thread Sergei Trofimovich
Follow-up Comment #3, bug #62084 (project groff):

Survived 15 rebuilds for me on GNU make with --shuffle option
(https://savannah.gnu.org/bugs/index.php?62100). Thank you!


___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/




[bug #62084] Parallel build failure: fatal error: cannot load 'DESC' description file for device 'ps'

2022-05-03 Thread G. Branden Robinson
Update of bug #62084 (project groff):

  Status: In Progress => Fixed  
 Open/Closed:Open => Closed 
 Planned Release:None => 1.23.0 

___

Follow-up Comment #2:


commit 3a58ef2712d1bcf123dbf925d3f371823533e71a
Author: G. Branden Robinson 
Date:   Mon May 2 01:13:48 2022 +1000

[build]: Rationalize in-tree document deps.

[build]: Reduce and rationalize in-tree document dependencies.  This
eliminates spurious rebuilds of numerous documents (including the
380+-page groff-man-pages collections).  It also fixes missing
dependencies when using the build's groff to generate PostScript
documents.

* .gitignore: Drop old name of devpdf stamp file.

* doc/.gitignore: Drop now-unused "example.stamp" file.

* doc/doc.am (PROCESSEDDOCFILES_HTML, PROCESSEDDOCFILES_PDF,
  PROCESSEDDOCFILES_TXT): Add new macros grouping targets by the
  format/output driver used to produce them, to better organize
  dependencies for their generation.

  (PROCESSEDDOCFILES): Redefine as simply the expansions of the
  foregeoing.

  (PROCESSEDFILES_DEPS_HTML, PROCESSEDFILES_DEPS_HTML,
  PROCESSEDFILES_DEPS_PDF, PROCESSEDFILES_DEPS_TXT): Add new macros
  defining prerequisites for production of the corresponding output
  document formats.

  ($(PROCESSEDDOCFILES_HTML), $(PROCESSEDDOCFILES_PDF),
  $(PROCESSEDDOCFILES_PS), $(PROCESSEDDOCFILES_TXT)): Declare the
  dependencies using expansions of the foregoing macros.

  (MOSTLYCLEANFILES): Drop "doc/automake.pdf", now part of
  `PROCESSEDDOCFILES_PDF`.

  (doc/automake.pdf): Drop dependencies already supplied by
  `PROCESSEDFILES_DEPS_PDF`.

  (HTMLDOCFILES): Drop macro.  "doc/pic.html" is now in the expansion of
  `PROCESSEDDOCFILES_HTML`.

  (htmlpic_DATA): Redefine as expansion of `PROCESSEDDOCFILES_HTML`
  instead of `HTMLDOCFILES`.

  (PROCESSEDEXAMPLEFILES_HTML) [BUILD_HTML]: Define as
  "doc/webpage.html", otherwise as empty.

  (PROCESSEDEXAMPLEFILES_PS): Contain "doc/webpage.ps" and
  "doc/grnexampl.ps".

  (PROCESSEDEXAMPLEFILES): Redefine as expansions of
  `PROCESSEDEXAMPLEFILES_HTML` and `PROCESSEDEXAMPLEFILES_PS`.

  ($(PROCESSEDEXAMPLEFILES_HTML), $(PROCESSEDEXAMPLEFILES_PS)): Declare
  dependencies using `PROCESSEDFILES_DEPS_HTML` and
  `PROCESSEDFILES_DEPS_PS`, respectively.

  (nodist_docexamples_DATA): Redefine macro as expansions of now-split
  macros `PROCESSEDEXAMPLEFILES_HTML` and `PROCESSEDEXAMPLEFILES_PS`.

  (HTMLEXAMPLEFILES): Drop macro.  "doc/webpage.html" is now in the
  expansion of `PROCESSEDDOCFILES_HTML`.

  (nodist_htmlexamples_DATA): Drop macro, no longer needed.

  ($(PROCESSEDDOCFILES_PS)): Relocated and redefined above.
  ($(PROCESSEDEXAMPLEFILES) $(PROCESSEDDOCFILES)): Drop overbroad
  dependency declarations in favor of the above.

  (MOSTLYCLEANFILES, doc/examples.stamp): Drop generation and removal of
  unnecessary stamp file.

  (doc/pic.html, doc/webpage.html): Add explicit dependency on required
  preprocessors.  Drop redundant and spurious dependencies.

* font/devhtml/devhtml.am (MOSTLYCLEANFILES, font/devhtml/stamp):
  Generate and remove stamp file to enable reliable target dependencies
  for build-time generation of HTML documents by groff.

* font/devpdf/devpdf.am (MOSTLYCLEANFILES, font/devpdf/stamp): Rename
  stamp file from "font/devpdf/build_font_files".

  (font/devpdf/stamp): Drop unnecessary dependency on "afmtodit".

* font/devps/devps.am (MOSTLYCLEANFILES, font/devps/stamp): Generate and
  remove stamp file to enable reliable target dependencies for
  build-time generation of PostScript documents by groff.

* font/devutf8/devutf8.am (MOSTLYCLEANFILES, font/devutf8/stamp):
  Generate and remove stamp file to enable reliable target dependencies
  for build-time generation of UTF-8-encoded text documents by groff.

* contrib/hdtbl/hdtbl.am (HDTBLPROCESSEDEXAMPLEFILES): Add dependency on
  devps stamp file since the files' target rule generates PostScript
  with groff.

* contrib/mom/mom.am ($(MOMPROCESSEDEXAMPLEFILES)): Depend on new name
  for devpdf stamp file.

* contrib/sboxes/sboxes.am ($(sboxes_builddir)/msboxes.pdf): Depend on
  new name for devpdf stamp file.

Fixes ; thanks to Sergei
Trofimovich for the report.  Also fixes
; thanks to Bjarni Ingi Gislason
for the report.

Tested with the following script.

#!/bin/sh

set -e
  

[bug #62084] Parallel build failure: fatal error: cannot load 'DESC' description file for device 'ps'

2022-05-01 Thread G. Branden Robinson
Update of bug #62084 (project groff):

  Status:   Confirmed => In Progress


___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/




[bug #62084] Parallel build failure: fatal error: cannot load 'DESC' description file for device 'ps'

2022-02-23 Thread G. Branden Robinson
Update of bug #62084 (project groff):

  Status:None => Confirmed  
 Assigned to:None => gbranden   

___

Follow-up Comment #1:


[comment #0 original submission:]
> Incomplete dependencies in Makefile causes occasional parallel build
failures (make -j).

I've never seen this--I guess I just don't have enough cores.  :)

> Here is seemingly deterministic way to make `groff` build fail in sequential
mode for me:
> 
> 
> $ ./bootstrap
> $ ./configure
> $ make contrib/hdtbl/examples/col_rowspan_colors.ps
> ...
> make contrib/hdtbl/examples/col_rowspan_colors.ps
>   GROFFcontrib/hdtbl/examples/col_rowspan_colors.ps
> /home/slyfox/dev/git/groff/groff: fatal error: cannot load 'DESC'
description file for device 'ps'
> make: *** [Makefile:12392: contrib/hdtbl/examples/col_rowspan_colors.ps]
Error 3
> make: *** Deleting file 'contrib/hdtbl/examples/col_rowspan_colors.ps'
> 

Yup.  Can confirm.  Thanks for the report and the easy reproducer.  The first
thing I tried (attached) revealed a missing dependency elsewhere, on gnulib's
uniwidth.h.  Hooray!

I'll see what I can do.

(file #52910)
___

Additional Item Attachment:

File name: 62084-proposed.diffSize:0 KB




___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/




[bug #62084] Parallel build failure: fatal error: cannot load 'DESC' description file for device 'ps'

2022-02-23 Thread G. Branden Robinson
Update of bug #62084 (project groff):

Category:None => General


___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/




[bug #62084] Parallel build failure: fatal error: cannot load 'DESC' description file for device 'ps'

2022-02-19 Thread Sergei Trofimovich
URL:
  

 Summary: Parallel build failure: fatal error: cannot load
'DESC' description file for device 'ps'
 Project: GNU troff
Submitted by: slyfox
Submitted on: Sat 19 Feb 2022 10:13:26 AM UTC
Category: None
Severity: 3 - Normal
  Item Group: Build/Installation
  Status: None
 Privacy: Public
 Assigned to: None
 Open/Closed: Open
 Discussion Lock: Any
 Planned Release: None

___

Details:

Incomplete dependencies in Makefile causes occasional parallel build failures
(make -j).

Here is seemingly deterministic way to make `groff` build fail in sequential
mode for me:


$ ./bootstrap
$ ./configure
$ make contrib/hdtbl/examples/col_rowspan_colors.ps
...
make contrib/hdtbl/examples/col_rowspan_colors.ps
  GROFFcontrib/hdtbl/examples/col_rowspan_colors.ps
/home/slyfox/dev/git/groff/groff: fatal error: cannot load 'DESC' description
file for device 'ps'
make: *** [Makefile:12392: contrib/hdtbl/examples/col_rowspan_colors.ps] Error
3
make: *** Deleting file 'contrib/hdtbl/examples/col_rowspan_colors.ps'






___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/