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

AARCH64 Cabal issues #296

Open
pepeiborra opened this issue Jun 6, 2021 · 2 comments
Open

AARCH64 Cabal issues #296

pepeiborra opened this issue Jun 6, 2021 · 2 comments

Comments

@pepeiborra
Copy link
Contributor

pepeiborra commented Jun 6, 2021

I can't seem to get a set of flags for ghcide on an Apple M1 native build using GHC 8.10.5 and cabal-install 3.4.0.0.

$ hie-bios flags ghcide/src/Development/IDE.hs 
Failed to show flags for "ghcide/src/Development/IDE.hs": ["Failed to parse result of calling cabal","Build profile: -w ghc-8.10.5 -O1\nIn order, the following will be built (use -v for more details):\n - hls-plugin-api-1.1.0.1 (lib) (first run)\n - ghcide-1.3.0.0 (lib) (first run)\nPreprocessing library for hls-plugin-api-1.1.0.1..\nBuilding library for hls-plugin-api-1.1.0.1..\n","clang: error: no such file or directory: '/Users/pepe/.cache/hie-bios/dist-haskell-language-server-1cd490e0e56bf98948803756c8fcabc9/build/aarch64-osx/ghc-8.10.5/hls-plugin-api-1.1.0.1/build/Ide/Plugin/Config.dyn_o'\n`gcc' failed in phase `Linker'. (Exit code: 1)\ncabal: Failed to build hls-plugin-api-1.1.0.1 (which is required by\nghcide-1.3.0.0).\n\n",""]

And indeed, the .dyn files for Ide.Plugin.Config are missing:

$ ll /Users/pepe/.cache/hie-bios/dist-haskell-language-server-1cd490e0e56bf98948803756c8fcabc9/build/aarch64-osx/ghc-8.10.5/hls-plugin-api-1.1.0.1/build/Ide/Plugin/
total 2352
-rw-r--r--  1 pepe  staff    85K Jun  6 19:30 Config.hi
-rw-r--r--  1 pepe  staff   372K Jun  6 19:30 Config.o
-rw-r--r--  1 pepe  staff    16K Jun  6 19:31 ConfigUtils.dyn_hi
-rw-r--r--  1 pepe  staff   109K Jun  6 19:31 ConfigUtils.dyn_o
-rw-r--r--  1 pepe  staff    16K Jun  6 19:31 ConfigUtils.hi
-rw-r--r--  1 pepe  staff   109K Jun  6 19:31 ConfigUtils.o
-rw-r--r--  1 pepe  staff    35K Jun  6 19:30 Properties.dyn_hi
-rw-r--r--  1 pepe  staff   186K Jun  6 19:30 Properties.dyn_o
-rw-r--r--  1 pepe  staff    35K Jun  6 19:30 Properties.hi
-rw-r--r--  1 pepe  staff   186K Jun  6 19:30 Properties.o

This is unexpected, because cabal build ghcide works fine and so does hie-bios flags hls-plugin-api/src/Ide/Types.hs

@fendor
Copy link
Collaborator

fendor commented Jun 6, 2021

What happens on cabal repl ghcide/src/Development/IDE.hs ?

@pepeiborra
Copy link
Contributor Author

What happens on cabal repl ghcide/src/Development/IDE.hs ?

it works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants