-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
ghc962: could not execute: otool #267250
Comments
@avdv Thanks for reporting this. I'm not sure any of the Haskell maintainers are that knowledgeable about aarch64-darwin. You may not get any help with this unless you're willing to investigate yourself. My guess is that this at least has something to do with the differences between the GHC expressions for 9.4 and 9.6, where 9.6 is based on Hadrian: vs |
Thank you for the pointer, @cdepillabout. I could pinpoint the problem (which also manifests itself on x86_64-darwin BTW). The hadrian build creates a bindist, which has to be configured again. Running \edit: created an upstream issue here => https://gitlab.haskell.org/ghc/ghc/-/issues/24211 |
Fixes #267250. Co-authored-by: sternenseemann <sternenseemann@systemli.org>
Fixes NixOS#267250. Co-authored-by: sternenseemann <sternenseemann@systemli.org>
Fixes #267250. Co-authored-by: sternenseemann <sternenseemann@systemli.org>
In previous GHC versions from nixpkgs, the `otool` setting was referencing a tool in the nix store, but for GHC 9.6.2 it is just set to "otool" which means it must be in `$PATH`. The same applies to the `install_name_tool`. See NixOS/nixpkgs#267250 and https://gitlab.haskell.org/ghc/ghc/-/issues/24211 We work around by using the location of the `ar` command and assume the other tools (from the bintools package) are also available at the same place.
In previous GHC versions from nixpkgs, the `otool` setting was referencing a tool in the nix store, but for GHC 9.6.2 it is just set to "otool" which means it must be in `$PATH`. The same applies to the `install_name_tool`. See NixOS/nixpkgs#267250 and https://gitlab.haskell.org/ghc/ghc/-/issues/24211 We work around by using the location of the `ar` command and assume the other tools (from the bintools package) are also available at the same place.
In previous GHC versions from nixpkgs, the `otool` setting was referencing a tool in the nix store, but for GHC 9.6.2 it is just set to "otool" which means it must be in `$PATH`. The same applies to the `install_name_tool`. See NixOS/nixpkgs#267250 and https://gitlab.haskell.org/ghc/ghc/-/issues/24211 We work around by using the location of the `ar` command and assume the other tools (from the bintools package) are also available at the same place.
In previous GHC versions from nixpkgs, the `otool` setting was referencing a tool in the nix store, but for GHC 9.6.2 it is just set to "otool" which means it must be in `$PATH`. The same applies to the `install_name_tool`. See NixOS/nixpkgs#267250 and https://gitlab.haskell.org/ghc/ghc/-/issues/24211 We work around by using the location of the `ar` command and assume the other tools (from the bintools package) are also available at the same place.
In previous GHC versions from nixpkgs, the `otool` setting was referencing a tool in the nix store, but for GHC 9.6.2 it is just set to "otool" which means it must be in `$PATH`. The same applies to the `install_name_tool`. See NixOS/nixpkgs#267250 and https://gitlab.haskell.org/ghc/ghc/-/issues/24211 We work around by using the location of the `ar` command and assume the other tools (from the bintools package) are also available at the same place.
Describe the bug
I am trying to use GHC 9.6.2 from nixpkgs with Bazel but receive this error:
Note that
PATH
is set to/nix/store/ccjpkiqx40y6y98rpa2l8z4xg9mdlmq7-posix-toolchain/bin
inside Bazel's sandbox.However, using GHC 9.4.6 or 9.2.8 works just fine.
Looking at GHC's settings (
/nix/store/ywfzw2q59fna075p6ww98zlls4pgw17c-ghc-9.6.2/lib/ghc-9.6.2/lib/settings
) I notice that theotool command
is just set tootool
:But previously, for former GHC versions it is properly set (e.g.
/nix/store/lyfm7yz87ygvp8lkizxn43jcc11irpyq-ghc-9.4.6/lib/ghc-9.4.6/settings
):Steps To Reproduce
(it is a bit more involved to create a few simple steps to reproduce and I think it is quite clear what the problem is. I can provide these steps if wanted)
Expected behavior
GHC should be able to execute
otool
even it is not on the PATH.Additional context
Add any other context about the problem here.
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: