Open xsebek opened 5 years ago
Did you install llvm tools? This happens with stack whenever you add them to your path: https://github.com/commercialhaskell/stack/issues/4373
Thanks, that does make the error message shorter:
Linking /Users/ondrejsebek/.stack/setup-exe-cache/x86_64-osx/tmp-Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.2 ...
clang: error: invalid linker name in argument '-fuse-ld=lld'
`gcc' failed in phase `Linker'. (Exit code: 1)
-- While building simple Setup.hs using:
/Users/ondrejsebek/.stack/programs/x86_64-osx/ghc-8.6.2/bin/ghc -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.4.0.1 /Users/ondrejsebek/.stack/setup-exe-src/setup-mPHDZzAJ.hs /Users/ondrejsebek/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /Users/ondrejsebek/.stack/setup-exe-cache/x86_64-osx/tmp-Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.2
Process exited with code: ExitFailure 1
I can't find whats wrong in this message apart from the version of GHC (I am using 8.6.3).
Is there any similar workaround?
Thanks in advance
EDIT: from what I read it seems as if it is now missing the llvm tools O.o
I had to blow away my ~/.stack/setup-exe-cache, I think stack picks up LLD when configuring projects and caches it away there
I have the same problem. Anyone have solved this problem?
Having the exact same problem w/ @Arkemyr:
bad relocation (Invalid pointer diff)
first,
invalid linker name in argument '-fuse-ld=lld'
after removing LLVM bin from PATH.
Do we have any temp workaround? Any alternative editor tooling? Out of curiosity, why can't HIE be shipped as pre-built binary and has to be built from source?
Any alternative editor tooling, there are a lot of alternatives, ghcid, intero, haskero, haskforce, etc... There are a lot of issues discussing why there are no pre built binaries for mainstream distros, see #1068.
@fendor hmm I think as long as stack is failed to build...majority of editor tooling would just break. Probably I should ask what stack version should I fallback to to work around the build issue on macOS?
I am getting the following error when installing from source on macOS Mojave:
As I am only starting to use stack & friends I have no clue what to do. Any tips would be greatly appreciated