
Hi everyone, I'm trying to build the latest 8.1 sources on a Mac running El Capitan. I'm getting an error I'd never seen before and wonder if anyone has any pointers of how I might fix things. I blew away my GHC, re-cloned from github, reconfigured and I still get the same error. The following are the relevant output lines; the problem is that the template-haskell version doesn't seem to match. I'm not sure whether this is coming from the template-haskell in 8.1 or in 8.0.1 (which I'm using to build 8.1), but checking the latter I have version 2.11.0.0 which I assume should be sufficient. John -------------------- Configuring ghc-pkg-6.9... Configuring ghc-8.1... ghc-cabal: Encountered missing dependencies: template-haskell ==2.11.* && ==2.12.0.0 make[1]: *** [compiler/stage1/package-data.mk] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [all] Error 2 ---------------- internal-229:~/haskell/ghc> cabal update (git)-[master] Downloading the latest package list from hackage.haskell.org Skipping download: local and remote files match. internal-229:~/haskell/ghc> cabal install template-haskell (git)-[master] Resolving dependencies... All the requested packages are already installed: template-haskell-2.11.0.0 Use --reinstall if you want to reinstall anyway.

Looking more closely at the log output it appears there were some errors or
at least warnings earlier in the output, including for template haskell, so
I've attached the full output. I'll continue to investigate on my machine,
but again if anyone has pointers I'd appreciate it. I've build 8.1 many
times and never seen this problem before.
John
On Sat, Nov 12, 2016 at 2:48 PM, John Leo
Hi everyone,
I'm trying to build the latest 8.1 sources on a Mac running El Capitan. I'm getting an error I'd never seen before and wonder if anyone has any pointers of how I might fix things. I blew away my GHC, re-cloned from github, reconfigured and I still get the same error.
The following are the relevant output lines; the problem is that the template-haskell version doesn't seem to match. I'm not sure whether this is coming from the template-haskell in 8.1 or in 8.0.1 (which I'm using to build 8.1), but checking the latter I have version 2.11.0.0 which I assume should be sufficient.
John
--------------------
Configuring ghc-pkg-6.9... Configuring ghc-8.1... ghc-cabal: Encountered missing dependencies: template-haskell ==2.11.* && ==2.12.0.0 make[1]: *** [compiler/stage1/package-data.mk] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [all] Error 2
----------------
internal-229:~/haskell/ghc> cabal update
(git)-[master] Downloading the latest package list from hackage.haskell.org Skipping download: local and remote files match. internal-229:~/haskell/ghc> cabal install template-haskell
(git)-[master] Resolving dependencies... All the requested packages are already installed: template-haskell-2.11.0.0 Use --reinstall if you want to reinstall anyway.

I’ve seen a very recent commit that mentioned bumping a TH bound. Maybe pull, make clean and try again?
Simon
From: ghc-devs [mailto:ghc-devs-bounces@haskell.org] On Behalf Of John Leo
Sent: 12 November 2016 22:48
To: ghc-devs

That's exactly what I did--in fact clone a fresh GHC and try again, but no
luck. I attached the full logs in my second message, which have the
details--let me know if the attachment is not readable. Thanks very much
for your help.
John
On Sat, Nov 12, 2016 at 3:16 PM, Simon Peyton Jones
I’ve seen a very recent commit that mentioned bumping a TH bound. Maybe pull, make clean and try again?
Simon
*From:* ghc-devs [mailto:ghc-devs-bounces@haskell.org] *On Behalf Of *John Leo *Sent:* 12 November 2016 22:48 *To:* ghc-devs
*Subject:* build fail with latest 8.1 sources Hi everyone,
I'm trying to build the latest 8.1 sources on a Mac running El Capitan. I'm getting an error I'd never seen before and wonder if anyone has any pointers of how I might fix things. I blew away my GHC, re-cloned from github, reconfigured and I still get the same error.
The following are the relevant output lines; the problem is that the template-haskell version doesn't seem to match. I'm not sure whether this is coming from the template-haskell in 8.1 or in 8.0.1 (which I'm using to build 8.1), but checking the latter I have version 2.11.0.0 which I assume should be sufficient.
John
--------------------
Configuring ghc-pkg-6.9...
Configuring ghc-8.1...
ghc-cabal: Encountered missing dependencies:
template-haskell ==2.11.* && ==2.12.0.0
make[1]: *** [compiler/stage1/package-data.mk https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpackage-data.mk&data=02%7C01%7Csimonpj%40microsoft.com%7C7b7ee9373fa64fc1ac2808d40b4dfac0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636145876931712578&sdata=5iOJpziGOFYjoBCfwjB7UQ%2BmxFV5DRsiYmjYEANVXrM%3D&reserved=0] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
----------------
internal-229:~/haskell/ghc> cabal update
(git)-[master]
Downloading the latest package list from hackage.haskell.org https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fhackage.haskell.org&data=02%7C01%7Csimonpj%40microsoft.com%7C7b7ee9373fa64fc1ac2808d40b4dfac0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636145876931722586&sdata=aCtA6QCLlh%2BE1mus%2B1xJobpNi7K4DLZ8wYckmfEryLU%3D&reserved=0
Skipping download: local and remote files match.
internal-229:~/haskell/ghc> cabal install template-haskell
(git)-[master]
Resolving dependencies...
All the requested packages are already installed:
template-haskell-2.11.0.0
Use --reinstall if you want to reinstall anyway.

I just pulled again and picked up a more recent patch by Ben Gamari:
https://github.com/ghc/ghc/commit/ca1b986074757efff755c33c7f9a62c7eae43c7f
This seems to have fixed the problem. The commit says 8 hours ago but for
some reason I didn't pick it up 2 or 3 hours ago when I last pulled.
John
On Sat, Nov 12, 2016 at 3:19 PM, John Leo
That's exactly what I did--in fact clone a fresh GHC and try again, but no luck. I attached the full logs in my second message, which have the details--let me know if the attachment is not readable. Thanks very much for your help.
John
On Sat, Nov 12, 2016 at 3:16 PM, Simon Peyton Jones
wrote:
I’ve seen a very recent commit that mentioned bumping a TH bound. Maybe pull, make clean and try again?
Simon
*From:* ghc-devs [mailto:ghc-devs-bounces@haskell.org] *On Behalf Of *John Leo *Sent:* 12 November 2016 22:48 *To:* ghc-devs
*Subject:* build fail with latest 8.1 sources Hi everyone,
I'm trying to build the latest 8.1 sources on a Mac running El Capitan. I'm getting an error I'd never seen before and wonder if anyone has any pointers of how I might fix things. I blew away my GHC, re-cloned from github, reconfigured and I still get the same error.
The following are the relevant output lines; the problem is that the template-haskell version doesn't seem to match. I'm not sure whether this is coming from the template-haskell in 8.1 or in 8.0.1 (which I'm using to build 8.1), but checking the latter I have version 2.11.0.0 which I assume should be sufficient.
John
--------------------
Configuring ghc-pkg-6.9...
Configuring ghc-8.1...
ghc-cabal: Encountered missing dependencies:
template-haskell ==2.11.* && ==2.12.0.0
make[1]: *** [compiler/stage1/package-data.mk https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpackage-data.mk&data=02%7C01%7Csimonpj%40microsoft.com%7C7b7ee9373fa64fc1ac2808d40b4dfac0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636145876931712578&sdata=5iOJpziGOFYjoBCfwjB7UQ%2BmxFV5DRsiYmjYEANVXrM%3D&reserved=0] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
----------------
internal-229:~/haskell/ghc> cabal update
(git)-[master]
Downloading the latest package list from hackage.haskell.org https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fhackage.haskell.org&data=02%7C01%7Csimonpj%40microsoft.com%7C7b7ee9373fa64fc1ac2808d40b4dfac0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636145876931722586&sdata=aCtA6QCLlh%2BE1mus%2B1xJobpNi7K4DLZ8wYckmfEryLU%3D&reserved=0
Skipping download: local and remote files match.
internal-229:~/haskell/ghc> cabal install template-haskell
(git)-[master]
Resolving dependencies...
All the requested packages are already installed:
template-haskell-2.11.0.0
Use --reinstall if you want to reinstall anyway.

John Leo
I just pulled again and picked up a more recent patch by Ben Gamari: https://github.com/ghc/ghc/commit/ca1b986074757efff755c33c7f9a62c7eae43c7f
This seems to have fixed the problem. The commit says 8 hours ago but for some reason I didn't pick it up 2 or 3 hours ago when I last pulled.
Right, sorry John, that was my fault. I bumped the template-haskell version without bumping the bounds of the pacakges that depend upon it. Yet another reason why no change is too small for CI :) Cheers, - Ben
John
On Sat, Nov 12, 2016 at 3:19 PM, John Leo
wrote: That's exactly what I did--in fact clone a fresh GHC and try again, but no luck. I attached the full logs in my second message, which have the details--let me know if the attachment is not readable. Thanks very much for your help.
John
On Sat, Nov 12, 2016 at 3:16 PM, Simon Peyton Jones
wrote:
I’ve seen a very recent commit that mentioned bumping a TH bound. Maybe pull, make clean and try again?
Simon
*From:* ghc-devs [mailto:ghc-devs-bounces@haskell.org] *On Behalf Of *John Leo *Sent:* 12 November 2016 22:48 *To:* ghc-devs
*Subject:* build fail with latest 8.1 sources Hi everyone,
I'm trying to build the latest 8.1 sources on a Mac running El Capitan. I'm getting an error I'd never seen before and wonder if anyone has any pointers of how I might fix things. I blew away my GHC, re-cloned from github, reconfigured and I still get the same error.
The following are the relevant output lines; the problem is that the template-haskell version doesn't seem to match. I'm not sure whether this is coming from the template-haskell in 8.1 or in 8.0.1 (which I'm using to build 8.1), but checking the latter I have version 2.11.0.0 which I assume should be sufficient.
John
--------------------
Configuring ghc-pkg-6.9...
Configuring ghc-8.1...
ghc-cabal: Encountered missing dependencies:
template-haskell ==2.11.* && ==2.12.0.0
make[1]: *** [compiler/stage1/package-data.mk https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpackage-data.mk&data=02%7C01%7Csimonpj%40microsoft.com%7C7b7ee9373fa64fc1ac2808d40b4dfac0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636145876931712578&sdata=5iOJpziGOFYjoBCfwjB7UQ%2BmxFV5DRsiYmjYEANVXrM%3D&reserved=0] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
----------------
internal-229:~/haskell/ghc> cabal update
(git)-[master]
Downloading the latest package list from hackage.haskell.org https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fhackage.haskell.org&data=02%7C01%7Csimonpj%40microsoft.com%7C7b7ee9373fa64fc1ac2808d40b4dfac0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636145876931722586&sdata=aCtA6QCLlh%2BE1mus%2B1xJobpNi7K4DLZ8wYckmfEryLU%3D&reserved=0
Skipping download: local and remote files match.
internal-229:~/haskell/ghc> cabal install template-haskell
(git)-[master]
Resolving dependencies...
All the requested packages are already installed:
template-haskell-2.11.0.0
Use --reinstall if you want to reinstall anyway.
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
participants (3)
-
Ben Gamari
-
John Leo
-
Simon Peyton Jones