Skip to content

Loading temp shared object failed: undefined symbol: gsl_rng_default

Note: This is a Stack but which has been reported upstream: https://github.com/commercialhaskell/stack/issues/4855

$ stack repl
Configuring GHCi with the following packages: hmatrix-gsl-stats
GHCi, version 8.6.5: http://www.haskell.org/ghc/ :? for help
ghc: panic! (the 'impossible' happened)

(GHC version 8.6.5 for x86_64-unknown-linux)🆎
Loading temp shared object failed: /tmp/ghc5854_0/libghc_1.so: undefined symbol: gsl_rng_default

Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug

The undefined symbol is in the GSL library against which hmatrix-gsl-stats was built:

$ ld -y gsl_rng_default /usr/lib/x86_64-linux-gnu/libgsl.so
/usr/lib/x86_64-linux-gnu/libgsl.so: definition of gsl_rng_default

To reproduce:

git clone https://github.com/amcphail/hmatrix-gsl-stats
cd hmatrix-gsl-stats
stack init
stack build
stack repl

Edited by Ben Gamari
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information