
Hey Devs, I'm having trouble building the head of the ghc-8.6 branch (`26a7f850d1`) on my Arch Linux machine. The essence of the error is this as follows, though the full result of make (to the point of error) is attached. ``` Configuring template-haskell-2.14.0.0... ghc-cabal: Encountered missing dependencies: ghc-boot-th ==8.6.* && ==8.7 ``` The output of configure is as follows: ``` ---------------------------------------------------------------------- Configure completed successfully. Building GHC version : 8.7.20180730 Git commit id : 26a7f850d15b91ad68d1e28d467faba00bb79144 Build platform : x86_64-unknown-linux Host platform : x86_64-unknown-linux Target platform : x86_64-unknown-linux Bootstrapping using : /usr/bin/ghc which is version : 8.4.3 Using (for bootstrapping) : gcc Using gcc : gcc which is version : 8.1.1 Building a cross compiler : NO Unregisterised : NO hs-cpp : gcc hs-cpp-flags : -E -undef -traditional ar : ar ld : ld.gold nm : nm libtool : libtool objdump : objdump ranlib : ranlib windres : dllwrap : genlib : Happy : /home/ara/.local/bin/happy (1.19.9) Alex : /usr/bin/alex (3.2.4) Perl : /usr/bin/perl sphinx-build : /usr/bin/sphinx-build xelatex : /usr/bin/xelatex Using LLVM tools clang : clang llc : opt : HsColour : /usr/bin/HsColour Tools to build Sphinx HTML documentation available: YES Tools to build Sphinx PDF documentation available: YES ---------------------------------------------------------------------- ``` Any help would be most appreciated. Best, _ara

Are you starting from a completely clean tree? (achieved by `make
maintainer-clean`)?
On Tue, Jul 31, 2018 at 3:34 PM, Ara Adkins
Hey Devs,
I'm having trouble building the head of the ghc-8.6 branch (`26a7f850d1`) on my Arch Linux machine. The essence of the error is this as follows, though the full result of make (to the point of error) is attached.
``` Configuring template-haskell-2.14.0.0... ghc-cabal: Encountered missing dependencies: ghc-boot-th ==8.6.* && ==8.7 ```
The output of configure is as follows: ``` ---------------------------------------------------------------------- Configure completed successfully.
Building GHC version : 8.7.20180730 Git commit id : 26a7f850d15b91ad68d1e28d467faba00bb79144
Build platform : x86_64-unknown-linux Host platform : x86_64-unknown-linux Target platform : x86_64-unknown-linux
Bootstrapping using : /usr/bin/ghc which is version : 8.4.3
Using (for bootstrapping) : gcc Using gcc : gcc which is version : 8.1.1 Building a cross compiler : NO Unregisterised : NO hs-cpp : gcc hs-cpp-flags : -E -undef -traditional ar : ar ld : ld.gold nm : nm libtool : libtool objdump : objdump ranlib : ranlib windres : dllwrap : genlib : Happy : /home/ara/.local/bin/happy (1.19.9) Alex : /usr/bin/alex (3.2.4) Perl : /usr/bin/perl sphinx-build : /usr/bin/sphinx-build xelatex : /usr/bin/xelatex
Using LLVM tools clang : clang llc : opt : HsColour : /usr/bin/HsColour
Tools to build Sphinx HTML documentation available: YES Tools to build Sphinx PDF documentation available: YES ---------------------------------------------------------------------- ```
Any help would be most appreciated.
Best, _ara
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

When something like this fails, I usually do: make maintainer-clean git submodule update --init ./boot ./configure make -j On 31/07/2018 16:34, Ara Adkins wrote:
Hey Devs,
I'm having trouble building the head of the ghc-8.6 branch (`26a7f850d1`) on my Arch Linux machine. The essence of the error is this as follows, though the full result of make (to the point of error) is attached.
``` Configuring template-haskell-2.14.0.0... ghc-cabal: Encountered missing dependencies: ghc-boot-th ==8.6.* && ==8.7 ```
The output of configure is as follows: ``` ---------------------------------------------------------------------- Configure completed successfully.
Building GHC version : 8.7.20180730 Git commit id : 26a7f850d15b91ad68d1e28d467faba00bb79144
Build platform : x86_64-unknown-linux Host platform : x86_64-unknown-linux Target platform : x86_64-unknown-linux
Bootstrapping using : /usr/bin/ghc which is version : 8.4.3
Using (for bootstrapping) : gcc Using gcc : gcc which is version : 8.1.1 Building a cross compiler : NO Unregisterised : NO hs-cpp : gcc hs-cpp-flags : -E -undef -traditional ar : ar ld : ld.gold nm : nm libtool : libtool objdump : objdump ranlib : ranlib windres : dllwrap : genlib : Happy : /home/ara/.local/bin/happy (1.19.9) Alex : /usr/bin/alex (3.2.4) Perl : /usr/bin/perl sphinx-build : /usr/bin/sphinx-build xelatex : /usr/bin/xelatex
Using LLVM tools clang : clang llc : opt : HsColour : /usr/bin/HsColour
Tools to build Sphinx HTML documentation available: YES Tools to build Sphinx PDF documentation available: YES ---------------------------------------------------------------------- ```
Any help would be most appreciated.
Best, _ara
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Thanks all for the insight so far!
Doing that has got me further along in the build, but it is still failing.
Amongst the output of `make` it seems that the offending error is as
follows:
```
happy:
/home/ara/.stack/snapshots/x86_64-linux-tinfo6-nopie/nightly-2018-02-20/8.2.2/share/x86_64-linux-ghc-8.2.2/happy-1.19.9/HappyTemplate-arrays-coerce:
openFile: does not exist (No such file or directory)
make[1]: *** [utils/genprimopcode/ghc.mk:19:
utils/genprimopcode/dist/build/Parser.hs] Error 1
make[1]: *** Waiting for unfinished jobs....
```
Any further thoughts appreciated, as always! <3
Best,
_ara
On Tue, 31 Jul 2018 at 16:06, Ben Gamari
Sylvain Henry
writes: When something like this fails, I usually do:
make maintainer-clean git submodule update --init ./boot ./configure make -j
Right, it sounds like there are some stale files. I'd bet this fixes it.
Cheers,
- Ben

Ara Adkins
Thanks all for the insight so far!
Doing that has got me further along in the build, but it is still failing. Amongst the output of `make` it seems that the offending error is as follows: ``` happy: /home/ara/.stack/snapshots/x86_64-linux-tinfo6-nopie/nightly-2018-02-20/8.2.2/share/x86_64-linux-ghc-8.2.2/happy-1.19.9/HappyTemplate-arrays-coerce: openFile: does not exist (No such file or directory)
It looks like your happy installation is incomplete. Is it possible you deleted that file? If not, it sounds like a stack issue. Perhaps try installing happy with cabal or your system's package manager. Cheers, - Ben

Hi Ben,
That was spot on! I guess there's something wrong with the stack install of
happy - using the one installed from the system package manager worked
perfectly.
Best,
_ara
On Tue, 31 Jul 2018 at 16:56, Ben Gamari
Ara Adkins
writes: Thanks all for the insight so far!
Doing that has got me further along in the build, but it is still failing. Amongst the output of `make` it seems that the offending error is as follows: ``` happy:
/home/ara/.stack/snapshots/x86_64-linux-tinfo6-nopie/nightly-2018-02-20/8.2.2/share/x86_64-linux-ghc-8.2.2/happy-1.19.9/HappyTemplate-arrays-coerce:
openFile: does not exist (No such file or directory)
It looks like your happy installation is incomplete. Is it possible you deleted that file? If not, it sounds like a stack issue. Perhaps try installing happy with cabal or your system's package manager.
Cheers,
- Ben
participants (4)
-
Ara Adkins
-
Ben Gamari
-
Matthew Pickering
-
Sylvain Henry