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 darwin fixes #41120

Merged
merged 3 commits into from May 29, 2018
Merged

GHCJS darwin fixes #41120

merged 3 commits into from May 29, 2018

Conversation

ElvishJerricco
Copy link
Contributor

@ElvishJerricco ElvishJerricco commented May 26, 2018

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@nkaretnikov
Copy link
Contributor

@ElvishJerricco, I just finished building in a pure nix-shell environment with this patch, the standard "Hello, world!" seems to work. Thanks!

@xeji
Copy link
Contributor

xeji commented May 28, 2018

@GrahamcOfBorg build haskell.compiler.ghcjs haskell.compiler.ghcjs82 haskell.compiler.ghcjs84

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: haskell.compiler.ghcjs, haskell.compiler.ghcjs82, haskell.compiler.ghcjs84

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: haskell.compiler.ghcjs, haskell.compiler.ghcjs82, haskell.compiler.ghcjs84

Partial log (click to expand)

cannot build derivation '/nix/store/v3pmv1aaamav4j5k2n34mfrb3xgd0cp8-kan-extensions-5.1.drv': 13 dependencies couldn't be built
cannot build derivation '/nix/store/p4qb7rxq26vxl97ai6ayvmfnlx4jvrvp-wai-extra-3.0.22.0.drv': 27 dependencies couldn't be built
cannot build derivation '/nix/store/vm4ia7dpxr126ym55biai92lphfzkkl5-warp-3.2.22.drv': 18 dependencies couldn't be built
cannot build derivation '/nix/store/i3ndj95p89i1nc36a5mn7mvzas4pnf7x-lens-4.16.1.drv': 34 dependencies couldn't be built
cannot build derivation '/nix/store/bf1zizaqq491kggclfvicvahcbkmakvx-wai-app-static-3.1.6.2.drv': 22 dependencies couldn't be built
cannot build derivation '/nix/store/wx1abkhs17xd9bqi8cajghq55nyv1pyx-yaml-0.8.30.drv': 15 dependencies couldn't be built
cannot build derivation '/nix/store/qhl5nn2xd8kdla1kw1wiflcn7bkdcd4q-wai-websockets-3.0.1.2.drv': 10 dependencies couldn't be built
cannot build derivation '/nix/store/8d1z4zrfsh4l7llkavdwk3irp7f7ak36-ghcjs-8.4.0.1.drv': 51 dependencies couldn't be built
cannot build derivation '/nix/store/w9yw7q9br4bng7jxxz59615jl8lj84ln-ghcjs.drv': 4 dependencies couldn't be built
error: build of '/nix/store/638wgmwbzp0p18xpllzwmih9z80g3pfh-ghcjs.drv', '/nix/store/w9yw7q9br4bng7jxxz59615jl8lj84ln-ghcjs.drv' failed

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: haskell.compiler.ghcjs, haskell.compiler.ghcjs82, haskell.compiler.ghcjs84

Partial log (click to expand)

cannot build derivation '/nix/store/p04r4bkwazpy4niyyam9mx7b15fnqc78-wai-websockets-3.0.1.2.drv': 11 dependencies couldn't be built
cannot build derivation '/nix/store/dkgkwpk4ggd8fwhw0hscn5db083f6dgn-conduit-1.3.0.2.drv': 16 dependencies couldn't be built
cannot build derivation '/nix/store/43295yypfshlaxvb4zcw1xmmb6xhkd7q-ghcjs-8.4.0.1.drv': 51 dependencies couldn't be built
cannot build derivation '/nix/store/js73g59pnkfhcvv5djsbn60hgl45n4c2-kan-extensions-5.1.drv': 13 dependencies couldn't be built
cannot build derivation '/nix/store/iq6kwfb3vl57lhf4j04xq34lpa51whlf-ghcjs.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/a3m6vzk7hkcmbn43idygvnbra4p0xfj6-lens-4.16.1.drv': 36 dependencies couldn't be built
cannot build derivation '/nix/store/b7g2xa9rir5kxfbg0lpqdrcz7j2jcic5-yaml-0.8.30.drv': 16 dependencies couldn't be built
cannot build derivation '/nix/store/f1cyjixbhkz9i5jyg5xvqv1idb6i289c-ghcjs-8.2.0.1.drv': 54 dependencies couldn't be built
cannot build derivation '/nix/store/2inv3n5zfm70zyhig02drp35r3ak0har-ghcjs.drv': 5 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/2inv3n5zfm70zyhig02drp35r3ak0har-ghcjs.drv', '/nix/store/iq6kwfb3vl57lhf4j04xq34lpa51whlf-ghcjs.drv' failed

@xeji
Copy link
Contributor

xeji commented May 28, 2018

Looks like a lot of dependencies are currently broken.

@ElvishJerricco
Copy link
Contributor Author

Someone broke GHC 8.0.2, which is for some reason used to build jailbreak-cabal for haskell.packages.ghc822 -_-

@xeji
Copy link
Contributor

xeji commented May 28, 2018

So let's wait until GHC 8.0.2 is fixed (#41166)

@xeji
Copy link
Contributor

xeji commented May 29, 2018

@GrahamcOfBorg build haskell.compiler.ghcjs haskell.compiler.ghcjs82 haskell.compiler.ghcjs84

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: haskell.compiler.ghcjs, haskell.compiler.ghcjs82, haskell.compiler.ghcjs84

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: haskell.compiler.ghcjs, haskell.compiler.ghcjs82, haskell.compiler.ghcjs84

Partial log (click to expand)

Installing library in /nix/store/c24dicxyyjxwnhvf9s7d1myk40rkxqy5-ghc-api-ghcjs-8.2.2/lib/ghc-8.2.2/ghc-api-ghcjs-8.2.2
post-installation fixup
strip is /nix/store/r5mcn9vqq80v5pfqp45d7290cis7dwp4-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/c24dicxyyjxwnhvf9s7d1myk40rkxqy5-ghc-api-ghcjs-8.2.2/lib
patching script interpreter paths in /nix/store/c24dicxyyjxwnhvf9s7d1myk40rkxqy5-ghc-api-ghcjs-8.2.2
building of '/nix/store/k0dfv0nhg30vam6gg68ch01slyxgv22i-ghc-api-ghcjs-8.2.2.drv' timed out after 1800 seconds
cannot build derivation '/nix/store/vp8qwfh48vqc2vhl61v8h2cdjpdh7vkk-haddock-api-ghcjs-2.18.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/x5smqiq4w3yh762ypmddz09h7xycnqmf-ghcjs-8.2.0.1.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/pwb4bawf6vlf92dkvp4av0flmgcxpshj-ghcjs.drv': 1 dependencies couldn't be built
error: build of '/nix/store/7pvq3r4sa9svc3md5i416mgnkw0lhmg1-ghcjs.drv', '/nix/store/pwb4bawf6vlf92dkvp4av0flmgcxpshj-ghcjs.drv' failed

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: haskell.compiler.ghcjs, haskell.compiler.ghcjs82, haskell.compiler.ghcjs84

Partial log (click to expand)

patching script interpreter paths in /nix/store/1sywd60cc09ly74ygqn74f01b7vrnch6-wai-websockets-3.0.1.2
checking for references to /build in /nix/store/1sywd60cc09ly74ygqn74f01b7vrnch6-wai-websockets-3.0.1.2...
wrong ELF type
shrinking RPATHs of ELF executables and libraries in /nix/store/flmvyf465ia1j6zy16g1739wqk4rib18-wai-websockets-3.0.1.2-doc
strip is /nix/store/92d2ifxcni4n3zx9s8wnkcjlvnx5ajlc-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/flmvyf465ia1j6zy16g1739wqk4rib18-wai-websockets-3.0.1.2-doc
checking for references to /build in /nix/store/flmvyf465ia1j6zy16g1739wqk4rib18-wai-websockets-3.0.1.2-doc...
cannot build derivation '/nix/store/wqplq25783fwfdfa6y47w7ribf2bh8kn-ghcjs-8.4.0.1.drv': 6 dependencies couldn't be built
cannot build derivation '/nix/store/1gl9qni818fqpk54d9v45g8d9asmp253-ghcjs.drv': 2 dependencies couldn't be built
error: build of '/nix/store/1gl9qni818fqpk54d9v45g8d9asmp253-ghcjs.drv', '/nix/store/cmcwrifc4lip4s84wixx8s8xyifqzfnh-ghcjs.drv' failed

@xeji
Copy link
Contributor

xeji commented May 29, 2018

GHC 8.0.2 is fixed on master but we still have timeouts/failing dependencies on ofborg. I see no point in delaying this rather small change, so let's merge it anyway and see how things work out on Hydra.

@xeji xeji merged commit 7a23f1a into NixOS:master May 29, 2018
@ElvishJerricco
Copy link
Contributor Author

@xeji Thanks :)

orivej added a commit that referenced this pull request May 30, 2018
* master: (30 commits)
  bitlbee: fix build
  git: 2.17.0 -> 2.17.1
  sc-controller: 0.4.2 -> 0.4.3
  zeroc-ice: fix parallel building
  pythonPackages.bsddb3: fix build after 0fd461d
  haskellPackages.hlibgit2: fix build after #28029
  gdk-pixbuf: patch library rpath references on darwin
  virtualbox: fix build after #28029
  GHCJS darwin fixes (#41120)
  neovim-remote: 1.8.6 -> 2.0.5
  messenger-for-desktop: remove (#41224)
  typora: gnome2 cleanup (#41167)
  discord: gnome2 cleanup (#41174)
  skypeforlinux: gnome2 cleanup (#41176)
  wire-desktop: gnome2 cleanup (#41155)
  hyper: gnome2 cleanup (#41170)
  drone: 0.5 -> 0.8.5 (#41200)
  racket: use proper uname, allow for unix sockets
  kytea: fix build after #28029
  yoda: fix build after #28029
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants