[GHC] #10420: "Care with plugin imports" is wrong / orphan RULE visibility

GHC ghc-devs at haskell.org
Sun Jan 29 14:36:15 UTC 2017


#10420: "Care with plugin imports" is wrong / orphan RULE visibility
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:  ezyang
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Compiler (Type    |              Version:  7.11
  checker)                           |
      Resolution:  fixed             |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:  plugins07
      Blocked By:                    |             Blocking:  10294
 Related Tickets:                    |  Differential Rev(s):  Phab:D950
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Phyx-):

 This and other plugin tests are failing on Windows and I can't really
 figure out why. It Seems like a `cabal` bug.

 {{{
 Tamar at CI MINGW64
 /c/TeamCity/buildAgent/work/28754042a1be6052/testsuite/tests/plugins/plugins07.run
 /rule-defining-plugin
 $ make -C . package.plugins07
 TOP=C:/TeamCity/buildAgent/work/28754042a1be6052/testsuite/
 make: Entering directory
 '/c/TeamCity/buildAgent/work/28754042a1be6052/testsuite/tests/plugins/plugins07.run
 /rule-defining-plugin'
 make -s --no-print-directory clean.plugins07
 mkdir pkg.plugins07
 "/c/TeamCity/buildAgent/work/28754042a1be6052/inplace/bin/ghc-stage2.exe"
 -outputdir pkg.plugins07 --make -v0 -o pkg.plugins07/setup Setup.hs
 "/c/TeamCity/buildAgent/work/28754042a1be6052/inplace/bin/ghc-pkg.exe"
 init pkg.plugins07/local.package.conf
 pkg.plugins07/setup configure --distdir pkg.plugins07/dist -v0 --enable-
 library-vanilla --disable-shared
 --prefix="/c/TeamCity/buildAgent/work/28754042a1be6052/testsuite/tests/plugins/plugins07.run
 /rule-defining-plugin/pkg.plugins07/install" --with-
 compiler="/c/TeamCity/buildAgent/work/28754042a1be6052/inplace/bin/ghc-
 stage2.exe" --with-hc-
 pkg="/c/TeamCity/buildAgent/work/28754042a1be6052/inplace/bin/ghc-pkg.exe"
 --package-db=pkg.plugins07/local.package.conf
 pkg.plugins07/setup build     --distdir pkg.plugins07/dist -v0
 pkg.plugins07/setup install   --distdir pkg.plugins07/dist -v3
 /bin/sh: setup: command not found
 make: *** [Makefile:18: package.plugins07] Error 127
 make: Leaving directory
 '/c/TeamCity/buildAgent/work/28754042a1be6052/testsuite/tests/plugins/plugins07.run
 /rule-defining-plugin'
 }}}

 My guess is that `cabal` is expecting `setup.exe` to be in the same folder
 as the `.cabal` file. Which these tests don't do. If this is the case, how
 can they be working on linux? the install partially works until dies.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10420#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list