Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

macos release seems broken #992

Closed
Closed

Description

@2mol

Hi folks!

I was trying to troubleshoot HIE for somebody who reported issues getting it to work (for vscode) at haskell/vscode-haskell#126

Downloading the compiled release (yay for having that option now btw) will not work, seemingly some places have @bubba s path compiled in (/Users/luke/Source/haskell-ide-engine/.stack-work/install/x86_64-osx/...). See attached 4-Haskell HIE (pboy).log

I ran into some other smaller issues as well, I think polishing those up could make the installation experience accessible to a lot more people. I volunteer to work on documentation if we can agree on what to improve.

  • it wasn't obvious to me how I can peek into the logs between hie and vscode. What's the recommended way? Found the logs nicely accessible in a dropdown under the output pane of vscode. Maybe we could put this in the Readme under the troubleshooting section at the bottom?
  • it seems the hie executable is used instead of hie-wrapper, despite my impression that the latter would be used preferentially. On that note: Why have the hie executable there in the first place?
  • I saw a complaint in the logs about hlint.yaml not being found, it's unclear if that was a warning or an error.

Activity

  1. alanz commented on Dec 15, 2018

    @alanz
    Collaborator
  2. Rhywun commented on Dec 16, 2018

    @Rhywun
    Contributor

    I tried to install v0.4.0.1 over v0.2.2.0 using the instructions under "Installation with stack" and something broke on this recommended instruction (after using brew to upgrade stack):

    stack install cabal-install

    Got "ExitFailure 2" trying to install GHC 8.6.2 but no indication of where to look for a log to explain it, so I gave up. Also, I broke HIE on my machine. I may try to start from scratch but will follow along here to see if anything develops.

    Update - I am trying a clean install and made it past installing cabal-install but the same failure occurred after running make build-all in the HIE source directory:

    Details$ make build-all Downloading nightly-2018-12-01 build plan ... Downloaded nightly-2018-12-01 build plan. Preparing to install GHC to an isolated location. This will not interfere with any system-level installation. Preparing to download ghc-8.6.2 ... ghc-8.6.2: download has begun ghc-8.6.2: 12.97 MiB / 221.33 MiB ( 5.86%) downloaded... -etc.- ghc-8.6.2: 221.33 MiB / 221.33 MiB (100.00%) downloaded... Downloaded ghc-8.6.2. Unpacking GHC into /Users/me/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ ... Configuring GHC ... Installing GHC ... Received ExitFailure 2 when running Raw command: /usr/bin/make install Run from: /Users/me/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ghc-8.6.2/

    Preparing to install GHC to an isolated location.
    This will not interfere with any system-level installation.
    Preparing to download ghc-8.6.2 ...
    Already downloaded.
    Unpacking GHC into /Users/pat/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ ...
    Configuring GHC ...
    Installing GHC ...
    Received ExitFailure 2 when running
    Raw command: /usr/bin/make install
    Run from: /Users/me/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ghc-8.6.2/

    git submodule sync
    Synchronizing submodule url for 'submodules/HaRe'
    Synchronizing submodule url for 'submodules/brittany'
    Synchronizing submodule url for 'submodules/cabal-helper'
    Synchronizing submodule url for 'submodules/ghc-mod'
    git submodule update --init
    stack install cabal-install
    Preparing to install GHC to an isolated location.
    This will not interfere with any system-level installation.
    Already downloaded.
    Installing GHC ...
    Received ExitFailure 2 when running
    Raw command: /usr/bin/make install
    Run from: /Users/me/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ghc-8.6.2/

    make: *** [cabal] Error 1

    Again I don't know where to find a log file that might explain what went wrong.

  3. 2mol commented on Dec 18, 2018

    @2mol
    Author

    Hi @Rhywun! Let's split this into a separate issue since the cause will be different from the one affecting the precompiled binary release. I'll then try to redo my installation step by step and see if I can help your case!

  4. Rhywun commented on Dec 18, 2018

    @Rhywun
    Contributor

    @2mol

    Done, thanks

  5. self-assigned this
    on Dec 24, 2018
  6. added
    build
    on Dec 24, 2018
  7. added this to the 2019-01 milestone on Dec 24, 2018
  8. lukel97 commented on Jan 8, 2019

    @lukel97
    Collaborator

    Update so far: Since the hie binary relies on the libexec and data-dir paths generated by cabal, we'll probably need an install script or something for the binaries to replace these paths. cabal-helper relies on libexec for cabal-helper-wrapper and hlint has some share files, but cabal-helper-wrapper has gone away in recent versions of cabal-helper so we might not need it.

  9. modified the milestones: 2019-01, 2019-02 on Feb 2, 2019
  10. modified the milestones: 2019-02, 2019-03 on Mar 2, 2019
  11. jasonmcole commented on Mar 22, 2019

    @jasonmcole

    The specific error message I got from make was:

    dyld: Library not loaded: /usr/local/opt/gmp/lib/libgmp.10.dylib
      Referenced from: /Users/jasoncole/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ghc-8.6.2/libraries/base/dist-install/build/libHSbase-4.12.0.0-ghc8.6.2.dylib
      Reason: image not found
    make[1]: *** [install_packages] Abort trap: 6
    make: *** [install] Error 2
    

    Installing gmp with brew install gmp , then re-running stack ./install.hs build-all proceeded without issue.

  12. Anrock commented on Mar 22, 2019

    @Anrock
    Collaborator

    @jasonmcole that's known issue with ghc on osx. See README and ghc bug. Affects 8.6.1 and 8.6.2, fixed in 8.6.3 iirc.

  13. 14 remaining items

  14. mouse07410 commented on Apr 25, 2019

    @mouse07410

    You may not believe me, but I'm doing "git pull" and "git submodule update --init" every time I start doing anything on this repo. Good hygiene, y'know...

    I'd much rather that you explain how stack-8.x.x.yaml relates to stack.yaml, and whether both are used in the stack build.

  15. fendor commented on Apr 25, 2019

    @fendor
    Collaborator

    hie --version hints to an old version of hie, since the current version is 0.8.0.0. Or there is an old hie version on the PATH.
    The target build-docs does not exist on HEAD anymore.
    Thus, your repository is either not up-to-date or you are not following the master branch.

    To the relation, they are not related. stack.yaml is just using the nightly stackage snapshot. It is used for development and CI. The install script does afaik not use it at all.

  16. mouse07410 commented on Apr 25, 2019

    @mouse07410

    Thank you - I just noticed that on one machine indeed it built (or used) an old version (0.7 instead of 0.8). I'll take care of that.

    So, if I'm using "stack install.hs ..." and want to ensure the build uses a specific resolver and GHC-8.6.4, I need to edit shake.yaml and stack-8.6.4.yaml?

  17. fendor commented on Apr 25, 2019

    @fendor
    Collaborator

    Afaik you may to edit the shake.yaml such that install.hs is run with the ghc version you wish. If you use stack install.hs hie-8.6.4 the correct stack*.yaml will be automatically used for the hie executable.

  18. mouse07410 commented on Apr 25, 2019

    @mouse07410

    Great! But do I need to make sure stack-8.6.4.yaml doesn't pull a different resolver? Or tries to rewrite a different GHC?

  19. fendor commented on Apr 25, 2019

    @fendor
    Collaborator

    No, the only additional resolver is pulled in by shake.yaml. Everything else should work as expected.

  20. mouse07410 commented on Apr 26, 2019

    @mouse07410

    ...or you are not following the master branch...

    Indeed. That machine was on a different branch. Thanks for pointing that out. Just fixed.

    $ hie --version
    Version 0.8.0.0 (2589 commits) x86_64 ghc-8.6.4
    $
    
  21. modified the milestones: 2019-04, 2019-05 on May 4, 2019
  22. modified the milestones: 2019-05, 2019-06 on Jun 1, 2019
  23. modified the milestones: 2019-06, Some time on Jul 7, 2019
  24. jneira commented on Jan 14, 2020

    @jneira
    Member

    This seems to be fixed, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildtype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions