Re: GHC (API?) question: GHC Core for Base libraries

2018-12-03 Thread Brandon Allbery
The problem here is that you're using a stage 1 build, and stage 1 lacks support for the bytecode backend used by TH, plugins, ghci, etc. A base build with a stage 2 compiler should work. On Mon, Dec 3, 2018 at 9:11 PM Bill Hallahan wrote: > Hi, > > I'm writing a program analyzer that operates

Re: GHC (API?) question: GHC Core for Base libraries

2018-12-03 Thread Shao, Cheng
Hi, Joachim Breitner's veggies(https://github.com/nomeata/veggies) project is a good example of using a vanilla ghc installation to compile standard libraries like base. On Tue, Dec 4, 2018, 10:11 AM Bill Hallahan wrote: > Hi, > > I'm writing a program analyzer that operates on GHC Core.

Re: Cabal not updated after rebase?

2018-12-03 Thread Richard Eisenberg
Detached HEADs are normal with submodules. (I suppose sentences like that would have gotten me executed several centuries ago...) When I look at https://github.com/mynguyenbmc/ghc/compare/93a3f9070d5d69ad6a28fe94d20c54609698...wip/kind-app

Re: Cabal not updated after rebase?

2018-12-03 Thread My Nguyen
I did not touch Cabal at all, but somehow `git status` in libraries/Cabal is telling me there’s a detached HEAD? I built GHC with a fresh checkout from github, and it worked. But after applying my patch, it doesn’t work anymore. From: Richard Eisenberg Sent:

GHC (API?) question: GHC Core for Base libraries

2018-12-03 Thread Bill Hallahan
Hi, I'm writing a program analyzer that operates on GHC Core. Currently, I'm using the GHC API to get Core from .hs files. I'd like to be able to run this analysis on the standard libraries that come with GHC, which requires getting those as Core. Unfortunately, the build process for these

Re: Cabal not updated after rebase?

2018-12-03 Thread Richard Eisenberg
Did you change the Cabal submodule at all in your work? Maybe it's out of sync somehow... What happens if you build GHC without including your changes? Does it work? > On Dec 3, 2018, at 12:13 PM, My Nguyen wrote: > > Hello, > > Thanks for the suggestion. Unfortunately, the problem persists

Re: Windows test failures

2018-12-03 Thread Phyx
Hi Roland, Thanks for looking into these. > I looked into the testcases 'plugins09', 'plugins10' and 'plugins11' and found the following: GHC-Windows uses BufferMode 'BlockBuffering Nothing', however, GHC-Linux uses 'LineBuffering'. Ah, yes, this isn't technically a Linux vs Windows thing, GHC

Re: Cabal not updated after rebase?

2018-12-03 Thread My Nguyen
Hello, Thanks for the suggestion. Unfortunately, the problem persists :(! My From: Krzysztof Gogolewski Sent: Monday, December 3, 2018 2:46 PM To: My Nguyen Cc: ghc-devs@haskell.org Subject: Re: Cabal not updated after rebase? Hi, Does `git clean -fdx .` in

Re: Cabal not updated after rebase?

2018-12-03 Thread Krzysztof Gogolewski
Hi, Does `git clean -fdx .` in libraries/Cabal help? git clean doesn't go into submodules. -Krzysztof On Mon, Dec 3, 2018 at 6:09 PM My Nguyen wrote: > Hi all, > > > I've finished quite a big rebase and was trying to rebuild, but it failed > with: > > ghc-cabal: Encountered missing

Cabal not updated after rebase?

2018-12-03 Thread My Nguyen
Hi all, I've finished quite a big rebase and was trying to rebuild, but it failed with: ghc-cabal: Encountered missing dependencies: Cabal ==2.5.* I then tried applying my patch on a fresh checkout of GHC and found the reason: libraries/Cabal/Cabal/Distribution/Compat/Prelude.hs:119:1:error:

Re: Windows test failures

2018-12-03 Thread Roland Senn
Hi Tamar, I looked into the testcases 'plugins09', 'plugins10' and 'plugins11' and found the following: GHC-Windows uses BufferMode 'BlockBuffering Nothing', however, GHC-Linux uses 'LineBuffering'. If I add an 'import System.IO' and the line 'liftIO $ hSetBuffering stdout LineBuffer' as first