Skip to content

Instantly share code, notes, and snippets.

@idontgetoutmuch
Created August 19, 2019 12:25
Show Gist options
  • Select an option

  • Save idontgetoutmuch/77463319727807c52d76e809e300721d to your computer and use it in GitHub Desktop.

Select an option

Save idontgetoutmuch/77463319727807c52d76e809e300721d to your computer and use it in GitHub Desktop.
{ mkDerivation, base, blas-ffi, blaze-html, boxes, ChasingBottoms
, comfort-array, data-ref, deepseq, fixed-length
, guarded-allocation, gfortran, hyper, lapack-ffi, lazyio, liblapack, monoid-transformer
, netlib-ffi, non-empty, QuickCheck, quickcheck-transformer, random
, semigroups, stdenv, text, tfp, transformers, unique-logic-tf
, utility-ht
}:
mkDerivation {
pname = "lapack";
version = "0.3.1";
src = ./.;
libraryHaskellDepends = [
base blas-ffi blaze-html boxes comfort-array deepseq fixed-length
guarded-allocation hyper lapack-ffi lazyio netlib-ffi non-empty
semigroups text tfp transformers utility-ht
];
librarySystemDepends = [ liblapack gfortran ];
libraryPkgconfigDepends = [ liblapack gfortran ];
testPkgconfigDepends = [ liblapack gfortran ];
executablePkgconfigDepends = [ liblapack gfortran ];
testHaskellDepends = [
base ChasingBottoms comfort-array data-ref monoid-transformer
netlib-ffi non-empty QuickCheck quickcheck-transformer random
semigroups tfp transformers unique-logic-tf utility-ht
];
homepage = "http://hub.darcs.net/thielema/lapack/";
description = "Numerical Linear Algebra using LAPACK";
license = stdenv.lib.licenses.bsd3;
}
@idontgetoutmuch

Copy link
Copy Markdown
Author
[24 of 24] Compiling Main             ( test/Main.hs, dist/build/lapack-test/lapack-test-tmp/Main.o )
Linking dist/build/lapack-test/lapack-test ...
Undefined symbols for architecture x86_64:
  "__gfortran_st_write", referenced from:
      _xerbla_ in liblapack.a(xerbla.f.o)
  "__gfortran_string_len_trim", referenced from:
      _xerbla_ in liblapack.a(xerbla.f.o)
  "__gfortran_transfer_character_write", referenced from:
      _xerbla_ in liblapack.a(xerbla.f.o)
  "__gfortran_transfer_integer_write", referenced from:
      _xerbla_ in liblapack.a(xerbla.f.o)
  "__gfortran_st_write_done", referenced from:
      _xerbla_ in liblapack.a(xerbla.f.o)
  "__gfortran_stop_string", referenced from:
      _xerbla_ in liblapack.a(xerbla.f.o)
  "__gfortran_concat_string", referenced from:
      _cgesvd_ in liblapack.a(cgesvd.f.o)
      _dgesvd_ in liblapack.a(dgesvd.f.o)
      _sgesvd_ in liblapack.a(sgesvd.f.o)
      _zgesvd_ in liblapack.a(zgesvd.f.o)
      _chseqr_ in liblapack.a(chseqr.f.o)
      _ctrtri_ in liblapack.a(ctrtri.f.o)
      _cunmbr_ in liblapack.a(cunmbr.f.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
`cc' failed in phase `Linker'. (Exit code: 1)
builder for '/nix/store/2kbxgq6kcs5bqahifag1l65ahpspixib-lapack-0.3.1.drv' failed with exit code 1
cannot build derivation '/nix/store/0pw13gsjnrxb8ypba6filrbxhyswflyv-ghc-8.6.5-with-packages.drv': 1 dependencies couldn't be built
error: build of '/nix/store/0pw13gsjnrxb8ypba6filrbxhyswflyv-ghc-8.6.5-with-packages.drv' failed

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