haskell-numerics / hmatrix

Linear algebra and numerical computation
381 stars 104 forks source link

Fails to build with gcc-10: * Missing (or bad) C library: gfortran #343

Closed yurivict closed 4 years ago

yurivict commented 4 years ago

While compiling the package penrose (http://penrose.ink/) version 0.1-737, this error occurs:

Configuring library for hmatrix-0.20.0.0..
cabal: Missing dependency on a foreign library:
* Missing (or bad) C library: gfortran
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.

cabal: Failed to build hmatrix-0.20.0.0 (which is required by exe:penrose from
penrose-0.1.1.1). The failure occurred during the configure step.

OS: FreeBSD 12.2 ghc-8.10.2

idontgetoutmuch commented 4 years ago

I've uploaded a new version to hackage: https://hackage.haskell.org/package/hmatrix-0.20.1. Can you try it and let me know if it works for you.

yurivict commented 4 years ago

This helped, thanks!

yurivict commented 3 years ago

Somehow it still fails on some systems with hmatrix-0.20.1: http://package18.nyi.freebsd.org/data/121amd64-default-PR244494/2020-11-26_18h55m37s/logs/errors/hs-penrose-0.1.737_3.log