lexical-lsp / lexical

Lexical is a next-generation elixir language server
782 stars 77 forks source link

nix build fails on macos #589

Closed tcoopman closed 4 months ago

tcoopman commented 5 months ago
nix develop ~/.config/home-manager/flakes/elixir
warning: Git tree '/Users/thomas/.config/home-manager' is dirty
error: builder for '/nix/store/73abd2p72bcn8jxcih8p6cs56aava9h3-lexical-development.drv' failed with exit code 138;
       last 8 log lines:
       > unpacking sources
       > unpacking source archive /nix/store/88ahkwhqijbh2491q6igzlyql3gwcqx9-54c1advnx5zaw3hbijcjinb8dhb5xvpf-source
       > source root is 54c1advnx5zaw3hbijcjinb8dhb5xvpf-source
       > patching sources
       > updateAutotoolsGnuConfigScriptsPhase
       > configuring
       > installing
       > /nix/store/9sk191pyc5hsvfs927ym6ii7szbz78n2-stdenv-darwin/setup: line 1608: 91815 Bus error: 10           mix deps.get ${MIX_ENV:+--only $MIX_ENV}
       For full logs, run 'nix log /nix/store/73abd2p72bcn8jxcih8p6cs56aava9h3-lexical-development.drv'.
error: 1 dependencies of derivation '/nix/store/3nwdln393m65pzp7j0qirq7808fg2fxk-lexical-development.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bjpnim07xxyw7j6cyhcjqyw2iq0k13g1-nix-shell-env.drv' failed to build

online-course-server (7e4597b) is 📦 v0.1.0 via 💧 took 8s
❯ nix log /nix/store/73abd2p72bcn8jxcih8p6cs56aava9h3-lexical-development.drv
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/73abd2p72bcn8jxcih8p6cs56aava9h3-lexical-development.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/88ahkwhqijbh2491q6igzlyql3gwcqx9-54c1advnx5zaw3hbijcjinb8dhb5xvpf-source
source root is 54c1advnx5zaw3hbijcjinb8dhb5xvpf-source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "installPhase" }
installing
/nix/store/9sk191pyc5hsvfs927ym6ii7szbz78n2-stdenv-darwin/setup: line 1608: 91815 Bus error: 10           mix deps.get ${MIX_ENV:+--only $MIX_ENV}
scohen commented 4 months ago

@hauleth any ideas?

scohen commented 4 months ago

@tcoopman I'm no nix guru, but that bus error looks like it might be specific to your installation.

hauleth commented 4 months ago

It looks that you are on old nixpkgs version as newer ones have disabled JIT for the AArch64 architecture which can cause these problems. Do you, by any chance, use follows in your Flake specification?

scohen commented 4 months ago

This doesn't seem related to our flake, so I'm closing it.

tcoopman commented 4 months ago

sorry, this was completely my mistake