shayne-fletcher / ghc-lib-parser-ex

GHC API parse tree utilities
Other
10 stars 4 forks source link

failed o build with ghc-9.0.1 - import od HsDumpAst #79

Closed mimi1vx closed 3 years ago

mimi1vx commented 3 years ago
[   44s] + ./Setup build -v
[   44s] Component build order: library
[   44s] /usr/bin/ghc-pkg init dist/package.conf.inplace
[   44s] creating dist/build
[   44s] creating dist/build/autogen
[   44s] creating dist/build/autogen
[   44s] Preprocessing library for ghc-lib-parser-ex-9.0.0.3..
[   44s] Building library for ghc-lib-parser-ex-9.0.0.3..
[   44s] creating dist/build
[   44s] /usr/bin/ghc --make -fbuilding-cabal-package -O -static -dynamic-too -dynosuf dyn_o -dynhisuf dyn_hi -outputdir dist/build -odir dist/build -hidir dist/build -stubdir dist/build -i -idist/build -isrc -idist/build/autogen -idist/build/global-autogen -Idist/build/autogen -Idist/build/global-autogen -Idist/build -Icbits -Idist/build/cbits -optP-include -optPdist/build/autogen/cabal_macros.h -this-unit-id ghc-lib-parser-ex-9.0.0.3-7vv2xbG2Jdb5CGJuwY2m7Q -hide-all-packages -Wmissing-home-modules -no-user-package-db -package-db dist/package.conf.inplace -package-id base-4.15.0.0 -package-id bytestring-0.10.12.1 -package-id containers-0.6.4.1 -package-id ghc-9.0.1 -package-id ghc-boot-9.0.1 -package-id ghc-boot-th-9.0.1 -package-id uniplate-1.6.13-6yuzA7Q8NEEtlEJ9JXZaY -XHaskell2010 Language.Haskell.GhclibParserEx.Dump Language.Haskell.GhclibParserEx.Fixity Language.Haskell.GhclibParserEx.GHC.Settings.Config Language.Haskell.GhclibParserEx.GHC.Driver.Flags Language.Haskell.GhclibParserEx.GHC.Driver.Session Language.Haskell.GhclibParserEx.GHC.Hs Language.Haskell.GhclibParserEx.GHC.Hs.Expr Language.Haskell.GhclibParserEx.GHC.Hs.Pat Language.Haskell.GhclibParserEx.GHC.Hs.Types Language.Haskell.GhclibParserEx.GHC.Hs.Decls Language.Haskell.GhclibParserEx.GHC.Hs.Binds Language.Haskell.GhclibParserEx.GHC.Hs.ImpExp Language.Haskell.GhclibParserEx.GHC.Hs.ExtendInstances Language.Haskell.GhclibParserEx.GHC.Parser Language.Haskell.GhclibParserEx.GHC.Types.Name.Reader Language.Haskell.GhclibParserEx.GHC.Utils.Outputable Language.Haskell.GhclibParserEx.Config Language.Haskell.GhclibParserEx.Parse Language.Haskell.GhclibParserEx.Outputable Paths_ghc_lib_parser_ex -optc-O2 -optc-Wall '-optc-D_FORTIFY_SOURCE=2' -optc-fstack-protector-strong -optc-funwind-tables -optc-fasynchronous-unwind-tables -optc-fstack-clash-protection '-optc-Werror=return-type'
[   44s] [ 1 of 20] Compiling Language.Haskell.GhclibParserEx.Dump ( src/Language/Haskell/GhclibParserEx/Dump.hs, dist/build/Language/Haskell/GhclibParserEx/Dump.o, dist/build/Language/Haskell/GhclibParserEx/Dump.dyn_o )
[   44s] 
[   44s] src/Language/Haskell/GhclibParserEx/Dump.hs:23:1: error:
[   44s]     Could not find module ‘HsDumpAst’
[   44s]     Use -v (or `:set -v` in ghci) to see a list of the files searched for.
[   44s]    |
[   44s] 23 | import HsDumpAst
[   44s]    | ^^^^^^^^^^^^^^^^
[   44s] error: Bad exit status from /var/tmp/rpm-tmp.QOoMrn (%build)
[   44s] 
[   44s] 
shayne-fletcher commented 3 years ago

Thanks @mimi1vx , that's a bug. Fixed by ghc-lib-parser-ex-9.0.0.4 which is on hackage now. Cc @ndmitchell

shayne-fletcher commented 3 years ago

Trusting this is fixed for you now @mimi1vx ? If you have the chance to try, please let me know so we can consider closing this ticket.

mimi1vx commented 3 years ago

it works :D

shayne-fletcher commented 3 years ago

Thanks for reporting this bug!