Building neuron for aarch64 ? #66
Replies: 25 comments 4 replies
-
@573 I don't know much about cross-building, but a PR is always welcome. Also see #45, which may be relevant. |
Beta Was this translation helpful? Give feedback.
-
Oh and I'm planning to make a release to hackage soon. That should get it into stackage and nixpkgs. |
Beta Was this translation helpful? Give feedback.
-
Thanks to @maralorn - neuron is now on nixpkgs, however note that it is an old version. |
Beta Was this translation helpful? Give feedback.
-
@573 Have you managed to build neuron on aarch64? Here's somebody else who is trying it: https://lobste.rs/s/7e7l03/how_i_publish_notes#c_vwmf0h |
Beta Was this translation helpful? Give feedback.
-
@srid I would like to build that on my phone as the latter is prepared to use a remote builder now.
and
Build still fails though, see log (http://archive.vn/GVcZa). |
Beta Was this translation helpful? Give feedback.
-
@573 that is definitely a nixpkgs issue as our expression doesn't touch anything that affects the compilation of ghc. Someone needs to open an issue with nixpkgs if that hasn't happened yet. Besides that you could try if it works to use 8.8.3 instead. You can switch that in the default.nix by replacing hackagePackages with the appropriate specific version. |
Beta Was this translation helpful? Give feedback.
-
I tried again with ghc883 and the build although very long lasting (> 24hs) seems to do fine. |
Beta Was this translation helpful? Give feedback.
-
No chance, even with profiling disabled
|
Beta Was this translation helpful? Give feedback.
-
I thought I am trying and building a bundle as suggested by @srid here. |
Beta Was this translation helpful? Give feedback.
-
@573 I still believe your best bet is fixing (or getting someone to fix) the ghc884 build in nixpkgs. It might not help, but you should really try opening an issue in nixpkgs, if there isn't one. I would do it but I am limited to my phones keyboard right now. |
Beta Was this translation helpful? Give feedback.
-
@maralorn I guess I progressed a tiny step as I have the same error on github-actions now as on my phone earlier.
EDIT: You're right in pointing to ghc884. |
Beta Was this translation helpful? Give feedback.
-
I will continue my experiments here: https://github.com/573/neuron (https://github.com/573/neuron/tree/add-workflow-aarch64). |
Beta Was this translation helpful? Give feedback.
-
@573 Have you tried building neuron on latest master? According to NixOS/nixpkgs#94649 this should be fixed. |
Beta Was this translation helpful? Give feedback.
-
@maralorn this is great news tryin asap. sorry for the delay. |
Beta Was this translation helpful? Give feedback.
-
@maralorn I built against the master of neuron as of yesterday and got this error (http://archive.vn/wip/FWxBg) |
Beta Was this translation helpful? Give feedback.
-
@573 Is that error reproducible? |
Beta Was this translation helpful? Give feedback.
-
I am sorry, I am out of my depth here. You have an issue with jira-wiki-markup-1.3.2 not building with an error that is either environmental e.g. OOM or something or a segfault. I have a few puzzle points here, but I am not sure what to make of it. In nixpkgs neuron on aarch64 is right now broken on master because some dep has a bug on aarch64 and fails the test: https://hydra.nixos.org/build/125390340 Now jira-wiki-markup-1.3.2 only gets compiled as part of the neuron job, because of newer pandoc-types, etc. But jiri-wiki-markup-1.2.1 builds succesfully on aarch64 apparently: https://hydra.nixos.org/eval/1607860?filter=jira-wiki-markup&compare=1607838&full=#tabs-still-fail Sadly I don‘t use nix on any aarch64 so I don‘t think I can help with this much more. |
Beta Was this translation helpful? Give feedback.
-
@maralorn I was indeed building locally on a rather old machine, OOM points in a reasonable direction:
with my master in sync with upstream srid/neuron repo. The reason I chose a local machine is that github-actions allow for certain amount of minutes for a job and one single build currently exceeds this. Anyway thanks for the pointers. |
Beta Was this translation helpful? Give feedback.
-
There is now a Try: |
Beta Was this translation helpful? Give feedback.
-
@srid that is great news !
to |
Beta Was this translation helpful? Give feedback.
-
FYI, the perl derivation of the build failing. |
Beta Was this translation helpful? Give feedback.
-
Shameless X-marketing, the nix-on-droid wiki now contains some more hints on installing NixOS in a (local) qemu vm to serve as a builder for aarch64 ! |
Beta Was this translation helpful? Give feedback.
-
Take a look at this redit thread -- someone used haskell.nix to cross compile a Haskell project for aarch64. |
Beta Was this translation helpful? Give feedback.
-
After some more findings I can
RN to get a cachix executable targetting aarch64 directly from a binary cache.
I would love to have the same for neuron. EDIT: I tried
but that gets me:
|
Beta Was this translation helpful? Give feedback.
-
Using the following command on my binfmt-enabled linux: LC_ALL=C NIX_PATH=channel:nixos-20.09 nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.aarch64-multiplatform-musl' -A pkgsStatic.haskellPackages.neuron the build started regularly but broke complaining about hslua (full log). For a newer neuron version I still have to investigate: LC_ALL=C NIX_PATH=channel:nixos-unstable nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.aarch64-multiplatform-musl' -A pkgsStatic.haskellPackages.neuron complains about |
Beta Was this translation helpful? Give feedback.
-
I love to use neuron and do so on my laptop already.
What would be extra nice is to be able to use on my smartphone as well (where I have nix-on-droid installed already), so my plan was to:
What others have found out and I have tested so far is that it is possible to - taking clay as an example as it builds:
Are there chances to make the neuron build possible for any of the
pkgsCross.aarch64-*
targets as well ?Beta Was this translation helpful? Give feedback.
All reactions