Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing (or bad) header file: ghc/utils/unlit/fs.h #783

Open
danwdart opened this issue May 1, 2020 · 6 comments
Open

Missing (or bad) header file: ghc/utils/unlit/fs.h #783

danwdart opened this issue May 1, 2020 · 6 comments

Comments

@danwdart
Copy link

danwdart commented May 1, 2020

Following the instructions on the 8.8 branch using 8.8, despite the --local-bin-dir option not working in stack, I get:

Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.2: Missing dependency on a foreign
library:             
* Missing (or bad) header file: ghc/utils/unlit/fs.h

This seems to have been taken out from ghc 2 years ago at ghc/ghc@4de585a#diff-cb0536dc6dae54d28ea6f9f45caf033d - which breaks the build.

Ta

@yobson
Copy link

yobson commented Jan 9, 2021

Try running utils/makePackages.sh first. That got me past that problem.

@danwdart
Copy link
Author

I tried that but it only helps me on 8.6, not 8.8.

@yobson
Copy link

yobson commented Jan 10, 2021

Well that is so strange. Did you change the branch before or after submoduling? I don't know if the order matters

@danwdart
Copy link
Author

danwdart commented Jan 10, 2021

I cloned as the branch so didn't need to change it.
Here's my old version trying to fix headers by re-cloning newer versions of dependencies, as a Dockerfile:

https://github.com/danwdart/dockers/blob/master/ghcjs/8.8/Dockerfile

(although I'd prefer it as nix now, but one step at a time)

Edit: it dies at stack install stage, and don't even think of using Docker Hub, it doesn't provide enough memory :p

@yobson
Copy link

yobson commented Jan 16, 2021

I've just got GHCJS 8.8 to build. My method was:

$ [enstall emsdk etc]
$ git clone https://github.com/ghcjs/ghcjs.git
$ cd ghcjs
$ git branch ghc-8.8
$ git submodule update --init --recursive
$ ./utils/makePackages.sh
$ cabal v2-install --overwrite-policy=always --install-method=copy --installdir=inplace/bin

Now I lie a little bit. I had to change 3 file in ghc to get the build to finish. But one step at a time!

@danwdart
Copy link
Author

I think that's the critical bit we're after :p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants