Skip to content
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

haskell-language-server doesn't build on aarch64-darwin #140180

Closed
hexagonal-sun opened this issue Oct 1, 2021 · 7 comments
Closed

haskell-language-server doesn't build on aarch64-darwin #140180

hexagonal-sun opened this issue Oct 1, 2021 · 7 comments
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin 6.topic: haskell

Comments

@hexagonal-sun
Copy link
Contributor

Describe the bug

the haskellPackages.haskell-language-server package doesn't seem to build for aarch64-darwin.

Here's the job log on Hydra: https://hydra.nixos.org/build/155006253/nixlog/1. It looks as though the issue is to do with the ormolu package?

Steps To Reproduce

nix-env -iA nixpkgs.haskellPackages.haskell-language-server.

Expected behavior

HLS builds.

Additional context

Add any other context about the problem here.

Notify maintainers

@maralorn

Metadata

  • system: "aarch64-darwin"
  • host os: Darwin 20.6.0, macOS 11.5.2
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.3.14
  • channels(matthew): "home-manager, nixpkgs-21.11pre304425.2030abed586"
  • channels(root): "home-manager, nixpkgs-21.11pre317548.e0ce3c683ae"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixpkgs
@hexagonal-sun hexagonal-sun added the 0.kind: bug Something is broken label Oct 1, 2021
@veprbl veprbl added 6.topic: darwin Running or building packages on Darwin 6.topic: haskell labels Oct 2, 2021
@kurnevsky
Copy link
Member

It also doesn't build for nixos 21.05: https://hydra.nixos.org/build/154147571

@maralorn
Copy link
Member

maralorn commented Oct 4, 2021

It also doesn't build for nixos 21.05: https://hydra.nixos.org/build/154147571

That’s an unrelated issue. That probably was a hardware/environment problem. I have restarted that build job in the hopes that it succeeds on the next run.

@maralorn
Copy link
Member

maralorn commented Oct 4, 2021

Hey @hexagonal-sun, thx for the report. That build error looks quite weird and baffles me. I have also restarted that one, maybe it was a weird glitch … (Edit: didn‘t help)

Sadly I don‘t have a system for testing or the time to support aarch64-darwin.

Of course we will gladly accept any PRs fixing this and I can try to give input/feedback into attempts to debug this.

@kurnevsky
Copy link
Member

kurnevsky commented Oct 4, 2021

That’s an unrelated issue. That probably was a hardware/environment problem.

I had exactly the same error when hasskell-ide-ingine was building locally after nixpkgs update, so it seems indeed broken.

@maralorn
Copy link
Member

maralorn commented Oct 4, 2021

That’s an unrelated issue. That probably was a hardware/environment problem.

I had exactly the same error when hasskell-ide-ingine was building locally after nixpkgs update, so it seems indeed broken.

Oh, okay. I can reproduce. Thank’s for the report. Will fix this asap.

@maralorn
Copy link
Member

maralorn commented Oct 4, 2021

That’s an unrelated issue. That probably was a hardware/environment problem.

I had exactly the same error when hasskell-ide-ingine was building locally after nixpkgs update, so it seems indeed broken.

Oh, okay. I can reproduce. Thank’s for the report. Will fix this asap.

Will be fixed by #140518.

Now back to the original topic. Sorry for the noise.

sternenseemann added a commit to sternenseemann/nixpkgs that referenced this issue Nov 30, 2021
While GHC now can be bootstrapped and built on aarch64-darwin, it seems
to work only to an extent. All sorts of strange issues have manifested
themselves in `haskellPackages` and downstream usage which leads me to
conclude that it would be misleading to call it supported on this
platform, especially in a stable channel. To give a few examples,
separate bin outputs just don't work in general [1] and `opt` fails
for unknown reasons in some derivations [2]. As I don't own any
appropriate hardware, I have tried tackling these issues by staring into
my crystal ball, but so far to no avail (even worse, new issues [3] have
cropped up due to changes that should have been an improvement).

Given these circumstances, I'm not willing to call GHC supported on
aarch64-darwin for the stable channel. I'm (for now) hopeful that we can
improve the situation on `master` going forward, but it is not
guaranteed that these changes will be backportable without a ton of
effort.

Should it turn out that we can't resolve these issues or maintain GHC's
aarch64-darwin support due to a lack of contributors going forward, I am
also prepared to drop aarch64-darwin support completely. While it has
been proclaimed a Tier 3 platform, I would argue that the “popular”
package GHC has never been working, at least not properly.

[1]: NixOS#140774
     NixOS#140180
[2]: https://matrix.to/#/!RbXGJhHMsnQcNIDFWN:nixos.org/$C6FK74EajqSTk58JzriYpQJ9f6x3UH3tIREcn04Y-rM?via=nixos.org&via=matrix.org&via=tchncs.de
[3]: srid/haskell-template#1 (comment)
@sternenseemann
Copy link
Member

Closing in favor of #140774.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin 6.topic: haskell
Projects
None yet
Development

No branches or pull requests

5 participants