-
Notifications
You must be signed in to change notification settings - Fork 239
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
TH splice changeWorkingDirectory: does not exist when cross compiling elm to musl64 #1617
Comments
@hamishmack Thanks for the help an PR! Sadly it still fails using 745193251225967951c7e33d9ac52b12d153555b. Here's my full build log showing git status is clean and displaying the commit above is used:
Here's more context on the error:
full log using nix log
|
I'm not sure if this is a problem, but it looks like in the full logs before that failure elm is trying to fetch something and failing:
|
I also added the builder directory like you added the reactor one: modified flake.nix
@@ -19,7 +19,7 @@
};
shell.crossPlatforms = p: [ p.musl64 ];
modules = [{
- packages.elm.package.extraSrcFiles = ["reactor/**"];
+ packages.elm.package.extraSrcFiles = ["reactor/**" "builder/**"];
packages.elm.components.exes.elm.preBuild = ''
HOME=$(mktemp -d)
''; An error still happened, so now I'm suspicious of However it looks like you and @purefn fixed things here? I'll start inspecting the components/sources of the elm project to make sure I guess. |
I'm println debugging the template Haskell splice now to see how far it gets. This should narrow things down. |
Everything builds fine If I remove that call:
It seems to need network access for something... still tracking down what. Actually maybe nixpkgs handles this for elm since they successfully build it.... And of course... @domenkozar has detailed exactly that in nixpkgs documentation for compiling/updating elm:
It'll take a second to digest how to replicate this with Haskell.nix. It looks like I'll have to bring in makeDotElm and override |
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. |
I followed the haskell.nix cross compliation tutorial, but had to adapt some things to flakes. That could very well be where my error is if this isn't a bug.
Here is my repo for reproducing this:
https://github.com/ParetoOptimalDev/compiler/tree/multi-arch-static-bins-with-nix
From
x86_64-linux
cross compiling tomusl64
I get:changeWorkingDirectory: does not exist (No such file or directory)
Using
flake.nix
:Here's the command line log:
The text was updated successfully, but these errors were encountered: