haskell / mwc-random

A very fast Haskell library for generating high quality pseudo-random numbers.
http://hackage.haskell.org/package/mwc-random
BSD 2-Clause "Simplified" License
54 stars 25 forks source link

install of mwc-random doesn't install profiling libraries on a Mac #87

Closed GeorgeCo closed 1 year ago

GeorgeCo commented 1 year ago

install of mwc-random doesn't install profiling libraries on a Mac

cabal install --lib mwc-random
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.8.1.0 supports
'ghc' version < 9.6): /usr/local/bin/ghc is version 9.6.1
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.8.1.0 supports
'ghc' version < 9.6): /usr/local/bin/ghc is version 9.6.1
Resolving dependencies...
Up to date
bash-3.2$ ghc  -prof -fprof-auto   -static hello.hs
Loaded package environment from /Users/gcolpitts/.ghc/x86_64-darwin-9.6.1/environments/default
[2 of 2] Linking hello
ld: library not found for -lHSmwc-rndm-0.15.0.2-773cb69f_p
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ghc-9.6.1: `gcc' failed in phase `Linker'. (Exit code: 1)
bash-3.2$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.6.1
bash-3.2$ sw_vers
ProductName:        macOS
ProductVersion:     13.3
BuildVersion:       22E252

hello.hs has one line

main = print "hello"
GeorgeCo commented 1 year ago

Sorry I don't think this is your issue as the preceding works with -package-env=-