Skip to content

static-plugins is broken in profiled ways

There is something funny going on with the static-plugins test:

--- /dev/null   2018-09-20 23:11:48.441118459 -0400
+++ "/tmp/ghctest-fho1bbc6/test   spaces/testsuite/tests/plugins/static-plugins.run/static-plugins.run.stderr.normalised"       2019-06-11 17:05:31.321177386 -0400
@@ -0,0 +1,34 @@
+
+when making flags consistent: warning:
+    Enabling -prof, because -fobject-code is enabled and GHCi is profiled
+
+static-plugins-module.hs:1:8:
+    Bad interface file: /home/ben/ghc-trees/ghc/_build/stage1/lib/../lib/x86_64-linux-ghc-8.9.0.20190611/base-4.13.0.0/Prelude.hi
+        mismatched interface file ways (wanted "p", got "")
+  |
+1 | module Main where
+  |        ^^^^
+
+static-plugins-module.hs:2:8:
+    Variable not in scope: print :: [GHC.Types.Char] -> t
+  |
+2 | main = print "Hello world!"
+  |        ^^^^^
+
+static-plugins-module.hs:2:8:
+    Variable not in scope: print :: [GHC.Types.Char] -> t
+  |
+2 | main = print "Hello world!"
+  |        ^^^^^
+
+static-plugins-module.hs:2:8:
+    Variable not in scope: print :: [GHC.Types.Char] -> t
+  |
+2 | main = print "Hello world!"
+  |        ^^^^^
+
+static-plugins-module.hs:2:8:
+    Variable not in scope: print :: [GHC.Types.Char] -> t
+  |
+2 | main = print "Hello world!"
+  |        ^^^^^

Why did we load an unprofiled interface file when we were invoked with profiling?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information