haskell.nix icon indicating copy to clipboard operation
haskell.nix copied to clipboard

ghcjs 8.8.4 fails on macOS

Open dhess opened this issue 3 years ago • 3 comments

ghcjs 8.8.4 used to build fine on macOS (as recently as 551407d11cd19d5e09e86c876e2919c40e779bb9), but as of f79152ad394b2a6eb2e39a65df573f1a922658b5, at least, it now fails:

Preprocessing executable 'ghcjs-dumparchive' for ghcjs-8.8.4..
Building executable 'ghcjs-dumparchive' for ghcjs-8.8.4..
[1 of 1] Compiling Main             ( utils/dumpArchive.hs, dist/build/ghcjs-dumparchive/ghcjs-dumparchive-tmp/Main.o )
Linking dist/build/ghcjs-dumparchive/ghcjs-dumparchive ...

<no location info>: error:
    <command line>: can't load framework: CoreFoundation (not found)

error: builder for '/nix/store/n1y0qdlgwbdx9cmrbpyn078mjqbzkmyg-ghcjs-exe-ghcjs-boot-8.8.4.drv' failed with exit code 1;
       last 10 log lines:
       > range includes the current package but isn't needed as the current package's
       > library will always be used.
       > building
       > Preprocessing executable 'ghcjs-boot' for ghcjs-8.8.4..
       > Building executable 'ghcjs-boot' for ghcjs-8.8.4..
       > [1 of 1] Compiling Main             ( src-bin/Boot.hs, dist/build/ghcjs-boot/ghcjs-boot-tmp/Main.o )
       >
       > <no location info>: error:
       >     <command line>: can't load framework: CoreFoundation (not found)
       > 
       For full logs, run 'nix log /nix/store/n1y0qdlgwbdx9cmrbpyn078mjqbzkmyg-ghcjs-exe-ghcjs-boot-8.8.4.drv'.
error: 1 dependencies of derivation '/nix/store/dn56cm0i19qsz4gaha7mv1jlxzl6s9x8-ghcjs-8.8.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4dm2l8f3j677cvc9n5zrarn79x5bbxpp-js-unknown-ghcjs-ghc-8.8.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/dkdiswd9ynhkga1ww2c98bknh9x71l85-dummy-data-js-unknown-ghcjs-ghc-8.8.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xj8qsbnk9sfabb8z58xyibpyggpxqwif-dummy-js-unknown-ghcjs-ghc-8.8.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/5b74r3yjcf7hnm57nw9pcdpph1gw6vn6-haskell-project-plan-to-nix-pkgs.drv' failed to build
(use '--show-trace' to show detailed location information)

dhess avatar Aug 31 '21 16:08 dhess

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 28 '22 16:09 stale[bot]

~~I think this is an aarch64-darwin issue. x86_64-darwin seems ok.~~ I tried to build ghcjs 8.6.5 on ~~aarch64~~ x86_64-darwin and got:

$ nix-build -E '(import ./. {}).pkgs-unstable.pkgsCross.ghcjs.haskell-nix.tool "ghc865" "hello" {}'
...
Linking dist/build/private-ghcjs-haddock/private-ghcjs-haddock ...
buildPhase completed in 35 seconds
installing
Installing executable private-ghcjs-haddock in /nix/store/vw538gbv2dvscfsq3n4biz0wgkayb8g7-ghcjs-exe-private-ghcjs-haddock-8.6.5/libexec/x86_64-osx-ghc-8.6.5/ghcjs-8.6.5
Warning: The directory
/nix/store/vw538gbv2dvscfsq3n4biz0wgkayb8g7-ghcjs-exe-private-ghcjs-haddock-8.6.5/libexec/x86_64-osx-ghc-8.6.5/ghcjs-8.6.5
is not in the system search path.
post-installation fixup
patching script interpreter paths in /nix/store/vw538gbv2dvscfsq3n4biz0wgkayb8g7-ghcjs-exe-private-ghcjs-haddock-8.6.5
patching script interpreter paths in /nix/store/3wy9gamzmlj172pbb590i7yc6m5l49ch-ghcjs-exe-private-ghcjs-haddock-8.6.5-data
running install tests
no Makefile or custom installCheckPhase, doing nothing

<no location info>: error:
    <command line>: can't load framework: CoreFoundation (not found)

error: builder for '/nix/store/h4dflgz2vnv09iqxfyr5nin64k3qlsvh-ghcjs-exe-ghcjs-boot-8.6.5.drv' failed with exit code 1```

hamishmack avatar Oct 03 '22 04:10 hamishmack

Oh no! That was a x86_64-darwin build (8.6.5 will probably never work on aarch64_darwin).

hamishmack avatar Oct 03 '22 04:10 hamishmack