
Hi ghc devs, I'm trying to build recent master (579bb766) on macOS Sierra but make install fails as follows: "/usr/local/ghc/ghc-HEAD/lib/ghc-8.3.20170426/bin/ghc-pkg" --force --global-package-db "/usr/local/ghc/ghc-HEAD/lib/ghc-8.3.20170426/package.conf.d" update rts/dist/package.conf.install Reading package info from "rts/dist/package.conf.install" ... done. : Warning: Unrecognized field exposed-modules on line 708 : Warning: Unrecognized field key on line 703 : Warning: Unrecognized field id on line 702 : Warning: Unrecognized field version on line 701 : Warning: Unrecognized field name on line 700 : invalid package identifier: : missing id field make[1]: *** [install_packages] Error 1 make: *** [install] Error 2 The package.conf.install in question is available here: https://gist.github.com/maoe/2cff85004ef8765937023425c53f2cc7. And my build.mk is here: https://gist.github.com/maoe/caee7b2dfd921def4e95580c202cd664 I can't reproduce this error on Linux. Does anyone know how to fix it? Regards, Mitsutoshi

Mitsutoshi Aoe wrote:
I'm trying to build recent master (579bb766) on macOS Sierra but make install fails as follows:
"/usr/local/ghc/ghc-HEAD/lib/ghc-8.3.20170426/bin/ghc-pkg" --force --global-package-db "/usr/local/ghc/ghc-HEAD/lib/ghc-8.3.20170426/package.conf.d" update rts/dist/package.conf.install Reading package info from "rts/dist/package.conf.install" ... done. : Warning: Unrecognized field exposed-modules on line 708 : Warning: Unrecognized field key on line 703 : Warning: Unrecognized field id on line 702 : Warning: Unrecognized field version on line 701 : Warning: Unrecognized field name on line 700 : invalid package identifier: : missing id field make[1]: *** [install_packages] Error 1 make: *** [install] Error 2
I *think* that may be an issue with using an older version of cabal. It should be 1.24.*. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/

Hi Erik,
Thanks for the info. Is there a way to tell what version of Cabal was used to build GHC? I've tried the latest cabal-install from Hackage and from master on GitHub with no luck. Also the Cabal git submodule in the GHC checkout is pointed to 41f416bc2, which seems to be Cabal-2.0.0.0.
Regards,
Mitsutoshi
On Apr 28, 2017 06:11 +0900, Erik de Castro Lopo
Mitsutoshi Aoe wrote:
I'm trying to build recent master (579bb766) on macOS Sierra but make install fails as follows:
"/usr/local/ghc/ghc-HEAD/lib/ghc-8.3.20170426/bin/ghc-pkg" --force --global-package-db "/usr/local/ghc/ghc-HEAD/lib/ghc-8.3.20170426/package.conf.d" update rts/dist/package.conf.install Reading package info from "rts/dist/package.conf.install" ... done. : Warning: Unrecognized field exposed-modules on line 708 : Warning: Unrecognized field key on line 703 : Warning: Unrecognized field id on line 702 : Warning: Unrecognized field version on line 701 : Warning: Unrecognized field name on line 700 : invalid package identifier: : missing id field make[1]: *** [install_packages] Error 1 make: *** [install] Error 2
I *think* that may be an issue with using an older version of cabal. It should be 1.24.*.
Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/ _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Mitsutoshi Aoe wrote:
Hi Erik,
Thanks for the info. Is there a way to tell what version of Cabal was used to build GHC?
I actually don't think that's relevant.
I've tried the latest cabal-install from Hackage and from master on GitHub with no luck.
Either of those should be fine.
Also the Cabal git submodule in the GHC checkout is pointed to 41f416bc2, which seems to be Cabal-2.0.0.0.
That is correct (and also not relevant). Since you are using the correct version of cabal, my guess at the problem being with the version of cabal is almost certainly wrong. At this point I would suggest doing a "make clean", then running the bootstrap script and configure again before rebuilding. Cheers, Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/

At this point I would suggest doing a "make clean", then running the bootstrap script and configure again before rebuilding.
I just tried building from a clean checkout with the same build.mk.
./boot
./configure --prefix=/usr/local/ghc/ghc-HEAD
make -j4
make install
This resulted in the same error:
"/usr/local/ghc/ghc-HEAD/lib/ghc-8.3.20170428/bin/ghc-pkg" --force --global-package-db "/usr/local/ghc/ghc-HEAD/lib/ghc-8.3.20170428/package.conf.d" update rts/dist/package.conf.install
Reading package info from "rts/dist/package.conf.install" ... done.
: Warning: Unrecognized field exposed-modules on line 708
: Warning: Unrecognized field key on line 703
: Warning: Unrecognized field id on line 702
: Warning: Unrecognized field version on line 701
: Warning: Unrecognized field name on line 700
: invalid package identifier:
: missing id field
make[1]: *** [install_packages] Error 1
make: *** [install] Error 2
My cabal is 2.1.0.0
% cabal --version
cabal-install version 2.1.0.0
compiled using version 2.1.0.0 of the Cabal library
Regards,
Mitsutoshi
On Apr 28, 2017 18:59 +0900, Erik de Castro Lopo
Mitsutoshi Aoe wrote:
Hi Erik,
Thanks for the info. Is there a way to tell what version of Cabal was used to build GHC?
I actually don't think that's relevant.
I've tried the latest cabal-install from Hackage and from master on GitHub with no luck.
Either of those should be fine.
Also the Cabal git submodule in the GHC checkout is pointed to 41f416bc2, which seems to be Cabal-2.0.0.0.
That is correct (and also not relevant).
Since you are using the correct version of cabal, my guess at the problem being with the version of cabal is almost certainly wrong.
At this point I would suggest doing a "make clean", then running the bootstrap script and configure again before rebuilding.
Cheers, Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/ _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
participants (2)
-
Erik de Castro Lopo
-
Mitsutoshi Aoe