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

GHCJS failing to build on x86_64-linux #95931

Closed
dhruvio opened this issue Aug 21, 2020 · 8 comments
Closed

GHCJS failing to build on x86_64-linux #95931

dhruvio opened this issue Aug 21, 2020 · 8 comments

Comments

@dhruvio
Copy link
Contributor

dhruvio commented Aug 21, 2020

Describe the bug
Unable to build GHCJS on my x86_64-linux machine when building against the package set from NixOS/nixpkgs-channels 1d80180. The GHCJS Nix definition is the same as HEAD on master.

To Reproduce
Steps to reproduce the behaviour:

# On an x86_64-linux machine:
nix-build -A haskell.compiler.ghcjs <path_to_nixpkgs>

Expected behaviour
Successfully builds GHCJS and creates result.

Actual behaviour
The build fails, and the following error is emitted to the terminal:

error: Package ‘ghcjs-8.6.0.1’ in /nix/store/a6wqbwdpls8b04ylz98b9cd8x9nww9h5-source/pkgs/development/compilers/ghcjs-ng/default.nix:66 is not supported on ‘x86_64-linux’, refusing to evaluate.

Notify maintainers
@ElvishJerricco

Metadata
Note that I am building GHCJS against NixOS/nixpkgs-channels commit: 1d80180.

 - system: `"x86_64-linux"`
 - host os: `Linux 5.6.18, NixOS, 20.03.2611.bb8f0cc2279 (Markhor)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.6`
 - channels(root): `"nixos-20.03.2611.bb8f0cc2279"`
 - channels(dd): `"nixos-17.09-17.09.3269.14f9ee66e63"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@dhruvio
Copy link
Contributor Author

dhruvio commented Aug 21, 2020

Looks like this is the commit that results in this regression: e037eb4

cc @peti

@maralorn
Copy link
Member

Well, the regression here happened much earlier, that commit only admitted it.

@cdepillabout
Copy link
Member

@dhruvio I don't think any of the three of us that regularly maintain the Haskell infrastructure here in Nixpkgs uses GHCJS, so you may have to dig into this if you'd like it fixed.

Alternatively, you could try asking for help on the NixOS Discourse: https://discourse.nixos.org/

@dhruvio
Copy link
Contributor Author

dhruvio commented Aug 23, 2020

Thanks, @cdepillabout and @maralorn. I'm not as experienced with GHCJS, but will try looking into it.

@dhruvio
Copy link
Contributor Author

dhruvio commented Aug 23, 2020

Also wanted to share, when I try building haskell.compiler.ghcjs.overrideAttrs (old: { meta = {}; }) (to circumvent the broken and platforms config), nix-build simply outputs nothing and hangs. Not sure how to debug this; any help would be appreciated.

EDIT: Please ignore this comment, I left it running for a while and it eventually started building. I can now debug it.

@dhruvio
Copy link
Contributor Author

dhruvio commented Aug 24, 2020

So, I've figured out the problem, and managed to get ghcjs building locally. Going to submit a PR shortly.

dhruvio added a commit to dhruvio/nixpkgs that referenced this issue Aug 24, 2020
@dhruvio
Copy link
Contributor Author

dhruvio commented Aug 24, 2020

PR is up: #96141 #96193

dhruvio added a commit to dhruvio/nixpkgs that referenced this issue Aug 24, 2020
@cdepillabout
Copy link
Member

Closed by #96193.

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

No branches or pull requests

4 participants