Created
February 3, 2015 00:33
-
-
Save erantapaa/834ac6e070d170ebdc46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Recipe for reproducing a linkage error with GHC 7.8.3 under OSX. | |
# | |
# GHC was installed using https://ghcformacosx.github.io/ | |
# | |
# Specific 7.8.3 version: https://github.com/ghcformacosx/ghc-dot-app/releases/download/v7.8.3-r1/ghc-7.8.3-r1.zip | |
# | |
# Output of the find command at the end will include a reference to 'findExecutable3_info', | |
# but nowhere does the tar package reference the function 'findExecutable'. | |
set -xeu | |
mkdir foo # some temporary directory | |
cd foo | |
cabal get bytestring-0.10.4.1 | |
cabal get tar-0.4.1.0 | |
cabal sandbox init | |
cd bytestring-0.10.4.1 | |
cabal sandbox init --sandbox=../.cabal.sandbox | |
cabal install | |
cd ../tar-0.4.1.0 | |
cabal sandbox init --sandbox=../.cabal.sandbox | |
cabal install --force-reinstalls | |
cd ../.cabal.sandbox | |
find . -name 'libHStar*.dylib' -exec nm -u '{}' ';' | grep directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment