[GHC] #15856: GhostScript not available for hp2ps tests

#15856: GhostScript not available for hp2ps tests -------------------------------------+------------------------------------- Reporter: jrp | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Test Suite | Version: 8.6.1 Keywords: ghostscript | Operating System: Linux gs hp2ps testsuite | Architecture: | Type of failure: Incorrect result Unknown/Multiple | at runtime Test Case: T7919 T14761c | Blocked By: Blocking: | Related Tickets: #15736 Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- When I run `validate --slow` a number of tests fail, apparently erroneously, because `GhostScript not available for hp2ps tests`. I don't know why this is the case (Ghostscript is installed on my ubuntu; perhaps there are some developer libraries / headers that also need to be installed, but I don't recall seeing anything in the documentation about that). The message "GhostScript not available for hp2ps tests" seems to come from a Python script that Simon Marlow produced in 2002. Unfortunately, there are two places where the message could have been generated. There are probably 2 ways forward: - a temporary bodge: taking the running of those tests that depend on hp2ps out of validation, in the same way that certain tests are not run when a dependent library is unavailable - figuring out why the python script fails to understand that a ghostscript is actually present and fixing that -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15856 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15856: GhostScript not available for hp2ps tests -------------------------------------+------------------------------------- Reporter: jrp | Owner: monoidal Type: bug | Status: new Priority: normal | Milestone: Component: Test Suite | Version: 8.6.1 Resolution: | Keywords: ghostscript | gs hp2ps testsuite Operating System: Linux | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: T7919 T14761c Blocked By: | Blocking: Related Tickets: #15736 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by monoidal): * owner: (none) => monoidal -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15856#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15856: GhostScript not available for hp2ps tests -------------------------------------+------------------------------------- Reporter: jrp | Owner: monoidal Type: bug | Status: patch Priority: normal | Milestone: Component: Test Suite | Version: 8.6.1 Resolution: | Keywords: ghostscript | gs hp2ps testsuite Operating System: Linux | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: T7919 T14761c Blocked By: | Blocking: Related Tickets: #15736 | Differential Rev(s): Phab:D5298 Wiki Page: | -------------------------------------+------------------------------------- Changes (by monoidal): * status: new => patch * differential: => Phab:D5298 Comment: I wrote a patch. Could you check if you see "GhostScript available" after applying it? It seems to me that hasn't been working for some time - I think I fixed GhostScript detection but other things might still be broken. One day, I'd like to simplify the Python runner - currently options are set via `-e`, then `config/ghc`, then `--config`; there are possible conflicts. Ideally, there should be one pass that reads the commandline and sets every option. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15856#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15856: GhostScript not available for hp2ps tests -------------------------------------+------------------------------------- Reporter: jrp | Owner: monoidal Type: bug | Status: patch Priority: normal | Milestone: Component: Test Suite | Version: 8.6.1 Resolution: | Keywords: ghostscript | gs hp2ps testsuite Operating System: Linux | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: T7919 T14761c Blocked By: | Blocking: Related Tickets: #15736 | Differential Rev(s): Phab:D5298 Wiki Page: | -------------------------------------+------------------------------------- Comment (by jrp): Seems to work now, I think. Thanks very much. (I cannot see any gs errors when I `validate --slow`) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15856#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15856: GhostScript not available for hp2ps tests -------------------------------------+------------------------------------- Reporter: jrp | Owner: monoidal Type: bug | Status: patch Priority: normal | Milestone: Component: Test Suite | Version: 8.6.1 Resolution: | Keywords: ghostscript | gs hp2ps testsuite Operating System: Linux | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: T7919 T14761c Blocked By: | Blocking: Related Tickets: #15736 | Differential Rev(s): Phab:D5298 Wiki Page: | -------------------------------------+------------------------------------- Comment (by monoidal): The same command that has shown the message `GhostScript not available`. If it's `validate`, the log of the last run should be present in a file called `testlog` in the top of the repository. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15856#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15856: GhostScript not available for hp2ps tests -------------------------------------+------------------------------------- Reporter: jrp | Owner: monoidal Type: bug | Status: patch Priority: normal | Milestone: Component: Test Suite | Version: 8.6.1 Resolution: | Keywords: ghostscript | gs hp2ps testsuite Operating System: Linux | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: T7919 T14761c Blocked By: | Blocking: Related Tickets: #15736 | Differential Rev(s): Phab:D5298 Wiki Page: | -------------------------------------+------------------------------------- Comment (by jrp): OK. Got that: {{{ "gs" -dNODISPLAY -dBATCH -dQUIET -dNOPAUSE "/..../ghc/testsuite/config/good.ps" "gs" -dNODISPLAY -dBATCH -dQUIET -dNOPAUSE "/..../ghc/testsuite/config/bad.ps" >/dev/null 2>&1 GhostScript available for hp2ps tests }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15856#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15856: GhostScript not available for hp2ps tests
-------------------------------------+-------------------------------------
Reporter: jrp | Owner: monoidal
Type: bug | Status: patch
Priority: normal | Milestone:
Component: Test Suite | Version: 8.6.1
Resolution: | Keywords: ghostscript
| gs hp2ps testsuite
Operating System: Linux | Architecture:
Type of failure: Incorrect result | Unknown/Multiple
at runtime | Test Case: T7919 T14761c
Blocked By: | Blocking:
Related Tickets: #15736 | Differential Rev(s): Phab:D5298
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#15856: GhostScript not available for hp2ps tests -------------------------------------+------------------------------------- Reporter: jrp | Owner: monoidal Type: bug | Status: closed Priority: normal | Milestone: 8.8.1 Component: Test Suite | Version: 8.6.1 Resolution: fixed | Keywords: ghostscript | gs hp2ps testsuite Operating System: Linux | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: T7919 T14761c Blocked By: | Blocking: Related Tickets: #15736 | Differential Rev(s): Phab:D5298 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed * milestone: => 8.8.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15856#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC