Skip to content

Instantly share code, notes, and snippets.

@erantapaa
Created February 3, 2015 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erantapaa/834ac6e070d170ebdc46 to your computer and use it in GitHub Desktop.
Save erantapaa/834ac6e070d170ebdc46 to your computer and use it in GitHub Desktop.
#!/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