Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Mar 2020 20:32:12 -0800
From:      Yuri <yuri@rawbw.com>
To:        freebsd-haskell@freebsd.org
Subject:   How to specify an extra lib during a port build?
Message-ID:  <6b2f2978-db6a-62ed-f12b-1477148a2ddf@rawbw.com>

next in thread | raw e-mail | index | archive | help
While attempting to port one Haskell package, I got this failure:

|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. 
libgfortran.so is in /usr/local/lib/gcc9. It seems like ||--extra-lib-dirs=|  is a configure flag for ghc.

What is a proper way to resolve this?


Thanks,
Yuri

||




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6b2f2978-db6a-62ed-f12b-1477148a2ddf>