reflex-frp / reflex-platform

A curated package set and set of tools that let you build Haskell packages so they can run on a variety of platforms. reflex-platform is built on top of the nix package manager.
https://reflex-frp.org
BSD 3-Clause "New" or "Revised" License
720 stars 164 forks source link

``./try-reflex`` fails on mac 10.12.4 #113

Closed yihuang closed 7 years ago

yihuang commented 7 years ago

I have ghc 8.0.1.20161117 installed, not sure what pre-requirements should I have.

./try-reflex.log :

Command:  ./try-reflex
If you have any trouble with this script, please submit an issue at https://github.com/reflex-frp/reflex-platform/issues
Entering the reflex sandbox...
building path(s) ‘/nix/store/gk0g43mi0v729nhj19vjha9pdnxwxdci-stage2.nix’
builder for ‘/nix/store/7k1m1vlgrn0w3imyw9sd99x9i0wpcklg-stage2.nix.drv’ failed due to signal 4 (Illegal instruction: 4)
error: build of ‘/nix/store/7k1m1vlgrn0w3imyw9sd99x9i0wpcklg-stage2.nix.drv’ failed
(use ‘--show-trace’ to show detailed location information)
building path(s) ‘/nix/store/gk0g43mi0v729nhj19vjha9pdnxwxdci-stage2.nix’
builder for ‘/nix/store/7k1m1vlgrn0w3imyw9sd99x9i0wpcklg-stage2.nix.drv’ failed due to signal 4 (Illegal instruction: 4)
error: build of ‘/nix/store/7k1m1vlgrn0w3imyw9sd99x9i0wpcklg-stage2.nix.drv’ failed
(use ‘--show-trace’ to show detailed location information)
It looks like a problem occurred.  Please submit an issue at https://github.com/reflex-frp/reflex-platform/issues - include ./try-reflex.log to provide more information

I try to run nix-build by hand with --show-trace:

$ nix-build shell.nix --drv-link gc-roots/shell.drx --indirect --add-root "gc-roots/shell.out" --show-trace
building path(s) ‘/nix/store/gk0g43mi0v729nhj19vjha9pdnxwxdci-stage2.nix’
builder for ‘/nix/store/7k1m1vlgrn0w3imyw9sd99x9i0wpcklg-stage2.nix.drv’ failed due to signal 4 (Illegal instruction: 4)
error: while evaluating the attribute ‘nativeBuildInputs’ of the derivation ‘shell’ at /nix/store/5kqp52f7p2mbhlpp8m7bs83j8wz0czw4-nixpkgs-channels-09c3d04b0e53d65f60569fc01698decff3a657a3-src/pkgs/build-support/trivial-builders.nix:10:14:
while evaluating ‘reflexEnv’ at .../src/reflex-platform/default.nix:503:15, called from undefined position:
while evaluating ‘overrideForGhcjs’ at .../src/reflex-platform/default.nix:304:22, called from .../src/reflex-platform/default.nix:400:11:
while evaluating ‘extendHaskellPackages’ at .../src/reflex-platform/default.nix:102:29, called from .../src/reflex-platform/default.nix:400:29:
while evaluating ‘makeRecursivelyOverridable’ at .../src/reflex-platform/default.nix:78:37, called from .../src/reflex-platform/default.nix:102:46:
while evaluating ‘callPackageWith’ at /nix/store/5kqp52f7p2mbhlpp8m7bs83j8wz0czw4-nixpkgs-channels-09c3d04b0e53d65f60569fc01698decff3a657a3-src/lib/customisation.nix:93:35, called from .../src/reflex-platform/default.nix:395:19:
while evaluating ‘makeOverridable’ at /nix/store/5kqp52f7p2mbhlpp8m7bs83j8wz0czw4-nixpkgs-channels-09c3d04b0e53d65f60569fc01698decff3a657a3-src/lib/customisation.nix:54:24, called from /nix/store/5kqp52f7p2mbhlpp8m7bs83j8wz0czw4-nixpkgs-channels-09c3d04b0e53d65f60569fc01698decff3a657a3-src/lib/customisation.nix:97:8:
while evaluating anonymous function at /nix/store/5kqp52f7p2mbhlpp8m7bs83j8wz0czw4-nixpkgs-channels-09c3d04b0e53d65f60569fc01698decff3a657a3-src/pkgs/development/haskell-modules/default.nix:1:1, called from /nix/store/5kqp52f7p2mbhlpp8m7bs83j8wz0czw4-nixpkgs-channels-09c3d04b0e53d65f60569fc01698decff3a657a3-src/lib/customisation.nix:56:12:
while evaluating ‘fix'’ at /nix/store/5kqp52f7p2mbhlpp8m7bs83j8wz0czw4-nixpkgs-channels-09c3d04b0e53d65f60569fc01698decff3a657a3-src/lib/trivial.nix:35:10, called from /nix/store/5kqp52f7p2mbhlpp8m7bs83j8wz0czw4-nixpkgs-channels-09c3d04b0e53d65f60569fc01698decff3a657a3-src/pkgs/development/haskell-modules/default.nix:102:3:
while evaluating ‘extends’ at /nix/store/5kqp52f7p2mbhlpp8m7bs83j8wz0czw4-nixpkgs-channels-09c3d04b0e53d65f60569fc01698decff3a657a3-src/lib/trivial.nix:54:24, called from /nix/store/5kqp52f7p2mbhlpp8m7bs83j8wz0czw4-nixpkgs-channels-09c3d04b0e53d65f60569fc01698decff3a657a3-src/lib/trivial.nix:35:21:
while evaluating ‘extends’ at /nix/store/5kqp52f7p2mbhlpp8m7bs83j8wz0czw4-nixpkgs-channels-09c3d04b0e53d65f60569fc01698decff3a657a3-src/lib/trivial.nix:54:24, called from /nix/store/5kqp52f7p2mbhlpp8m7bs83j8wz0czw4-nixpkgs-channels-09c3d04b0e53d65f60569fc01698decff3a657a3-src/lib/trivial.nix:54:42:
while evaluating anonymous function at /nix/store/5kqp52f7p2mbhlpp8m7bs83j8wz0czw4-nixpkgs-channels-09c3d04b0e53d65f60569fc01698decff3a657a3-src/pkgs/development/haskell-modules/configuration-ghcjs.nix:10:7, called from /nix/store/5kqp52f7p2mbhlpp8m7bs83j8wz0czw4-nixpkgs-channels-09c3d04b0e53d65f60569fc01698decff3a657a3-src/lib/trivial.nix:54:67:
while evaluating the attribute ‘ghc.mkStage2’ at .../src/reflex-platform/default.nix:366:5:
build of ‘/nix/store/7k1m1vlgrn0w3imyw9sd99x9i0wpcklg-stage2.nix.drv’ failed
yihuang commented 7 years ago

I've seen same issue had been opened as #79 , I'm closing this.