[GHC] #15234: WARNING in hptSomeThingsBelowUs when using a source plugin

#15234: WARNING in hptSomeThingsBelowUs when using a source plugin -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Keywords: | Operating System: Unknown/Multiple SourcePlugins, plugins | Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- When using a source plugin with a stage2 compiler built with the devel2 flavour, there are a fair few warnings about hptSomeThingsBelowUs. {{{ WARNING in hptSomeThingsBelowUs missing module CoercePlugin Probable cause: out-of-date interface files }}} I don't know if this just started happening or has been going on for a while. Is this warning cause for concern? Everything appears to work as expected despite this hiccup. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15234 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15234: WARNING in hptSomeThingsBelowUs when using a source plugin -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: | SourcePlugins, plugins Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Can you provide a testcase? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15234#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15234: WARNING in hptSomeThingsBelowUs when using a source plugin -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: | SourcePlugins, plugins Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by mpickering): Every plugin I have tried has this problem. For example - https://github.com/mpickering/plugin-constraint -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15234#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15234: WARNING in hptSomeThingsBelowUs when using a source plugin -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: | SourcePlugins, plugins Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by darchon): It seems that the combination of plugins, TH, and ghc861rc1 just completely fails; this is me trying to compile `clash-prelude` on ghc861rc: {{{ WARNING in hptSomeThingsBelowUs missing module GHC.TypeLits.KnownNat.Solver Probable cause: out-of-date interface files WARNING in hptSomeThingsBelowUs missing module GHC.TypeLits.Normalise Probable cause: out-of-date interface files WARNING in hptSomeThingsBelowUs missing module GHC.TypeLits.KnownNat.Solver Probable cause: out-of-date interface files [34 of 67] Compiling Clash.Signal.Bundle ( src/Clash/Signal/Bundle.hs, /home/christiaan/devel/clash-prelude/dist- newstyle/build/x86_64-linux/ghc-8.6.0.20180627/clash- prelude-0.99/build/Clash/Signal/Bundle.o ) src/Clash/Signal/Bundle.hs:1:1: fatal: cannot find object file for module ‘GHC.TypeLits.KnownNat.Solver’ while linking an interpreted expression }}} I could open a new issue, but they probably have same root cause, so I'm just reporting it here. I'll see if I can make a smaller test case. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15234#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15234: WARNING in hptSomeThingsBelowUs when using a source plugin -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: | SourcePlugins, plugins Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by darchon): * Attachment "0001-Plugin-dependency-information-is-stored- separately.patch" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15234 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15234: WARNING in hptSomeThingsBelowUs when using a source plugin -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: | SourcePlugins, plugins Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by darchon): The attached patch, when applied on top of the GHC 8.6 branch, fixes both the warnings and the errors for me. I'll see how it fares on master and supply a phab patch -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15234#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15234: WARNING in hptSomeThingsBelowUs when using a source plugin -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: | SourcePlugins, plugins Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by darchon): * milestone: 8.8.1 => 8.6.1 Comment: Given that I simply cannot build my packages because of this bug I hope there's room to include the patch into 8.6 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15234#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15234: WARNING in hptSomeThingsBelowUs when using a source plugin -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: patch Priority: highest | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: | SourcePlugins, plugins Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by mpickering): * status: new => patch * priority: normal => highest -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15234#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15234: WARNING in hptSomeThingsBelowUs when using a source plugin -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: patch Priority: highest | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: | SourcePlugins, plugins Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4937 Wiki Page: | -------------------------------------+------------------------------------- Changes (by darchon): * differential: => Phab:D4937 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15234#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15234: WARNING in hptSomeThingsBelowUs when using a source plugin
-------------------------------------+-------------------------------------
Reporter: mpickering | Owner: (none)
Type: bug | Status: patch
Priority: highest | Milestone: 8.6.1
Component: Compiler | Version: 8.4.3
Resolution: | Keywords:
| SourcePlugins, plugins
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D4937
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#15234: WARNING in hptSomeThingsBelowUs when using a source plugin -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: merge Priority: highest | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: | SourcePlugins, plugins Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4937 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15234#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15234: WARNING in hptSomeThingsBelowUs when using a source plugin -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: closed Priority: highest | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: fixed | Keywords: | SourcePlugins, plugins Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4937 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged to `ghc-8.6` with e86db0d59dc2f9d8f4140c6b3052762a1ae82428. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15234#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15234: WARNING in hptSomeThingsBelowUs when using a source plugin -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: closed Priority: highest | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: fixed | Keywords: | SourcePlugins, plugins Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4937 Wiki Page: | -------------------------------------+------------------------------------- Comment (by sheaf): I'm sure this isn't news to anyone, but after testing I can confirm that plugins work on GHC 8.6.1 on Windows if one bypasses the test for whether a plugin has changed (`mkPluginUsage` in `DsUsage.hs`). So it seems the solution should be to make the functions that look up plugin locations, within `mkPluginUsage`, work correctly on Windows. The only relevant files that I can see on my machine are static `.a` files. For instance, instead of the non-existent `libHSghc- typelits-_-0.6.2-faf29727b3dbdfa09cfb6f0c881a2a227b5d2bb0-ghc8.6.1.dll`, I have `libHSghc- typelits-_-0.6.2-faf29727b3dbdfa09cfb6f0c881a2a227b5d2bb0.a`, which I have to assume is what is being used by GHC for plugin usage. \\ Does this mean mkPluginUsage should be hashing these files instead? On Windows only? The attached `DsUsage.hs` file is working on my end, inelegant as it may be. It tries looking for .a files if looking for dynamic files (.dll, .so, .dylib) fails. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15234#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC