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

fails to build ghc #8

Closed
chenyulue opened this issue Jun 21, 2019 · 8 comments
Closed

fails to build ghc #8

chenyulue opened this issue Jun 21, 2019 · 8 comments

Comments

@chenyulue
Copy link

I use nix-env -i ghc to install GHC. However, when compiling Distribution.SPDX.LIcenseId, I get the following error:

[123 of 270] Compiling Distribution.SPDX.LicenseId ( libraries/Cabal/Cabal/Distribution/SPDX/LicenseId.hs, bootstrapping/Distribution/SPDX/LicenseId.o )
utils/genprimopcode/ghc.mk:19: utils/genprimopcode/dist/package-data.mk: No such file or directory
make[1]: *** [utils/ghc-cabal/ghc.mk:56: utils/ghc-cabal/dist/build/tmp/ghc-cabal] Killed
make: *** [Makefile:123: all] Error 2
error (ignored): getting status of '/data/data/com.termux.nix/files/usr/tmp/nix-build-ghc-8.6.4.drv-1/ghc-8.6.4/utils/unlit/fs.c': Operation not permitted
error: cannot unlink '/data/data/com.termux.nix/files/usr/tmp/nix-build-ghc-8.6.4.drv-1/ghc-8.6.4/utils/fs': Directory not empty

I have no idea why this happens and whether it is related to Nix-on-droid or just to GHC.

Could you take some time to look into it when you are free? Thanks!

My android version is 7.1.1

@t184256
Copy link
Collaborator

t184256 commented Jun 21, 2019

Attempted to look into that, but hit an out-of-space error. Just wanted you to know that I'm on it, but it'll take some time.

@bbigras bbigras mentioned this issue Jun 22, 2019
@t184256
Copy link
Collaborator

t184256 commented Jun 23, 2019

Can reproduce under nix-on-droid.

@t184256
Copy link
Collaborator

t184256 commented Jun 23, 2019

By the way, how do you prevent long builds in nix-on-droid from being killed? =)

Building ghc times out even on Hydra (10h) and Hydra got some powerful hardware.

@bbigras
Copy link
Contributor

bbigras commented Jun 25, 2019

Can we use nix-on-droid on the android emulator? I tried and the app crashed (or maybe just exited with an error).

@t184256
Copy link
Collaborator

t184256 commented Jun 25, 2019 via email

@chenyulue
Copy link
Author

@t184256 I re-install the app, and building ghc succeeds.

BTW, on my phone (Meizu Pro 6s) building ghc took about 30 minutes, not as long as 10h. So I don't know your problem that long building is killed. But sometimes flyme os (customized Android by Meizu) can kill nix-on-droid when the screen is locked. So I permit nix-on-droid to run in the background and keep the screen unlocked while building ghc. This may help.

@t184256
Copy link
Collaborator

t184256 commented Jun 28, 2019

I re-install the app, and building ghc succeeds.

I reinstalled the app and ghc just installed without any compilation. O_o

Hydra shows nixos:release-19.03-aarch64 builds now.

Hooray?

@puffnfresh
Copy link

Yeah I had no problem with GHC. Should close this.

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

4 participants