| 22 Oct 2025 |
magic_rb | hm, im getting this from nixpkgs:
> [55 of 73] Compiling JavaScript.Web.Canvas.ImageData ( JavaScript/Web/Canvas/ImageData.hs, dist/build/JavaScript/Web/Canvas/ImageData.o )
> [56 of 73] Compiling JavaScript.Web.Canvas ( JavaScript/Web/Canvas.hs, dist/build/JavaScript/Web/Canvas.o )ipt/Web/Canvas/Internal.o )
> [57 of 73] Compiling JavaScript.Web.Canvas.TextMetrics ( JavaScript/Web/Canvas/TextMetrics.hs, dist/build/JavaScript/Web/Canvas/TextMetrics.o )
> [58 of 73] Compiling JavaScript.Web.CloseEvent.Internal ( JavaScript/Web/CloseEvent/Internal.hs, dist/build/JavaScript/Web/CloseEvent/Internal.o )
> [59 of 73] Compiling JavaScript.Web.CloseEvent ( JavaScript/Web/CloseEvent.hs, dist/build/JavaScript/Web/CloseEvent.o )ionFrame.o )
> [60 of 73] Compiling JavaScript.Web.ErrorEvent.Internal ( JavaScript/Web/ErrorEvent/Internal.hs, dist/build/JavaScript/Web/ErrorEvent/Internal.o )
> [61 of 73] Compiling JavaScript.Web.ErrorEvent ( JavaScript/Web/ErrorEvent.hs, dist/build/JavaScript/Web/ErrorEvent.o )
> [62 of 73] Compiling JavaScript.Web.File ( JavaScript/Web/File.hs, dist/build/JavaScript/Web/File.o )1;
> [63 of 73] Compiling JavaScript.Web.History ( JavaScript/Web/History.hs, dist/build/JavaScript/Web/History.o )
> [64 of 73] Compiling JavaScript.Web.Location ( JavaScript/Web/Location.hs, dist/build/JavaScript/Web/Location.o )
> [65 of 73] Compiling JavaScript.Web.MessageEvent.Internal ( JavaScript/Web/MessageEvent/Internal.hs, dist/build/JavaScript/Web/MessageEvent/Internal.o )
> [66 of 73] Compiling JavaScript.Web.MessageEvent ( JavaScript/Web/MessageEvent.hs, dist/build/JavaScript/Web/MessageEvent.o )
> [67 of 73] Compiling JavaScript.Web.Performance ( JavaScript/Web/Performance.hs, dist/build/JavaScript/Web/Performance.o )
> [68 of 73] Compiling JavaScript.Web.Storage.Internal ( JavaScript/Web/Storage/Internal.hs, dist/build/JavaScript/Web/Storage/Internal.o )
> [69 of 73] Compiling JavaScript.Web.Storage ( JavaScript/Web/Storage.hs, dist/build/JavaScript/Web/Storage.o )
> [70 of 73] Compiling JavaScript.Web.StorageEvent ( JavaScript/Web/StorageEvent.hs, dist/build/JavaScript/Web/StorageEvent.o )
> [71 of 73] Compiling JavaScript.Web.WebSocket ( JavaScript/Web/WebSocket.hs, dist/build/JavaScript/Web/WebSocket.o )
> [72 of 73] Compiling JavaScript.Web.Worker ( JavaScript/Web/Worker.hs, dist/build/JavaScript/Web/Worker.o )
> [73 of 73] Compiling JavaScript.Web.XMLHttpRequest ( JavaScript/Web/XMLHttpRequest.hs, dist/build/JavaScript/Web/XMLHttpRequest.o )
> javascript-unknown-ghcjs-ghc-9.10.3: JavaScript C pre-processor: could not execute:
For full logs, run:
nix log /nix/store/b9y291nv2niv71aggzy6l5gnhvn6qkdx-ghcjs-base-0.8.0.4.drv
error: 1 dependencies of derivation '/nix/store/fpfwgskiyns3lbfa23b98mzmnknzvy0s-jsaddle-0.9.9.3.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fwfk823qa6ghsxy3ba95k9a06ij4w4m5-miso-1.8.7.0.drv' failed to build
weird | 20:24:03 |
magic_rb | its an interesting failure, very, not helpful | 20:24:57 |
| 23 Oct 2025 |
alexfmpe | might want to try 9.12 from recent nixpkgs | 17:23:06 |
alexfmpe | pkgsCross.ghcjs.haskell.packages.ghc912 has cached miso and reflex-dom, which means a lot of other packages are also cached by being their deps | 17:23:38 |
alexfmpe | I get nix-build -A pkgsCross.ghcjs.haskell.packages.ghc912.ghcjs-base from cache on https://github.com/NixOS/nixpkgs/commit/c90b7f75f4e9d4dffcdc30261f565da1e261d468 which is just a few days old | 17:26:32 |
alexfmpe | magic_rb: ^ | 17:26:42 |
Peri | I kind of gave up with ghcjs when it started giving cryptic errors so I moved my stack over to wasm | 17:27:18 |
alexfmpe | js backend is recent enough I wouldn't bother much with anything older than 9.12 | 17:27:21 |
alexfmpe | but yeah, wasm is very much an option | 17:27:59 |
alexfmpe | funnily enough eval of this is broken on master and on present haskell-updates, looks like something got merged very recently | 17:28:51 |
alexfmpe | $ nix-build -A pkgsCross.ghcjs.haskell.packages.ghc912.hello
error: no C compiler provided for this platform
| 17:30:22 |
alexfmpe | yay | 17:30:26 |
alexfmpe | bisect was pretty quick: this broke eval: https://github.com/NixOS/nixpkgs/pull/366593 | 17:39:01 |
alexfmpe | somehow we're getting a ghcjs -> emscripten -> openjdk -> python -> openssl that ends up trying to eval stdenv.cc.isGnu that then throws because there's no c compiler | 17:51:32 |
magic_rb | In reply to @alexfmpe:matrix.org js backend is recent enough I wouldn't bother much with anything older than 9.12 mhm i actully figured it out, but i had to apply https://gitlab.haskell.org/ghc/ghc/-/merge_requests/14882 but using sed | 17:54:57 |
magic_rb | had to add both HEAP8 and HEAPU8 | 17:55:12 |
alexfmpe | ah ok, keep in mind I 'backported' that last week | 17:58:28 |
alexfmpe | https://github.com/NixOS/nixpkgs/pull/451527 | 17:58:28 |
magic_rb | ah, good to know | 18:47:06 |
magic_rb | i need to bump nixpkgs anyway due to a broken aeson i think | 18:47:32 |
alexfmpe | might want to bump to the commit above, at least until the eval error is sorted out | 19:20:10 |
alexfmpe | ^ | 19:20:15 |
magic_rb | In reply to @alexfmpe:matrix.org might want to bump to the commit above, at least until the eval error is sorted out compiling for me, still not working, but neither jsaddle nor js is working so i think im doing something very very wrong | 19:29:39 |
alexfmpe | what does 'not working' mean | 19:30:01 |
magic_rb |  Download clipboard.png | 19:30:33 |
magic_rb | same error on both js and jsaddle | 19:30:40 |
magic_rb | 🤔 | 19:30:45 |
magic_rb | this is miso so maybe miso is broken, ill try a different commit ig | 19:31:01 |
alexfmpe | can you expand the error on the browser console? | 19:39:57 |
magic_rb | rolling back miso "fixed it" i may revisit this at some point but rn i actually want to write some code 🥲 | 21:35:30 |